在 TortoiseHg 中使用 Beyond Compare 进行视觉差异
我正在尝试在 TortoiseHg 中使用 Beyond Compare 进行视觉差异。例如,右键单击资源管理器中的修改文件,然后从 TortoiseHg 上下文菜单中选择 Visual Diff...
BeyondCompare 打开,但仅显示“欢迎”屏幕,而不显示我想要比较的文件。我错过了什么吗?
我已按如下方式设置 Mercurial.ini 文件:
[extensions]
extdiff =
[extdiff]
cmd.bcomp = C:\Program Files (x86)\Beyond Compare 3\BCompare.exe
opts.bcomp = /ro
[tortoisehg]
vdiff = bcomp
[merge-tools]
bcomp.executable = C:\Program Files (x86)\Beyond Compare 3\BComp
bcomp.args = $local $other $base $output
bcomp.priority = 1
bcomp.premerge = True
bcomp.gui = True
[ui]
merge = bcomp
I am trying to use Beyond Compare for Visual Diff in TortoiseHg. eg Right click on a modified file in explorer and select Visual Diff from TortoiseHg context menu...
BeyondCompare opens but only shows the 'welcome' screen and not the file I want to diff. Am I missing something?
I have setup the mercurial.ini file as follows:
[extensions]
extdiff =
[extdiff]
cmd.bcomp = C:\Program Files (x86)\Beyond Compare 3\BCompare.exe
opts.bcomp = /ro
[tortoisehg]
vdiff = bcomp
[merge-tools]
bcomp.executable = C:\Program Files (x86)\Beyond Compare 3\BComp
bcomp.args = $local $other $base $output
bcomp.priority = 1
bcomp.premerge = True
bcomp.gui = True
[ui]
merge = bcomp
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到了答案。
TortoiseHg 全局设置中的视觉差异工具必须设置为“beyondcompare3”而不是“bcomp” '。
Found the answer.
Visual Diff Tool in TortoiseHg Global Settings had to be set to 'beyondcompare3' instead of 'bcomp'.
在我们的例子中,当我们将
mercurial.ini
添加到TortoiseHG
时,也发生了同样的问题。看起来默认配置来自TortoiseHG\hgrc.d
文件夹。具体的 diff 和 merge 工具配置可以在MergeTools.rc
中找到。仅供参考,以下是如何在
mercurial.ini
中手动配置Beyond Compare 3
:请注意,无需启用
extdiff
扩展。此外,还应重新启动 TortoiseHG 才能应用此设置。In our case the same problem happened when we added
mercurial.ini
toTortoiseHG
. It looks like by default configuration comes fromTortoiseHG\hgrc.d
folder. Specifically diff and merge tools configuration can be found inMergeTools.rc
.Just for the reference, here is how
Beyond Compare 3
can be configured manually inmercurial.ini
:Notice that there's no need in enabling
extdiff
extension. Also TortoiseHG should be restarted to apply this setting.