I am attempting to use file patterns to limit push notifications to specific directories. The following glob patterns in [usersubs] are not triggering emails, though the basic patterns of asterix and double asterix work. OS: Windows XP.
**.sql *.sql one/*.sql **.??? **/*.sql
repos contents are:
.hg root.sql /one/one.sql
hgrc is:
[extensions] notify = [hooks] incoming.notify = python:hgext.notify.hook [email] from = me@company.com [smtp] host = 12.34.56.78 baseurl = [notify] sources = serve push pull bundle test = False config = [usersubs] me@company.com = **.sql maxdiff = 300
Process used:
1) clone the repo with these settings
2) change the two sql files listed so they can be committed
3) hg commit -m “comment here”
4) hg push
The notify extension doesn’t support using patterns to match particular files. From “hg help notify”:
The patterns listed in the question are being treated as patterns to match the absolute path to a repository.
Possible alternatives: