RFC - adding more info commits in verbose mode

Marcus Lindblom macke at yar.nu
Tue Apr 14 09:29:50 CDT 2009


Alexander Solovyov wrote:
> 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

Ok. But I find this pretty useful to have always, and not have to enable 
on every computer I'm working on (it's at least three).

Ideally, I'd just want a line with (x/y/z files and q/r/t lines 
add/change/removed) which gives a quick indication if I commited what I 
expected to or not. (Listing just the files doesn't tell me if I 
accidentally changed line-endings or so.. )

Am I alone in that, or do you think this has some merit?

Diffstat was the simplest way I found to get that, it's probably not the 
best way.

Cheers.
/Marcus


More information about the Mercurial-devel mailing list