[英]Using Beyond Compare inside Eclipse for Merging in Subversion
I would like to use Beyond Compare inside Eclipse.我想在 Eclipse 中使用 Beyond Compare。 The problem at hand is, that the native diff and merge tool does not allow to customize the diff enough, so there are too much differences.
手头的问题是,本机差异和合并工具不允许足够自定义差异,因此差异太大。 Beyond Compare has the right customization for that, but I could not integrate the tool.
Beyond Compare 对此进行了正确的自定义,但我无法集成该工具。 I have tried the following:
我尝试了以下方法:
Has anyone succeeded in integrating Beyond Compare in Eclipse for Subversion?有没有人成功地将 Beyond Compare 集成到 Eclipse 中用于 Subversion? I have found the similar question How to configure Beyond Compare 3 for Eclipse conflict resolution?
我发现了类似的问题How to configure Beyond Compare 3 for Eclipse 冲突解决? , but it did not work for me (perhaps the difference between Subversive and Subclipse?).
,但它对我不起作用(也许是 Subversive 和 Subclipse 之间的区别?)。
Addition: I followed the steps of @Tom Clift (thank's a lot), and the diff is now working, the merge was a little bit more difficult.另外:我按照@Tom Clift 的步骤(非常感谢),现在差异正在工作,合并有点困难。 I have done the following steps to final success:
我已完成以下步骤以取得最终成功:
Team > Merge... > Tab URL > URL Field: <branch URL> and Radio button "Start from copy"
Team > Merge... > Tab URL > URL Field: <branch URL> and Radio button "Start from copy"
Ok
, a dialog pops up that ask if it is ok to open the "Synchronize View".Ok
时,会弹出一个对话框,询问是否可以打开“同步视图”。Steps for configuring Eclipse (tested with 3.7 (Indigo) through 4.4 (Luna)) with Subversive to use Beyond Compare as the default diff and merge tool (may work with other versions too):使用Subversive配置 Eclipse(使用 3.7 (Indigo) 到 4.4 (Luna) 测试)以使用Beyond Compare作为默认差异和合并工具的步骤(也可以与其他版本一起使用):
Note: per MattPassell's comment there seems to be an outstanding issue on OS X (and Linux?) with spaces in paths and arguments.注意:根据MattPassell 的评论,在 OS X(和 Linux?)上似乎存在一个悬而未决的问题,路径和 arguments 中有空格。 The config below for OS X works around this by avoiding spaces.
下面的 OS X 配置通过避免空格来解决这个问题。
/Users/tom/bin/bcomp
(which is a symlink to /Applications/Beyond Compare.app/Contents/MacOS/bcomp
to avoid spaces in the path) /Users/tom/bin/bcomp
(这是/Applications/Beyond Compare.app/Contents/MacOS/bcomp
的符号链接,以避免路径中的空格)C:\Program Files (x86)\Beyond Compare 3\BComp.exe
C:\Program Files (x86)\Beyond Compare 3\BComp.exe
${base} ${mine} -lefttitle=Base -righttitle=Local
"${base}" "${mine}" /lefttitle="Base ${base}" /righttitle="Local ${mine}"
${theirs} ${mine} ${base} ${merged} -lefttitle=Incoming -centertitle=Base -righttitle=Local -outputtitle=Merged
"${theirs}" "${mine}" "${base}" "${merged}" /lefttitle="Incoming (${theirs})" /centertitle="Base (${base})" /righttitle="Local (${mine})" /outputtitle="Merged (${merged})"
I have tried and failed to configure Beyond Compare as a diff tool with Subclipse (it seems to only have external tool configuration for merge/conflict).我尝试使用 Subclipse 将 Beyond Compare 配置为差异工具但失败(它似乎只有用于合并/冲突的外部工具配置)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.