Mercurial:有关修改文件的信息
在从中央存储库中拉取之前,我通常使用“hgcoming”命令来查看我将要拉取的内容。但是,这仅给我提供了带有一些注释的变更集列表,而不是已修改的实际文件的列表。
1)在这种情况下,如何获取已修改文件的列表(包括有关chane的一些基本信息,如已删除、已移动等)?
2)类似地,当我执行“hg status”时,我会得到本地工作副本与存储库中当前内容之间的差异。然而,一个更有用的功能是获取传入内容和本地工作副本之间的差异。我怎样才能得到这个?
谢谢!
Before pulling from the central repositiry, I usually use the 'hg incoming' command to see what I will be pulling. However, this only gives me a list of changesets with some comments, and not a list of the actual files that have been modified.
1) In such a situation, how can I get a list of modified files (including some basic info about the chane, like Removed, Moved, etc)?
2) Similarly, when I do an 'hg status', I get the differences between my local working copy and what is currently on the repository. However, a more useful feature would be to get the differences between what is incoming and my local working copy. How can I get this?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
1/ 大多数选项都在“如何在运行“更新”之前查看存储库中的文件”:
注意:
2/ 请参阅 RDiff 扩展(以及 SO 问题“使用 Mercurial,有没有一种简单的方法可以将我的工作副本与默认远程存储库中的提示文件进行比较")
1/ Most options are presented in "how to see files in repository before running 'update'":
Notes:
2/ See RDiff extension (and the SO question "Using Mercurial, is there an easy way to diff my working copy with the tip file in the default remote repository")
如果您没有足够新的
--stat
版本,您可以使用status
获得类似的概述:If you don't have a recent enough version for
--stat
, you can get a similar overview usingstatus
: