Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 819
Yuan Chen Avatar asked Nov 04 '11 16:11

Yuan Chen


People also ask

What is hg command?

The hg command provides a command line interface to the Mercurial system.

What is hg repository?

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 .

What is .hg folder?

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.


4 Answers

Both workable.

hg glog hg view 
like image 185
Daniel YC Lin Avatar answered Sep 23 '22 14:09

Daniel YC Lin


You can try this too:

$ hg serve 
like image 21
César Avatar answered Sep 20 '22 14:09

César


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].

like image 30
akluth Avatar answered Sep 23 '22 14:09

akluth


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

hg log --graph
like image 43
iteal Avatar answered Sep 23 '22 14:09

iteal