I need more than the default diff! I have recently purchased "Beyond Compare" and I'd like to integrate it with svn, so its launched when I type:
svn diff foo.c
How do I do this?
I need more than the default diff! I have recently purchased "Beyond Compare" and I'd like to integrate it with svn, so its launched when I type:
svn diff foo.c
How do I do this?
From a Beyond Compare forum post:
/usr/bin/bcompare_svn:
#!/bin/bash
/usr/bin/bcompare $6 $7 &
exit 0
The invocation of bcompare is obvious but I had to add "exit 0" so that svn would open more than one file at a time.
To make svn invoke my script, I added the following line in the [helpers] section in ~/.subversion/config
diff-cmd=/usr/bin/bcompare_svn
I'd like to add a comment to Andy Lester's answer but I don't have a big enough reputation. However, I can answer the question, I guess.
Anyways... as Andy already noted run "svn help diff" but to just give you the answer...
svn diff --diff-cmd <diff-cmd> --extensions <diff-cmd options>
svn diff --diff-cmd /usr/bin/diff --extensions "-bca" <filename(s)>
Hi Andy,
I recently added instructions for Subversion on Linux to our Using Beyond Compare With Version Control Systems web page. Once you follow the steps at the above link it should launch Beyond Compare 3 for Linux when you run "svn diff".