Statistic Question for number of file changes

Arne Babenhauserheide arne_bab at web.de
Sat Feb 26 11:03:28 UTC 2011


On Tuesday 22 February 2011 17:24:49 Petriconi, Felix wrote:
> what is the best way to get a statistic of how often each file under
> version control is changed? I have looked through the available
> extensions and I saw only statistics of changes for each user.

You can get the files changed in each revision (one rev per line) via 

hg log --template "{files}\n"

It has problems with spaces in files, but as long as you don’t have these, you 
can just accumulate the output. 

I hope this helps you.

Best wishes, 
Arne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20110226/87f3ef51/attachment.asc>


More information about the Mercurial mailing list