3 ms·
> http://jarofgreen.co.uk/2011/04/introducing-creepycoder/ http://jarofgreen.co.uk/2011/04/introducing-creepycoder/ hg has a pretty great extension shipped wit
by masklinn 15y ago
> http://jarofgreen.co.uk/2011/04/introducing-creepycoder/ http://jarofgreen.co.uk/2011/04/introducing-creepycoder/
hg has a pretty great extension shipped with it doing that kind of stats collecting: churn. Git might have something similar already, no?
For instance, your graphs 2 and 3 (commits by hour of day and commits by day of week) can be obtained through the following (tested on pypy's repo):
> hg -R pypy churn -csf "%H"
00 850 **************
01 534 *********
02 385 ******
03 299 *****
04 202 ***
05 181 ***
06 217 ***
07 449 *******
08 1336 *********************
09 2421 ***************************************
10 2893 ***********************************************
11 3295 *****************************************************
12 3277 *****************************************************
13 3596 **********************************************************
14 3915 ***************************************************************
15 4105 ******************************************************************
16 3955 ****************************************************************
17 3812 *************************************************************
18 3259 ****************************************************
19 2091 **********************************
20 1713 ****************************
21 1630 **************************
22 1466 ************************
23 1225 ********************
> hg -R pypy churn -csf "%u"
1 6985 ************************************************************
2 7741 *******************************************************************
3 7594 ******************************************************************
4 7404 ****************************************************************
5 7470 *****************************************************************
6 5213 *********************************************
7 4699 *****************************************
(-c counts changesets rather than diff lines; -s sorts by aggregation key rather than resultcount; -f aggredates on an strftime-like dateformat)
- jarofgreen 15y agoCool, never used hg, thanks. Git might have a module; I've never seen it if it does. However, having it separate to git means we can pull in other data to build up a complete picture of the users activity - the comments made in an issue tracker for instance.