email notifications on push
Giorgos Keramidas
keramida at ceid.upatras.gr
Mon Jan 10 13:53:15 CST 2011
On Mon, 10 Jan 2011 17:19:07 +0100, Felix Dorner <fdorner at tuenti.com> wrote:
>On Mon, Jan 10, 2011 at 4:04 PM, Giorgos Keramidas <keramida at ceid.upatras.gr> wrote:
>> The notify extension does include file-pattern matching support, so you
>> can add for example:
>>
>> # Commit-mail subscriptions.
>> [usersubs]
>> userA at example.org = some/path/test.txt
>> userB at example.org = some/other/path/test.txt
>> mailing-list at example.org = **
>
> I thought that's the way it would work. This is exactly how I tested
> it without success.
> I looked up the extension code and indeed, it just matches the repo root:
>
> for pat in pats.split(','):
> 158 import pdb
> 159 pdb.set_trace()
> 160 if fnmatch.fnmatch(self.repo.root, pat.strip()):
> 161 subs.add(self.fixmail(user))
> 162 for pat, users in self.ui.configitems('reposubs'):
> 163 if fnmatch.fnmatch(self.repo.root, pat):
> 164 for user in users.split(','):
> 165 subs.add(self.fixmail(user))
> (Pdb) l
>
> The documentation sais something similar: "The glob patterns are
> matched against path to repo root." I imagine the idea is that you can
> reuse one notify config file for several repositories and have pepole
> choose which repositories they're interested in. Path-based
> notification don't seem possible.
Can you show me the *exact* `.hg/hgrc' config snippet that you used and
describe where your repositories live, e.g. their full path?
More information about the Mercurial
mailing list