RFC - adding more info commits in verbose mode

Alexander Solovyov piranha at piranha.org.ua
Mon Apr 13 15:41:35 CDT 2009


On Mon, Apr 13, 2009 at 11:33 PM, Marcus Lindblom <macke at yar.nu> wrote:
> Hi,
>
> I'd like to see summary of the number of files and lines that has
> changed with a commit. The current verbose output doesn't do that.

With current mercurial, you can use:

[hooks]
commit.diffstat = python:~/dev/hg/hg/contrib/python-hook-examples.py:diffstat

with 1.2, you can write it yourself and put somewhere in sys.path:

http://www.selenic.com/hg/index.cgi/file/tip/contrib/python-hook-examples.py

-- 
Alexander


More information about the Mercurial-devel mailing list