Fix a Subversion OOPS

tmonteit
tmonteit used Ask the Experts™
on
I have some code base that is in a subversion repository.  I am currently on version 4.

I was trying to remove a couple of files, but was in the wrong directory.

I typed svn rm *.  'oops'  About 25 files are marked 'D' for delete.   I have not done a check-in and I'm trying to undo this mistake.

Now I want to undo that pending delete.

How do I undelete all those files?

Thanks!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
You could do a svn revert if you didn't make any changes.
Topic Advisor
Most Valuable Expert 2016
Commented:
Remove those files from your working folder and do an svn update on that folder.

When you are unsure, checkout that folder on another location as well before you do the update :)

Author

Commented:
I know the files existed in a usable format on revision 3.  Here is what I have tried:

  me@ubuntu:~/project$ svn update -r 3 index.html
  At revision 3.
  me@ubuntu:~/project$ ls
  bin  images  include   scripts

But there's no index.html

If I do a `svn status`  my list of files are all marked 'D' and index.html is still there.

hmmm....

Author

Commented:
Blew the whole project away and replaced it with a svn co http://project_url

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial