New mercurial extension: Timetracker

Eduardo Robles Elvira edulix at gmail.com
Sat Nov 27 19:10:11 CST 2010


Hello everyone!

I'm a KDE/Django/many-things developer which until now has been using
only git (and previously subversion and previously CVS). I wanted to
track the time spent on my code projects, and I just had the idea of
attaching the time spent on each commit as an extra metadata. That way
I could then sum all those commit's extra fields and get the totaltime
spent in the project, the time spent by each collaborator, the time
spent on some feature branches, the average time spent per day, week,
etc... you get it.

I wanted to do this in/for git, but I've found that mercurial is much
more developer friendly, and I fell in love with it. I've been able to
hack the timetracker extension in one night, without having ever even
used mercurial!

The code and the usage example is in here:
https://bitbucket.org/edulix/timetracker/wiki/Home

Of course it just a first implementation: it lacks i18n, it might not
be completely elegant (hey, I'm new to mercurial code :-P).. there are
a lot if things to do, like adding a hg log template which shows the
time spent in the commits, and a more powerful summary function which
lets you query the timespent in more ways. But hey it works!

Regards,
  Eduardo Robles Elvira


More information about the Mercurial-devel mailing list