我需要使用 Mercurial 來超越比較。我已經嘗試過這個(在.hgrc
)。
[extensions]
hgext.extdiff=
[extdiff]
cmd.vdiff = C:\Program Files (x86)\Beyond Compare 3\bcomp.exe
哪個有效;但它會導致命令 ( hg vdiff file_name.c
) 無法完成,直到我退出超越比較,這是預期的。
為了能夠獨立運作,我曾經嘗試過
cmd.vdiff = start /b "" "C:\Program Files (x86)\Beyond Compare 3\bcomp.exe"
和
cmd.vdiff = start /b "C:\Program Files (x86)\Beyond Compare 3\bcomp.exe"
和
cmd.vdiff = start /b C:\Program Files (x86)\Beyond Compare 3\bcomp.exe
但我不斷得到
The file name, directory name, or volume label syntax is incorrect
答案1
[merge-tools]
beyondcompare3.args=$local $other $base /mergeoutput=$output /ro /lefttitle=parent1 /centertitle=base /righttitle=parent2 /outputtitle=merged /automerge /reviewconflicts /solo
beyondcompare3.premerge=False
beyondcompare3.regkey=Software\Scooter Software\Beyond Compare 3
beyondcompare3.regkeyalt=Software\Wow6432Node\Scooter Software\Beyond Compare 3
beyondcompare3.regname=ExePath
beyondcompare3.gui=True
beyondcompare3.priority=-1
beyondcompare3.diffargs=/lro /lefttitle='$plabel1' /righttitle='$clabel' /solo /expandall $parent $child
beyondcompare3.diff3args=$parent1 $parent2 $child /lefttitle='$plabel1' /centertitle='$clabel' /righttitle='$plabel2' /solo /ro
beyondcompare3.dirdiff=True
...
[ui]
merge = beyondcompare3
在 Mercurial.ini 中,兩個 (diff|merge) 操作都將在 BC3 中執行