svn

Checking the changes for many svn versions, one version at a time

jp.stacey 30 October 2007

Say you want to see both the log and diff of a given svn version, just the differences between it and the previous version, plus log message (i.e. what was committed, and why, for version NUM) The following will work at a bash command prompt:

$ r=NUM; rr=-r`expr $r - 1`:$r; svn log -r$r; svn diff $rr

It looks a bit unwieldy, but you can keep pressing the up arrow and home key, and re-editing NUM, multiple times to look at multiple changes:

Subversion log messages need not be set in stone

jp.stacey 14 January 2008

Simon Willison mentioned a while back a link to help on how to undo a svn commit in subversion (more a kind of internal branching than an actual undo, of course: but that’s subversion). That’s all very well, but how about undoing the log message for a particular commit?