A better svndiff, allow comparision between different revision
May 18th, 2007 mysurface Posted in Developer, Misc, svn, vimdiff | Hits: 68195 | 4 Comments »
Refers back to svn command line tutorial for beginners 2, I introduces a bash script that uses svn cat and vimdiff to compare files. This simple script written by Erik C. Thauvin only allows you to compare latest revision source with working source.
What if I would like to compare my current working source with other revision? or compare two different revision’s source?
In order to achieve this, i wrote another version of svndiff. With that you can do this
svndiff -r 45 mybook.tex
or compare different revision,
svndiff -r 45 46 mybook.tex
By the way, you can still do a normal diff between the latest revision and working copy.
svndiff mybook.tex
Place it in /usr/bin and chmod +x it and you are done.
[䏿–‡ç¿»è¯‘ï¼½
May 21st, 2007 at 6:04 am
This truly is a remarkable improvment, i was suprised when i didn’t find this in default. Coud you post, or email, the sources since i would like to use it on hp-ux? Great blog btw, i’m a regular reader!
May 21st, 2007 at 8:13 pm
berinder:
Thanks, it is just a script for bash, the source code was posted.
Download svndiff
May 21st, 2007 at 8:50 pm
if you understand how much i regretted my post when i realized that ;) *wave* I’m the stupid one!
August 1st, 2007 at 4:23 pm
great thing – many thanks for it!
:)