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

Is it safe to use open Wi-Fi at a hotel without a VPN?

Hey everyone! I'm currently at a hotel that offers open Wi-Fi, and I'm using it for social media and checking my emails. A friend...

Can’t Log Into Windows Without Internet – Need Help!

I just built a new PC but I can't log into Windows since I need to change my PIN, which requires an internet connection....

Is It Realistic to Learn Java and JavaScript at the Same Time?

I've always wanted to master Java because it's widely used in established companies. However, I keep seeing a lot of codes and projects involving...

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

OpenAI Token Calculator

This tool is a simple OpenAI token calculator, web-based utility designed to help you quickly estimate the number of tokens in your text when...

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...

Latest Posts

Latest Questions