svn, can't remove a directory

fedora, linux, svn

Solution

SVN does get confused about directories sometimes.

Unless you have a lot of changes you need to check in, I suggest removing the hierarchy in question from your filesystem (rm -rf), and checking out again starting from wherever looks appropriate. This always seems to handle SVN directory confusion for me.

Problem

I am on Fedora 17 trying to use svn version 1.7.6 I have created a repository at `/home/el/svnworkspace` and I checked out a working copy in `/workspace` I am getting this error when I use the command: ``` [root@defiant workspace]# svn remove TestProject --force ``` Gives the Error: ``` svn: E155035: '/workspace/TestProject' is the root of a working copy and cannot be deleted ``` The error message is partially right, `TestProject` was a root before. But I deleted it and now `/workspace` the root. So somehow it is confused. I no longer want TestProject to be a root, and I want workspace to be the root. svn is confused, and I want to unconfuse it, maybe one of you know the proper wizard incantation to remove `/workspace/TestProject` as a root of a working copy? I just want it to be a normal folder again. Perhaps the only way for me to fix it is to blow everything away and re-add everything. Maybe a resident wizard knows a better way.

Original source