I am trying to make an external merging utility present merging versions
in a nicer way. I am using meld as a remote utility.
Below is an example of merge-tool-cmd that I use.
svn supplies base revision of the file, new incoming revision (causing
conflict), merged by svn version, and the original user version.
So "merged" version here is marked up by svn, something like this:
It would be beneficial for the external merging utility to use version
with resolved non-conflict places, and with original version in the
places which do cause conflicts.
Maybe there is some option in subversion that is already doing this, in
this case I apologize. Otherwise, I would like to suggest you add the
fourth variant of the file, maybe called .pending, as I described above.
Every marked up place would just contain the .mine version, and no markup.
# path to meld
meld = "meld"
# file paths supplied by subversion
base = sys.argv
theirs = sys.argv
mine = sys.argv
merged = sys.argv
# Call meld, making sure it exits correctly
subprocess.check_call([meld, base, merged, theirs])
print "An error occurred in meld merge helper: ", sys.exc_info(),
Received on 2014-01-21 01:32:22 CET