Skip to content
Snippets Groups Projects
user avatar
Vadim Gelfer authored
old scheme (False/None/0/'' == fail) made coding style
unnatural, did not allow use of mercurial commands as hooks.

new scheme (False/None/0 == pass) is pythonic, does not require peculiar
"return True" at ends of hooks, allows hooks like this:

[hooks]
# update working dir after push into this repo
changegroup.update = python:mercurial.commands.update
05b6c13f
History
Name Last commit Last update
contrib
doc
hgext
mercurial
templates
tests
.hgignore
.hgtags
CONTRIBUTORS
COPYING
MANIFEST.in
Makefile
README
comparison.txt
hg
hgeditor
hgmerge
hgweb.cgi
hgwebdir.cgi
notes.txt
rewrite-log
setup.py