Combining branches.conf sections
James Blackwell
jblack at merconline.com
Sat Jan 21 23:16:14 GMT 2006
On Mon, Jan 16, 2006 at 09:20:59AM +1100, Robert Collins wrote:
> On Fri, 2006-01-13 at 14:48 +0100, Wouter van Heyst wrote:
> > 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
> >
> > 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.
> >
> Thats possible. I think there are two other routes though:
> bzr push could copy the settings from the prior section
> we could make inheritance optional.
>
> I'm really ambivalent, this is a UI area where I'm not sure what the
> right thing is..
I think the usual answer is to find all matches and apply the longest
match. Discard shorter matches.
--
James Blackwell's home : http://jblack.linuxguru.net
Gnupg 06357400 F-print AAE4 8C76 58DA 5902 761D 247A 8A55 DA73 0635 7400
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060121/4dbb651d/attachment.pgp
More information about the bazaar
mailing list