About stats

Martin Geisler mg at lazybytes.net
Sat Apr 11 12:05:19 CDT 2009


Frank Abel Cancio Bello <frank.abel.cb at gmail.com> writes:

> Hi all,
>
> Exist any tool to get stats from Mercurial? Whatever stats, changeset
> peer user,

There is the churn extension distributed with Mercurial -- here I make a
histogram with the number of commits per contributor to Mercurila:

% hg churn -c
mpm at selenic.com                           2042 *****************************
thomas at intevation.de                       933 *************
benoit.boissinot at ens-lyon.org              582 ********
brendan at kublai.com                         556 *******
alexis at cecm.usp.br                         533 *******
vadim.gelfer at gmail.com                     476 ******
  ...
diemer at gmx.de                                1
guichaz at yahoo.fr                             1

> line code peer user,

You get the number of lines changed per user by dropping the -c.

> lines added, removed and changed between revisions, etc.

You can use the normal 'hg diff' command for this:

% hg diff --rev 1.2.1:tip | diffstat
 .hgsigs                                                    |    1
 .hgtags                                                    |    1
 Makefile                                                   |   10
 contrib/mergetools.hgrc                                    |    2
  ...
 tests/test-verify.out                                      |   13
 158 files changed, 15719 insertions(+), 3413 deletions(-)


You can also use the activity extension:

  http://labs.freehackers.org/wiki/hgactivity

or maybe this script I made some time ago:

  http://bitbucket.org/mg/hgchart/wiki/Home

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial/attachments/20090411/f249ac07/attachment.pgp 


More information about the Mercurial mailing list