Archive

Archive for July, 2008

Subversion: undo files marked for deletion

July 21st, 2008 admin No comments

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: