Travis
Travis

Reputation: 4078

How to undo an svn update with staged changes?

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?

Upvotes: 0

Views: 678

Answers (1)

Peter Parker
Peter Parker

Reputation: 29715

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.

Upvotes: 1

Related Questions