Skip to content

Instantly share code, notes, and snippets.

@tmiz
Created December 1, 2010 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmiz/723255 to your computer and use it in GitHub Desktop.
Save tmiz/723255 to your computer and use it in GitHub Desktop.
Show diff between current and specified revision's one on Subversion
#!/bin/bash
TEMPFILE=/var/tmp/tmptxt
DIFF=diffmerge
if [ $# -ne 2 ]; then
echo "usage:"$0" <REVISION> <FILE>" 1>&2
exit 1
fi
if [ -e $2 ]; then
if [ -e $TEMPFILE ]; then
rm $TEMPFILE;
fi
svn cat --revision $1 $2 > $TEMPFILE;
$DIFF $TEMPFILE $2;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment