Friday, December 13, 2013

SVN log changes between revisions

Normally the svn log command lists revisions from the most recent revision to the beginning of time. It's possible to only list a log between a range of revisions using the following syntax:

svn log https://server.com/svn/product -v --stop-on-copy -r 250:1000

-v gives verbose output, showing the files changed
--stop-on-copy only lists history for that branch, instead of following branch instructions and looking at the parent's history
-r lets you specify the revision, or in this case the range with the : operator

This will give you the history for revisions 250-1000 inclusive.