My coworker was moving files around in our SVN repo and we end up losing the history of the file. It seem it was because of our IDE (eclipse svn at the time), after some searching we manage to find a way to do it by using the svn command rename & move.
Doing everything by command line can be a nightmare if you are looking for a external tool Tortoise SVN should do the trick, it has the rename command and you can use Tortoise to repair the move operation.
The following will tell SVN that the new file is actually the renamed old one:
- Open the “Check for Modifications” Window.
- Mark both the old file name (listed as missing) and the new one (listed as unversioned)
- Right click this selection and chose “Repair Move”.
If you already lost the history on a file you really need, you can always resurrect the old file with svn copy. You “svn copy” the old version into its old place, merge the new file’s history into it then”svn move’’ this file to the new file name.
More info type:
svn help rename
in the command prompt.