svn diff Examples
Compare two Subversion branches as they exist on the server, piping the results to less:
$ svn diff \
http://localhost/svn/repos/mysql-5.1/5.1.47/branches/uid_ioctl/023_042_uid_ioctl@3672 \
http://localhost/svn/repos/mysql-5.1/5.1.47/branches/uid_ioctl/023_043_uid_ioctl_hex_sioc@3698 | less
Compare two versions of the same file (in two branches) side by side, with a wide window, piping to less:
$ svn diff --diff-cmd /usr/bin/diff -x "--side-by-side -W200" \
http://localhost/svn/repos/mysql-5.5/5.5.8/branches/BLUEHOST/001_1st_patched/sql/sql_parse.cc \
http://localhost/svn/repos/mysql-5.5/5.5.8/branches/BLUEHOST/002_add_uid-ioctl/sql/sql_parse.cc | less
You re-tabbed the source and want the above, but ignoring the whitespace changes (add -Bb option)
$ svn diff --diff-cmd /usr/bin/diff -x "--side-by-side -W200 -Bb" \
http://localhost/svn/repos/mysql-5.5/5.5.8/branches/BLUEHOST/001_1st_patched/sql/sql_parse.cc \
http://localhost/svn/repos/mysql-5.5/5.5.8/branches/BLUEHOST/002_add_uid-ioctl/sql/sql_parse.cc | less