check notify extension config file syntax

Felix Dorner fdorner at tuenti.com
Fri Jan 7 14:24:43 CST 2011


Hi,

I'd like to let our committers manage the config file for the notify
extension. I'll do so by sharing that file through another mercurial
repository. If someone is interested in receiving notifications, he
has to fetch that file, modify and commit it back. However I fear that
someone commits that file with syntax errors, probably leading to
undesireable effects. Is that fear justified? If so, is there a way I
can syntax-check that configuration file as part of a pre-commit hook?
The documentation mentions that the config file follows mercurial
config file syntax, so maybe there's a generic way to test those files
- at least syntactically.

Thanks,
Felix


More information about the Mercurial mailing list