views:

138

answers:

2

So I removed file X from SVN many moons ago, and I have the revision number of that delete. I would like to know the revision number of the previous commit (i.e. the last existing version of file X). CVS was sequential, so I could just -1, but this does not appear to be the case with SVN.

+3  A: 

Revision numbers in svn are sequential, too, it's just that they don't increase for every file on every commit. If the delete was revision number 246, then

svn co -r 245 url://svn/project

should give you the project state just before the delete. The file should be in there and you can

svn log filename

to get the last commit for the file.

wallenborn
+1. Also, without checking out: svn log -r 245 url://svn/project/filename
orip
A: 
svn blame filename -r123
Josh Boyd