Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to show repository log as ASCII graph in Mercurial

📅 2013-Jan-25 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

TortoiseHg can be used to view the graph of commits and branches of a Mercurial repository. For repositories whose history is not so complicated, it may be convenient to check its graph at the commandline. This means displaying a ASCII graph of the log.

This feature is available through the graphlog extension that ships with Mercurial. Enable this extension in your Mercurial configuration file and you can view the graph by using the command:

$ hg log --graph

Tried with: Mercurial 2.0.2 and Ubuntu 12.04.1 LTS