Folder that's no longer in the repository is showing up with a caution icon
I'm using TortoiseSVN on Windows 7.
I've got a folder that got fouled up (probably because I renamed it outside of SVN). I've read the Stack Overflow article about obstructed folders/files, and that folder is now not listed in the repository, but it's still showing 开发者_运维问答up with a warning icon (when I do a Cleanup, TortoiseSVN reports that it's "not a working directory"). This then triggers warning icons for all parent directories. I could ignore that warning, but then I might miss real warnings. Also the "caution" warning appears on the root folder even when it should be a "Files need to be committed" icon.
Summary of what I've tried
1.Removed that folder (Data) from source control. 2. When I try to Cleanup it's parent folder, I get an error that Cleanup failed because \data is not a working directory 3. I (perhaps foolishly?) then deleted that directory from the repository browser. That succeeded, but it did not fix the problem. That folder is NOT listed in the repository. 4. (update) And... if I try to Checkout that folder, TortoiseSVN doesn't show me the correct repository folder (.../data/)and if I manually type that one in, it says it does not exist.
What is the solution?
Sometimes it is easier to checkout from scratch and copy your changes back into the newly checked out working copy.
SVN is wierd that way.
Use the Check for modifications dialog on the parent folder:
The folder in question should be listed there with status "conflicted". Just right-click on that folder and select "resolved" from the context menu.
You might need to delete the hidden .svn
folder that are put in folders. If you don't have it already, just enable it so that you can view hidden folders, and then find the .svn
folder within this folder that you're having issues with and delete it. You may need to refresh the folder after that.
精彩评论