Skip to content

Add some color to Mercurial

by Tomek on December 23rd, 2010

I do use command line regularly, especially on OSes which command line does not suck (read OS X, Linux and friends). By default, Mercurial looks a bit boring, but by just adding a few lines to configuration file, Mercurial may explode with colors. Let's open .hgrc with our favorite editor:

vim ~/.hgrc

And add some magical lines:

[extensions]
color =
highlight =
graphlog =

color and highlight enable colored output of diff and stat. graphlog adds new command, glog, which will just try to draw revision graph using ASCII-art alongside with normal log output. There's a lot of extensions to be discovered, I just started with bringing some life to dull default interface.

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS

Comment spam protected by SpamBam