Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Command line Mercurial中是否有显示存储库树的命令行_Command Line_Mercurial - Fatal编程技术网

Command line Mercurial中是否有显示存储库树的命令行

Command line Mercurial中是否有显示存储库树的命令行,command-line,mercurial,Command Line,Mercurial,我想查看存储库的树。 mercurial中有任何命令行可以做到这一点吗?两者都可行 hg glog hg view 你也可以试试这个: $ hg serve 确保激活.hgrc文件中所需的扩展名,否则hg view和hg glog将失败: ... [extensions] hgk = graphlog = ... 确保在[extensions]前面有一个空行,接受的答案目前已被弃用。此功能已包含在core Mercurial中: hg log --graph @akluth的建议非常有

我想查看存储库的树。 mercurial中有任何命令行可以做到这一点吗?

两者都可行

hg glog
hg view
你也可以试试这个:

$ hg serve

确保激活.hgrc文件中所需的扩展名,否则
hg view
hg glog
将失败:

...

[extensions]
hgk =
graphlog =
...

确保在
[extensions]

前面有一个空行,接受的答案目前已被弃用。此功能已包含在core Mercurial中:

hg log --graph

@akluth的建议非常有用。不要忘记激活扩展名
graphlog
以使用
hg glog
命令。使用glog,您可能希望使用-l来指定Windows下要查看的最大提交次数:
notepad%USERPROFILE%\.hgrc
。新安装中可能不存在此文件。对于linux,只需
vi~/.hgrc
谢谢!这很有帮助。很好的解决方案。:)我喜欢的事实是,没有扩展需要这个工作!