What is the proper way to do a Subversion merge in Eclipse?

前端 未结 9 1021
深忆病人
深忆病人 2021-01-30 11:58

I\'m pretty used to how to do CVS merges in Eclipse, and I\'m otherwise happy with the way that both Subclipse and Subversive work with the SVN repository, but I\'m not quite su

9条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 12:35

    I landed here because I was looking for a way to merge in an external merge editor (KDIFF3) but start the merge from eclipse. I wasn't satisfied with the answers provided above. So here is ho to configure kdiff3 as merge and diff editor for SVN in eclipse:

    go to Windows -> Preferences → Team -> SVN -> Diff Viewer Add a new config (add button): Extension or mimetype: * - if you wish you can specify different mimetypes for different editors, I didn't need that thus the alquantor.

    Diff: Program path C:\Program Files\KDiff3\kdiff3.exe (or wherever you have your merge editor - sry for the windows path, feel free to add a linux version in the comments or edit this answer.)

    Arguments: ${base} ${mine} ${theirs}

    Merge: Program path C:\Program Files\KDiff3\kdiff3.exe

    Arguments: ${base} ${mine} ${theirs} -o ${merged}

    This will probably work as well for other merge editors, but with a different argument syntax (figure it out an let us know :) ).

    The usage is as usual (team->edit conflicts) for merging and compare->foo for the diff view.

    Cheers

提交回复
热议问题