[PATCH 0 of 1] diffstat hook

Alexander Solovyov piranha at piranha.org.ua
Thu Mar 26 09:49:58 CDT 2009


This patch introduces function which can be used in changegroup and commit
hooks, like that:

[hooks]
commit.diffstat = python:mercurial.hook.diffstat
changegroup.diffstat = python:mercurial.hook.diffstat

I'm not sure I have put it in right place, so I'm asking for comments. Maybe it
would be nice to have single place for some useful hooks that could be
distributed with Mercurial (for example various hooks to determine that there is
no trailing whitespaces and so on)?

Also I think this should be mentioned in documentation (manpages), but where?


More information about the Mercurial-devel mailing list