Someone made a single subversion commit that delete a file, and added a new file with the same name, that consists of the original files along with ~155 new lines.
(I have no idea how they managed to do this.)
Now 'svn log' only shows the history going back to that commit, and I have to jump through hoops if I want to diff revisions of that file from before and after the point in time that they did this. (E.g. 'svn diff url@oldrev url@newrev' instead of 'svn diff -r n:m')
A handful of commits have been made to this file after this happened. (Around 3).
How can I fix this?
I'm using the command line 'svn' client on Linux.
Mightymuke is actually right:
Here are the instructions:
if using tortoiseSVN, use show log and locate Rd in history, click on it and right click on the deleted file and choose "Revert changes from this revision" Do not use this on the whole revision, because then you would undo other changes as well. On other OSes use a reverse merge for this("-c-Rd" means for example "-c-50" if 50 was revision of your deleted file):
svn merge -c-Rd
copy the current file contents from the deleted file into the revived on and commit(state the undoing Revisions R2..Rn in your commit message). Alternative: you can recreate each of the old revisions and commit them separately(state the original revision R2...Rn in each commit message)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With