I want to use P4merge as my external diff tool for files in SVN when comparing local to unchanged. I just spent several hours on this when I should have been coding.
What do I need to do on OSX platform?
On
Picking up on Stefan's answer, you can check what the parameters are that svn passes through and then write the script to pick out the right ones. I'm on bash, so:
#! /bin/sh
left=$6
right=$7
/Applications/p4merge.app/Contents/MacOS/p4merge $left $right
# Uncomment this to see what svn passes as parameters
# for i in $(seq 1 11)
# do echo $i : ${!i}
# done
This is kind of hacky and only replaces the diff tool, not the merge tool but here it goes:
Create a python script named
p4merge-diff-cmd:and make it executable
Then, in your
~/.subversion/configfile change the lineto
Now
svn diff <file>should launchp4merge.