SVN diff with external tools

This is pretty much a note to self, but here it goes anyway. I'm comfortable 99% of the time using command line SVN when I'm on Linux, but there's one thing that I really missed and that was using a GUI to diff files, it makes the work soooo much easier.

Since my favorite diff tool has now a Linux version I thought it was about time. It didn't take me long to find out this post.

#1 Install Beyond Compare for Linux

#2 Create this script and save into /usr/bin:

[code lang="bash"]#!/bin/bash
/usr/bin/bcompare $6 $7 &
exit 0[/code]

#3 Edit ~/.subversion/config adding this into the Helpers section (not at the end of the file):

[code lang="bash"]diff-cmd=/usr/bin/bcompare_svn[/code]

#4 Done. Now when you type svn diff /path/to/file it launches Beyond Compare.

Sweet.

Back to index