Coach Thrasher
SVN diff with Meld
Every time I setup a new machine for development I forget a whole bunch of extra little bits that make developing more efficient and enjoyable. Most recently a new Macbook Pro has been my platform of choice. I like the visual diff implemented by Meld, and it works nicely using X11 with the Meld build coming from Fink. (Don't even try installing Meld from MacPorts... after 24 hours of hardcore Python pain it totally failed.) Here's a little script to launch a visual diff against the SVN repository that I keep misplacing (captured on my blog so I can find it again).
1) download it
2) move it to ~/bin/svn-diff-meld
3) chmod +x ~/bin/svn-diff-meld
4) echo "alias sd='svn diff --diff-cmd ~/bin/svn-diff-meld'" >> ~/.bash_profile
Then on the command line, run SVN diffs against the repo with something like:
$ sd -r 27003
or
$ sd path/to/some/file.txt
or
$ sd -r 27003 path/to/some/file.txt
Posted at 09:21AM Aug 15, 2008 by jason in Software |