Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I undo "svn switch" on a subdirectory?

Tags:

svn

Not for the first time, I've accidentally done "svn switch" from somewhere below the root of my project. This switches that subdirectory only, but how do I undo this?

If I try switching the subdirectory back to the original branch I get:

"svn: Directory 'subdir\_svn' containing working copy admin area is missing"

Update: I've got changes in the subdir, so I don't want to do a delete.

In the short term I've fixed it by reapplying the changes, but I was after a way to get Subversion to re-switch back to where I came from... or is this a missing feature?

like image 402
PEELY Avatar asked Sep 19 '08 09:09

PEELY


1 Answers

Quick hack: Delete the directory, go one level up, and run svn update.

like image 50
Alexander Avatar answered Sep 24 '22 08:09

Alexander