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

Am I Just Following a False Passion in Programming?

I've been programming since I was 13, starting with Roblox, and explored platforms like Unreal, Unity, and Love2D over the years. Recently, I've taken...

Ever Feel Withdrawn After Finishing a Coding Project?

I've just completed a big project after weeks of hard work and even deployed it a couple of days ago. I was looking forward...

How Durable Should Humanoid Robots Be?

As we look ahead to a future with humanoid robots in our homes, how should we balance their durability and strength? If they're too...

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

Online Hash Generator – String to Hash Converter

Need to quickly generate a hash from a string? Whether you're verifying file integrity, securing data, or just experimenting with cryptographic tools, this simple...

Convert CSV To HTML Table

Need to quickly turn CSV data into an HTML table? Whether you're copying data from Excel, Google Sheets, or another spreadsheet, this tool makes...

Student Group Randomizer

Creating fair and balanced groups in the classroom can be time-consuming — especially when you're trying to avoid repetition, manage different skill levels, or...

Random Group Generator

Need to split a list of people, items, or ideas into random groups? Our free Random Group Generator makes it quick and easy. Whether...

Flip Text Upside Down – Free Online Tool

Ever wanted to flip your text upside down just for fun or to grab someone’s attention in a creative way? This free online Upside...

Raffle Ticket Generator

If you're running a fundraiser, charity draw, or local event and need raffle tickets fast, this free online tool lets you generate and print...

Latest Posts

Latest Questions