How to undo an svn update with staged changes?

635 views Asked by At

I've been removing lots of files from an SVN branch using:

svn rm filename
rm -rf filename

When I ran svn status, I saw all of the files I deleted listed as deleted and ready to commit. Before committing the changes, I ran svn update. This caused all of the files I deleted to be added back, and they are no longer staged as deleted when I run svn status.

Is there a way to get my deletes back in staging without doing all the work over again?

1

There are 1 answers

0
Peter Parker On BEST ANSWER

unfortunately you will not find a solution: by deleting without using

svn rm [filename]

Subversion thinks the files were somewhere accidentally vanished. So on your

svn update

Subversion thankfully recreate these files for you. Also it totaly forgot what files where recreated. However if you have the output of your svn command, you should see the actions subversion did.