Obstructed folders in Subversion

Without knowing what causes this, the solution can be to export the working copy (the entire checkout you have locally) to somewhere else.

If you are using tortoisesvn, you get the option to "export un-versioned files", but I think if doing it from the command line it only exports versioned files so you might have a bit of a laborious task copying un-versioned files manually.

Once done, check out a clean working copy and then drop the exported backup you have over the top of it. It's very important that the backup has no .svn folders in it.

I've seen these errors before when people have checked out working copies inside other working copies or anything else that corrupts the .svn entries.


it occurs when you have deleted or moved the .svn subdirectories (without going through SVN commands), so SVN has a corrupted view of the working copy.

Try a cleanup first, and if that doesn't solve it, revert (or update) the directory to restore the subdirectory .svn folders.


Had the same issue and fixed it like this:

  • renamed the obstructed dir
  • created the dir with its original name in SVN (e.g. svn mkdir)
  • updated the parent folder, so the newly created dir appears in my working copy
  • copied the files from the obstructed to the newly created dir and commited them

Tags:

Svn