Config for branch, not in branch
Jan Hudec
bulb at ucw.cz
Mon Feb 6 09:11:39 GMT 2006
On Mon, Feb 06, 2006 at 10:04:36 +0100, Vincent LADEUIL wrote:
> >>>>> "Jan" == Jan Hudec <bulb at ucw.cz> writes:
>
> Jan> Note, that the section name in ~/.bazaar/bazaar.conf is
> Jan> a *GLOB*. So if you always call foo branches
> Jan> foo.<something> and bar branches bar.<something>, you
> Jan> simply set the emails as:
>
> I have just begun to name my branches that way, stop reading my
> mind or I get a tinfoil hat :)
>
> Jan> [*/foo.*] email = me at foo.org
> Jan> [*/bar.*] email = me at bar.org
>
> That's better. My gut feeling is that it's still a bit weak, but
> I can live with it (and I have no better idea which indicates me
> that I should just shut up :-)
Unfortunately I found it does not work as well as it should. For two
reasons:
1) * does NOT match / here, so you have to spell out
[/home/me/.../foo.*]
on the other hand it applies to subdirs, so you can just specify a
directory under which you put all the branches.
2) The sections do not combine. So you need to repeat the email setting
whenever you add specific section. And I am not sure it even works at
all whenbzr adds push-target in ~/.bazaaz/branches.conf
> Jan> Of course, adapt to your naming convention.
>
> Jan> Note that the patterns are currently rather simplistic
> Jan> (* matches absolutely anything) and that it might be
> Jan> changed to behave more shell-like (* not matching / and
> Jan> initial . - **/ will then match any path).
>
> I too call for an uniform handling of globs, whatever it is (but
> if it differs from basic shell expansion, go for python regexps,
> i.e. a clearly defined syntax instead of a custom one).
In the new glob engine I am working on, RE:<python regexp> is a valid
glob, except for glob expansion on Windows. But in the configuration it
should work.
--
Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- 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/20060206/f5105748/attachment.pgp
More information about the bazaar
mailing list