views:

11052

answers:

2

I am pretty much the only person making check ins to the svn repo but for some reason over the past week Tortoise is reported that my WCF Service Reference directory is 'obstructed' and I cant commit my changes. If I have no even made any changes to the contents of that directory, why does svn report obstructed and what does that even mean?

Thanks

+12  A: 

You've probably deleted/moved some files / directories directly from the file system, and not through SVN commands. This can sometimes lead to a directory becoming obstructed if it can not work out the differences against the repository.

Try performing a clean-up first, and if that fails, revert that directory and try use SVN commands for changing directory file structure (delete/move).

Eran Galperin
Your right, I deleted the service reference directory locally then regenerated it. The new generated filenames were different from those on svn. Nuked the svn dir and readded the dir.
Mark Stahler
+6  A: 

If the .svn sub-directory is missing the directory is marked obstructed as SVN has no way of knowing the directory's status any more. Most likely clean-up or revert isn't able to fix it, since local svn data is gone, so you got two options:

  1. rm the directory and update to get latest working copy
  2. if the directory contains valuable, changed stuff, check out the latest working copy in a temp directory and manually copy the missing .svn directories in place, then SVN is again able to make sense of it.
Tuminoid