Possible Duplicate:
What’s a simple way to undelete a file in subversion?
I wanted to import a new project called prj1 into the depo. Inside prj1 there is sub1, sub2, ...
cd prj1
svn import prj1 http://someurl.com/project/branches/
But this was the wrong path and I should have added prj1 at the end of the above line, so I intended to remove the sub-projects in prj1 and I intended to do:
svn remove http://someurl.com/project/branches/sub1
But I mistakenly did:
svn remove http://someurl.com/project/branches
As a result branches is gone. Inside branches, in parallel to prj1, there are some other projects that I don't have local copy of (haven't checked them out). I was wondering if there is any way to undo the accidental svn remove of branches and bring it back to the depo.
EDIT:
As suggested by Lekensteyn, Lazy Badger, and https://stackoverflow.com/a/3128696/1383356, I solved the problem by checking out the latest version (102), and rolled back to version 100 (which was before import) using svn merge. Here are the details:
svn co http://someurl.com/project
cd project
svn merge -r 102:100 http://someurl.com/project
svn commit -m "Rolling back to the old days of r100 :)"