views:

1509

answers:

6

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 ?

+4  A: 

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.

John Sheehan
Very nice. Good job.
Geoffrey Chetwood
Unfortunately, this doesn't work in Vista or Windows 7 Beta. http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-wcstatus.html
ChrisN
A: 

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.

Adam Pierce
Add this as a comment to his question then. You don't need to pretend this is an answer.
Geoffrey Chetwood
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.
Adam Pierce
A: 

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

ranomore
+6  A: 

Right-click on the working directory in windows explorer, and select "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.

Dima
+1  A: 

Not in tortoise but in command line.

svn info

will return what rev you are checked out on.

DevelopingChris
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
A: 

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.

kdnp