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

Related Articles

Related Questions

WordPress Table of Contents Plus Not Working

I have been using this plugin for a while and i really like it. It seems to have completely stopped working recently. I can...

Function Keys Reversing Between Fn Actions And Normal

My keyboard has the usual F1 to F12 keys along the top. I use these for shortcuts in various applications. These keys also have...

Whirlpool Oven F6E6: Appliance Manager 1 Board Communication

I have a brand new Whirlpool oven W11I OM1 4MS2 H or (859991549450). I bought it alongside the microwave combi oven. I have had...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest Tools

List Sorting Tool

Welcome to our innovative list ordering and management tool. This next-level platform enables you to sort a list of items in ascending or descending...

Sudoku Solver

Welcome to our free online Sudoku solving tool, an interactive platform for puzzle enthusiasts seeking a break from a Sudoku conundrum. This advanced platform...

Apply Image Filters To Image

Digital imagery in the modern world is all about reinforcing emotions and stories behind each photo we take. To amplify this storytelling, we are...

Add Watermark To Image

As the world is increasingly consumed by digital media, protecting your original images is paramount. We are thrilled to introduce you to our innovative...

CSV To Xml Converter

Welcome to our CSV to XML converter tool, a convenient and user-friendly solution for all your data conversion needs. This versatile tool on our...

RGB Image Splitter

Welcome to our innovative RGB Splitter - a unique image analyzer tool that offers an in-depth peek into the building blocks of your photos....

Latest Posts

Latest Questions