Resurrection of Deleted Revisions
If you manage to delete an entire folder and need to resurrect it from the repository, the solution is as follows. You must perform a URL to URL copy. The trick is ~ in the source URL, include the revision number the code last existed at. So to un-delete the repo/ folder at revision number 29600 from http://svn.domain.com/repo use this command
svn copy http://svn.domain.com/repo@29600 http://svn.domain.com
This copies revision 29600 into the destination path. Note: you dont need to include the destination folder name as it comes across with the copy.
Now for some background on how this happened. I’d been working on a project which required an svn:externals inclusion. So, during the devlopment (typically) the spec evolved and it turned out that the external wasn’t required any more. I needed to remove this relationship from the branch and proceded to svn delete it, and then svn commit. Perhaps I should have checked first, but it deleted the code from the external. repository location
I hindsight – I’d just delete the svn:externals property and move on…