SVN is great for keeping our projects under tight control. Occasionally, we have the need to get something back that was deleted in a previous revision. So I can remember how to do it next time, here it is:
This will copy the file at the revision specified to the new file in the “restore to path” part. You can find the revision by doing an ’svn log –verbose’ of the directory it was in. That’s all there is to it!
My theme seems to be restoring and recovering… is that a bad thing?
May 1st, 2009 at 1:36 pm
svn copy svn://www.example.com/myproject/mydir/myfile@21 .
November 12th, 2009 at 10:26 pm
January 14th, 2010 at 2:56 pm
January 14th, 2010 at 3:01 pm
Hopefully, this version of the command will come through unscathed:
February 19th, 2010 at 7:04 pm