I want to view the tree of the repository. Is there any command line in mercurial can do this?
Is there any command line in Mercurial to show the repository tree
Asked Answered
Both workable.
hg glog
hg view
With glog you will likely want to use -l to specify the max number of commits to see –
Direct
You can try this too:
$ hg serve
Nice solution. :) –
Barye
I like the fact that no extensions are needed for this one to work! –
Flatus
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]
.
under Windows :
notepad %USERPROFILE%\.hgrc
.This file may not exists on a new installation. for linux simply vi ~/.hgrc
–
Imitative Thanks! this is helpful. –
Levator
The accepted answer is currently deprecated. This feature has been included in core Mercurial:
hg log --graph
© 2022 - 2024 — McMap. All rights reserved.
graphlog
to usehg glog
command. – Esch