如何使用 byondcompare 或 kdiff exe 查找两个目录之间的差异
我有一个本地和远程存储库,必须使用 byond Compare 或 kdiff 来找到它们之间的差异。 我对 hgrc 以及 Mercurial.ini 文件进行了更改,如下所示。
[扩展] hgext.extdiff=
[extdiff] cmd.bc3diff = C:\Program Files\Beyond Compare 3\BCompare.exe opts.bc3diff = -f '+next' '+execute "DirDiff ".argv(0)." ".argv(1)'
并在命令提示符 hg bc3diff 源目录远程目录中尝试
,但中止源目录不在根目录下。 .....
请帮我如何解决上述问题。
谢谢,
i have a local and remote repository and have to find the difference between them by using byond compare or kdiff.
i made changes in hgrc as well mercurial.ini file as below.
[extensions]
hgext.extdiff=
[extdiff]
cmd.bc3diff = C:\Program Files\Beyond Compare 3\BCompare.exe
opts.bc3diff = -f '+next' '+execute "DirDiff ".argv(0)." ".argv(1)'
and tried in command prompt hg bc3diff source directory remote directory
but got abort source directory not under root......
please help me how could i solve above problem.
thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Mercurial 在本地存储库上运行,
diff
和extdiff
命令比较同一本地存储库(或本地工作目录)中的两个不同版本。将本地修订版本与远程版本进行比较的唯一内置命令是incoming
和outgoing
(带有可选的 --patch),但它们不会启动外部查看器。您可以使用 rdiff 扩展 将本地修订版与远程存储库修订版进行比较,但它不会似乎没有启动外部工具。
执行此操作的正确/正常方法是将两个存储库克隆/拉到一个新克隆中,并在那里进行本地与本地比较。
Mercurial operates on local repositories, and the
diff
andextdiff
commands compare two different revisions in the same local repository (or the local working dir). The only built-in commands that compare local revisions to remote areincoming
andoutgoing
(with optional --patch), but they don't launch external viewers.You can use the rdiff extension to compare a local revision to a remote repo revision, but it doesn't seem to launch external tools.
The right/normal way to do this is to clone/pull both repos into one new clone and do local v. local comparisons there.