Why doesn svn switch work in some cases?
In some cases where there are unversioned (and maybe ignored) items in the working copy, svn switch can get an error. The switch stops, leaving the working copy half-switched. Unfortunately, if you take the wrong corrective action you can end up with an unusable working copy. Sometimes with these situations, the user is directed to do svn cleanup. But the svn cleanup may also encounter an error. See issue #2505. The user can manually remove the directories or files causing the problem, and then run svn cleanup, and continue the switch, to recover from this situation. Note that a switch from a pristine clean checkout always works without error. There are three ways of working if you are using svn switch as part of your development process: • Fully clean your working copy of unversioned (including ignored) files before switching. WARNING! This deletes all unversioned dirs/files. Be VERY sure that you do not need anything that will be removed. # Check and delete svn unversioned files: svn