Reputation: 5365
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.
Upvotes: 0
Views: 1674
Reputation: 853
The only way I have found, is to svn log parent_directory back to when the delete happened, and grab the rev number of the delete.
I am looking for this same issue. Will post something better if i find it.
Upvotes: 0
Reputation: 4273
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.
Upvotes: 3