Using Beyond Compare inside Eclipse for Merging in Subversion

馋奶兔 提交于 2019-11-30 00:21:15
Tom Clift

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):

Note: per MattPassell's comment there seems to be an outstanding issue on OS X (and Linux?) with spaces in paths and arguments. The config below for OS X works around this by avoiding spaces.

  1. Preferences → Team → SVN → Diff Viewer
  2. Add...
  3. Extension or mime-type: *
  4. Diff program arguments → Program Path: enter the path for the Beyond Compare binary (with no arguments). E.g.:
    • OS X: /Users/tom/bin/bcomp (which is a symlink to /Applications/Beyond Compare.app/Contents/MacOS/bcomp to avoid spaces in the path)
    • Windows: C:\Program Files (x86)\Beyond Compare 3\BComp.exe
  5. Diff program arguments (box):
    • OS X:
      ${base} ${mine} -lefttitle=Base -righttitle=Local
    • Windows:
      "${base}" "${mine}"
      /lefttitle="Base ${base}"
      /righttitle="Local ${mine}"
      
  6. Merge program arguments → Program path: path to binary again.
  7. Merge program arguments (box):
    • OS X:
      ${theirs} ${mine} ${base} ${merged}
      -lefttitle=Incoming
      -centertitle=Base
      -righttitle=Local
      -outputtitle=Merged
    • Windows:
      "${theirs}" "${mine}" "${base}" "${merged}"
      /lefttitle="Incoming (${theirs})"
      /centertitle="Base (${base})"
      /righttitle="Local (${mine})"
      /outputtitle="Merged (${merged})"
      
  8. OK

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).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!