Vadim Gelfer <vadim.gelfer@gmail.com> [Mon, 08 May 2006 10:59:58 -0700] rev 2221
reverse sense of return value from python hooks.
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
Vadim Gelfer <vadim.gelfer@gmail.com> [Mon, 08 May 2006 08:20:56 -0700] rev 2220
add filename to IOError if read of file fails.
if file replaced with directory or symlink, IOError not fully filled out.
Vadim Gelfer <vadim.gelfer@gmail.com> [Mon, 08 May 2006 08:04:46 -0700] rev 2219
merge with crew.
Vadim Gelfer <vadim.gelfer@gmail.com> [Wed, 03 May 2006 14:56:07 -0700] rev 2218
only import mysql module if hook used.