Home > Uncategorized > Subversion: undo files marked for deletion

Subversion: undo files marked for deletion

Problem: While in Eclipse, my finger and thumb lost coordination and I accidentally dragged a folder up the file tree to a another folder. Since I have Subclipse installed, it automatically maked my changes for “addition” and “deletion” from the repo. A simple svn revert on the parent directory was not enough.

Solution:  For some reason I’m used to Subversion commands being recursive by default (guess I’m used to doing a lot of updating?). This is apparently not the case with revert. You need to explicitly indicate the -R [ --recursive ]  option

To revert an entire directory:
svn revert --recursive <directory>

Categories: Uncategorized Tags:
  1. No comments yet.
  1. No trackbacks yet.