Combining branches.conf sections

Wouter van Heyst larstiq at larstiq.dyndns.org
Fri Jan 13 13:48:31 GMT 2006


Hi all,

yesterday I set up the email plugin to send commit mail to a mailing
list for all branches in one dir, which worked and was great.

  [/home/larstiq/src/project/*]
  post_commit = bzrlib.plugins.email.post_commit
  post_commit_to = bzr-list at somehost

However, after pushing one of those branches, mail stopped going out for
that one. The added section in ~/.bazaar/branches.conf:

  [/home/larstiq/src/project/specific-branch]
  push_location = sftp://host/path

http://bazaar.canonical.com/ConfiguringBzr explains why my globbing
post_commit failed after push saved the push_location:

  For branches.conf, the variables from the section with the longest
  matching section header are used to the exclusion of other potentially
  valid section headers.


So how to do this? Duplicating the post_commit stuff for each and every
branch feels dirty, and I can't set under [DEFAULT] in bazaar.conf,
because this is correct for one project only.

So, what do people think of using information from all matching
sections, applying in generic->specific order? The globbing is simple
enough to not make debugging much harder.

Wouter van Heyst




More information about the bazaar mailing list