I want to view the tree of the repository. Is there any command line in mercurial can do this?
The hg command provides a command line interface to the Mercurial system.
Strictly speaking, the term repository refers to the directory named . hg (dot hg) in the repository root directory. The repository root directory is the parent directory of the . hg directory. Mercurial stores its internal data structures – the metadata – inside that .
hg folder keeps track of one repo only. If you've got one in your home directory it means your home directory is under version control.
Both workable.
hg glog hg view
You can try this too:
$ hg serve
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]
.
The accepted answer is currently deprecated. This feature has been included in core Mercurial:
hg log --graph
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With