svn: Get highest revision number of directory tree

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

svn: Get highest revision number of directory tree

Post by ^rooker »

[PROBLEM]
I wanted to update my production version to a certain revision, which has been used as internal release-candidate version within the development team.

Since it was only internally used, it hasn't been svn-tagged, so I wanted to find out which revision number that release-candidate had.

Using "svn info" only works for individual files - and they came from mixed revisions, so it wasn't guaranteed to be the most recent revision used.


[SOLUTION]
Calling "svnversion" (comes with SVN by default) in the affected directory, returned exactly the result I was looking for, and shows which revision range exists in the folder.

An example result is as follows:

Code: Select all

195:202M
This means, that in my release-candidate folder, I had files from revision 195 up to 202.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply