How To View SVN Revision Log Via Command Line

When using SVN via command line you can view the details of previous revisions by viewing the SVN log. Call the log along with the number of revisions you want to have returned to you will display the message left when the file was committed, number of lines changed, user, date and a few other details. Ideally you would have access to a GUI tool such as tortoise SVN which will give you a much more feature rich log along with the ability to compare current revisions with past revisions.

In order for this to work you need to be in the directory of an SVN checkout. If you do this in a directory that is not a SVN folder you will get an error message due to an unrecognized directory.

cd /dir/to/checkout

svn log --limit 2

r61 | root | 2015-02-23 09:05:53 +0100 (Mon, 23 Feb 2015) | 1 line

Fixed something
r60 | root | 2015-02-23 09:01:04 +0100 (Mon, 23 Feb 2015) | 1 line

Added something

If you want to display everything within a specific date range you can use the following

svn log -r {2015-02-02}:{2015-02-03}

If you want to list everything (may not be all that good of an idea if you have a huge amount of revisions).

Ascending Order

svn log -r 1:HEAD

Descending Order

svn log -r HEAD:1