80

I'd like to know what the currently checked out revision number is for a file or directory. Is there a way to do this in TortoiseSVN on Windows ?

7 Answers 7

145

Right-click on the working directory in windows explorer, and select "Properties" (Not TortoiseSVN->Properties). You will see the Properties dialog, which will have a tab called "Subversion". Click on it, and you will see the version number, and other info.

3
  • Strange... I have used in on Windows Server 2003 and 2008, both 64-bit. Are you sure that you have Tortoise installed? Can you see the Tortoise icons showing the status of the versioned files?
    – Dima
    Jan 13, 2011 at 15:40
  • 14
    "Properties" is not the TortoiseSVN properties but the usual Windows explorer properties. Sep 6, 2012 at 11:32
  • To my understanding the displayed version number corresponds to the last svn update (or svn checkout if there was no svn update afterwards). Any svn commit which has been applied on the local directory afterwards is ignored. In order to see the 'last' revision number of any update or commit see the answer of @nishantcop: Bold line in TortoiseSVN Log. (Tested on Windows 10, TortoiseSVN 1.13.1, Subversion 1.13.0)
    – Thomas853
    Jun 13, 2022 at 11:59
22

Not in tortoise but in command line.

svn info

will return what rev you are checked out on.

2
  • 3
    I'll +1 on this answer because this SO-answer is returned by google when I searched for "svn currently checked out revision". And you answered at least that ;-)
    – tobsen
    Oct 8, 2009 at 14:52
  • It tells you a revision number, but not whether that revision is the HEAD or not. For that I think you need to use svnlook youngest /var/svn/xyz on the raw repository path... surely an easier way to see whether you are at HEAD?
    – Ed Avis
    Sep 25, 2014 at 10:54
17

TortoiseSVN -> Show log: The line in bold marks the current revision in your working copy.

2
  • while the accepted answer is the fastest one, this seems to be the "canonical TSVN answer" ;)
    – Wolf
    Apr 17, 2019 at 13:50
  • To do the same thing from command line use: svn -r HEAD info --show-item last-changed-revision May 26, 2021 at 11:26
9

If you are using XP, change your Explorer windows to Details View. Navigate to an SVN-controlled folder then go to View > Choose Details and select the SVN columns for status/rev/etc.

2
1

Thanks John, that's very useful but doesn't show the revision for the root folder of a project.

Now that you've pointed me in the right direction, I have found that I can right-click the folder, select properties and a TortoiseSVN tab appears which contains the revision number.

2
  • Add this as a comment to his question then. You don't need to pretend this is an answer.
    – GEOCHET
    Sep 18, 2008 at 3:45
  • It is an answer. John's answer was not quite what I was looking for. This is. Turns out that Dima submitted the same answer so I'll accept his. Sep 18, 2008 at 3:55
0

Before "Change your Explorer windows to Details View. Navigate to an SVN-controlled folder then go to View > Choose Details and select the SVN columns for status/rev/etc."

you have to change your Windows Registry settings, adding this DWORD value

HKCU\Software\TortoiseSVN\ColumnsEveryWhere

and setting it to 1, as stated in the TortoiseSVN documentation.

-1

nice one John Sheehan. I always just right clicked on the root folder and selected tortoise-svn | view log .

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.