Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial; Possible to list the # of commits a certain user has made?

Tags:

mercurial

Is it possible?


2 Answers

I would use the churn extension which generates nice histograms for this. It looks like this for one of my repositories:

$ hg churn --changesets
[email protected]               1034 ******************************************
[email protected]              132 *****
[email protected]                   102 ****
[email protected]     87 ****
[email protected]                 32 *
[email protected]                15 *
[email protected]                13 *
[email protected]                   10 
[email protected]               6 
[email protected]              5 
[email protected]                   1 
Marc X. Makkes                  1 
like image 189
Martin Geisler Avatar answered Dec 09 '25 16:12

Martin Geisler


Use something like:

hg log --user [email protected] | grep --count "user"   # UNIX or Windows with grep installed.
hg log --user [email protected] | find /c "user"   # Windows.

If your grep doesn't have a --count option, it may well have an equivalent -c option.

like image 29
Niall C. Avatar answered Dec 09 '25 18:12

Niall C.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!