Is there any command line in Mercurial to show the repository tree
Asked Answered
M

4

22

I want to view the tree of the repository. Is there any command line in mercurial can do this?

Maples answered 4/11, 2011 at 16:23 Comment(0)
L
26

Both workable.

hg glog
hg view
Lunarian answered 4/11, 2011 at 16:26 Comment(2)
@akluth 's tip is very useful. Don´t forget to activate the extension graphlog to use hg glog command.Esch
With glog you will likely want to use -l to specify the max number of commits to seeDirect
C
16

You can try this too:

$ hg serve
Center answered 4/11, 2011 at 17:43 Comment(2)
Nice solution. :)Barye
I like the fact that no extensions are needed for this one to work!Flatus
F
14

Be sure to activate the needed extensions in your .hgrc file, otherwise hg view and hg glog will fail:

...

[extensions]
hgk =
graphlog =
...

Make sure that there is a blank line before [extensions].

Felipa answered 21/9, 2012 at 10:51 Comment(2)
under Windows : notepad %USERPROFILE%\.hgrc .This file may not exists on a new installation. for linux simply vi ~/.hgrcImitative
Thanks! this is helpful.Levator
V
2

The accepted answer is currently deprecated. This feature has been included in core Mercurial:

hg log --graph
Vanlandingham answered 19/3, 2021 at 13:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.