在TortoiseHg中使用Beyond Compare for Visual Diff

时间:2010-05-11 12:10:59

标签: mercurial tortoisehg beyondcompare3

我正在尝试在TortoiseHg中使用Beyond Compare for Visual Diff。例如,右键单击资源管理器中的修改文件,然后从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

2 个答案:

答案 0 :(得分:23)

找到答案。

TortoiseHg全局设置中的

Visual Diff Tool 必须设置为“ beyondcompare3 ”而不是“< EM> bcomp ”。

TortoiseHg and Beyond Compare

答案 1 :(得分:3)

在我们的案例中,当我们将mercurial.ini添加到TortoiseHG时发生了同样的问题。默认情况下,配置来自TortoiseHG\hgrc.d文件夹。特别是差异和合并工具配置可以在MergeTools.rc

中找到

仅供参考,以下是Beyond Compare 3中手动配置mercurial.ini的方式:

[merge-tools]
bcomp.executable = C:\Program Files (x86)\Beyond Compare 3\BComp.exe
bcomp.priority = 1
bcomp.premerge = True
bcomp.gui = True

bcomp.args=$local $other $base /mergeoutput=$output /ro /lefttitle=parent1 /centertitle=base /righttitle=parent2 /outputtitle=merged /automerge /reviewconflicts /solo
bcomp.diffargs=/lro /lefttitle='$plabel1' /righttitle='$clabel' /solo /expandall $parent $child
bcomp.diff3args=$parent1 $parent2 $child /lefttitle='$plabel1' /centertitle='$clabel' /righttitle='$plabel2' /solo /ro
bcomp.dirdiff=True

请注意,无需启用extdiff扩展程序。还应重新启动TortoiseHG以应用此设置。