The notify extension doesn't support using patterns to match particular files. From "hg help notify":
[usersubs] # key is subscriber email, value is a comma-separated list of repo patterns user@host = pattern
[reposubs] # key is repo pattern, value is a comma-separated list of subscriber emails pattern = user@host
A "pattern" is a "glob" matching the absolute path to a repository, optionally combined with a revset expression. A revset expression, if present, is separated from the glob by a hash.
The patterns listed in the question are being treated as patterns to match the absolute path to a repository.
Possible alternatives:
- Split the files that you desire notification for into a separate repository (which should then be supported by the notify extension)
- In Mercurial 2.4, try using a revset reposubs pattern, such as "#file('.sql')=me@company.com".
- Write a custom hook to perform your desired notification based on detection of per-file changes
- Instead of using notifications, have the recipients watch for changes on per-file RSS feeds provided by hgweb (suggested by mpm on IRC)