Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to use Punchcard extension of Mercurial

📅 2014-Apr-11 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ extension, github, mercurial, punchcard ⬩ 📚 Archive

[caption id="attachment_4424" align="aligncenter" width="640"][Punchcard of a Mercurial repository](http://codeyarns.files.wordpress.com/2014/04/20140411-hgpunchcard.png) Punchcard of a Mercurial repository[/caption]

One of the coolest feature of Github is the calendar chart that is shows for your contributions. You can get a similar chart for any Mercurial repository on your computer using the Punchcard extension.

$ hg clone https://bitbucket.org/birkenfeld/hgpunchcard
[extensions]
hgpunchcard = /path/to/hgpunchcard.py
$ hg punchcard

This saves a file named punchcard.png that a chart of your commits to this repository, as shown above.

Tried with: Mercurial 2.8.2 and Ubuntu 14.04