问题
What is the correct parameters to get Beyond Compare 3 working with Eclipse/Subclipse conflict resolution?
In Preferences > Team > SVN > Diff/Merge
there's the option to specify an external program to resolve conflicts.
The default parameters are:
"${yours}" "${theirs}" "${base}" "${merged}"
And it suggests TortoiseMerge settings of this:
/theirs:"${theirs}" /base:"${base}" /mine:"${yours}" /merged:"${merged}"
But what is the appropriate config for Beyond Compare?
回答1:
Looks like this is correct:
"${theirs}" "${yours}" "${base}" "${merged}"
Based on this forum post: http://www.scootersoftware.com/vbulletin/showthread.php?t=368#4
To label the sections appropriately, and run BC in a separate (solo) instance, it's this:
"${theirs}" "${yours}" "${base}" "${merged}"
/lefttitle="Incoming (${theirs})"
/centertitle="Base (${base})"
/righttitle="Local (${yours})"
/outputtitle="Merged (${merged})"
/solo
Multiple lines used above for readability, replace linebreaks with spaces for use, i.e.
"${theirs}" "${yours}" "${base}" "${merged}" /lefttitle="Incoming (${theirs})" /centertitle="Base (${base})" /righttitle="Local (${yours})" /outputtitle="Merged (${merged})" /solo
回答2:
Also check out http://beyondcvs.sourceforge.net/ for an eclipse/Beyond Compare plugin. (from: http://www.scootersoftware.com/support.php?zz=kb_vcs)
回答3:
AnkhSVN uses
For 3-way diff:
"$(ProgramFiles)\Beyond Compare 3\BComp.exe" "$(Mine)" "$(Theirs)" "$(Base)" "$(Merged)" /title1="$(MineName)" /title2="$(TheirsName)" /title3="$(BaseName)" /title4="$(MergedName)"
Or for 2-way:
"$(ProgramFiles)\Beyond Compare 3\BComp.exe" "$(Mine)" "$(Theirs)" /mergeoutput="$(Merged)" /title1="$(MineName)" /title2="$(TheirsName)"
You can probably tweak this to Subclipse's format.
来源:https://stackoverflow.com/questions/3004729/how-to-configure-beyond-compare-3-for-eclipse-conflict-resolution