I’ve specified merge-tool-cmd = meld in my Subversion config. When I go to resolve a merge conflict using option l from the presented conflict resolution options, I receive the message:
meld: error: too many arguments (wanted 0-4, got 5)
The external merge tool exited with exit code 2
Can anyone diagnose the problem/provide a solution? Thanks.
First a warning! It is very easy to end up losing your local edits if you get this wrong! Test test test!
I’m afraid the script from pmod’s link does not work with svn 1.6 (current in Ubuntu 11.04). Putting together code from pmod’s link and here and advice here, I made this script that seems to work ok:
Save this somewhere sensible (eg
/usr/local/bin/svn-merge-meld.py) and make it executable:Then edit
~/.subversion/configand uncomment the linemerge-tool-cmd =, and set the path to your command.Note that when a conflict occurs, you will be prompted what to do with it. You need to type a single
land for svn to run this script. When you’ve finished your merge, you need to type anrto resolve the conflict and copy the merged version to the working copy.