Search code examples
command-linemercurialbranch

Pretty hg branch graphs


With hg, how I can see in command line the branches graphs? Similar to

git log --pretty=oneline --graph

Solution

  • For Mercurial 2.3 and up, use

    hg log -G
    

    For older Mercurial, you need to first install the the graphlog extension which will enable the above command. The graphlog extension also adds an alias

    hg glog
    

    in all versions of Mercurial.