SVN undo delete before commit
1) do
svn revert . --recursive
2) parse output for errors like
"Failed to revert 'dir1/dir2' -- try updating instead."
3) call svn up for each of error directories:
svn up dir1/dir2
svn revert deletedDirectory
Here's the documentation for the svn revert
command.
EDIT
If deletedDirectory
was deleted using rmdir
and not svn rm
, you'll need to do
svn update deletedDirectory
instead.
What worked for me is
svn revert --depth infinity deletedDir
Do a (recursive) Revert operation from a level above the directory you deleted.