Obstructed folders in Subversion

前端 未结 17 1256
南方客
南方客 2020-12-12 15:12

What the heck does \"obstructed\" mean when you try to check into Subversion? I see two folders in red with text status of \"obstructed.\" I don\'t see what this means anywh

相关标签:
17条回答
  • 2020-12-12 15:57

    This means that, for some reason, a conflict has occurred during the operation. Check to see if there is an existing unversioned file or folder with the same name as a versioned one.

    (Paraphrased from the Tortoise SVN client help file)

    0 讨论(0)
  • 2020-12-12 15:58

    We often have multiple branches on the go at the same time, in order to save me switching or messing around with IIS configuration I check each branch out to a separate folder. I then use directory linking to connect those folders back to the main path configured in IIS.

    So for me the linked directory always has a yellow exclamation and is marked as obstructed. I believe this is because it was technically created/moved outside of SVN.

    0 讨论(0)
  • 2020-12-12 16:00

    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.

    0 讨论(0)
  • 2020-12-12 16:01

    Faced this issue on a Windows machine.

    I had checked out the directory before I checked out the entire project it belonged to. It caused the 'obstructed' issue for me.

    I simply deleted that folder and ran an update from root (of that folder). It worked fine.

    Commands like cleanup etc. did not work for me.

    Some word of caution:

    1. This is costly if the folder is large.
    2. It will cause you to lose all your changes if there are any.

    All the best.

    0 讨论(0)
  • 2020-12-12 16:01

    I ran into this in Eclipse where some files were marked with a red exclamation point. The problem was a stray .svn folder in the source directory. I deleted the .svn folder, refreshed eclipse, and was able to check in the files.

    0 讨论(0)
  • 2020-12-12 16:02

    If you're on a *nix system, ensure that you didn't create a file, add it to SVN, then delete it, replacing it with a folder of the same name. Doesn't help OP, but hopefully it'll save someone a bunch of stress.

    0 讨论(0)
提交回复
热议问题