Mercurial 是否有相当于 svnlook 树的东西?
我一直在使用 Mercurial 来完成一个需要 Subversion 的学校项目。到目前为止,我只是在最后转换我的存储库以运行老师想要输出的一些命令。我已经设法获得了与其中大多数足够接近的等效项,但我无法弄清楚 svnlook 树 [路径] 。我想,最坏的情况我可以编写一个 Python 脚本来做到这一点,但如果有类似的内置东西会更容易。有吗?
作为参考,svnlook tree /some/path
打印如下内容:
/
files/
one_file.txt.
two_file.txt
pictures/
red_picture.png
blue_picture.png
README
I've been using Mercurial for a school project that requires Subversion. Until now, I've just been converting my repository at the end to run some commands the teacher wants the output from. I've managed to get close-enough equivalents to most of them, but I can't figure out svnlook tree [path]
. I figure, worst case I can write a Python script to do this, but it would be easier if there was something similar built in. Is there?
For reference, svnlook tree /some/path
prints something like this:
/
files/
one_file.txt.
two_file.txt
pictures/
red_picture.png
blue_picture.png
README
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法从 Mercurial 中获得确切的外观。您可以重新格式化 hg manifest 的输出,或者只在工作目录中运行普通的 unix tree 命令(您可能需要安装该命令,但肯定可以在任何发行版上使用) )。或者,您可以使用 Mercurial wiki 上使用 Subversion 中的技术来回传送更改。
You'll not get that exact look out of Mercurial. You could reformat the output of
hg manifest
, or just run the normal unixtree
command in your working directory (which you may need to install, but is certainly available on any distro). Alternately you can use the techniques from Working With Subversion on the Mercurial wiki to shuttle changes back and forth.