Accidentally committed the .svn directory
I accidentally committed a folder named .svn
to a Subversion repository. Now when I try to check out or update I get this error message:
svn: Fa开发者_开发问答iled to add directory 'oops/conferences/.svn': an unversioned directory of the same name already exists
I removed the directory in the next commit, but that didn't help. Any ideas?
Have you tried to remove the folder directly in the SVN repository?
svn delete http://my.svnserver.org/path/.svn
Most SVN commands can take either a local path into the working copy or an URL into the repository. You should be careful with the latter, since this performs the action directly, without any need to commit.
svn revert back to the revision before you deleted the .svn folder.
See: http://wiki.greenstone.org/wiki/index.php/Useful_SVN_Commands
Delete the folder and then update to the head revision. Otherwise you may need to rebuild your repository I believe. I'm not an expert but I've done this before. I just fixed it be updating my repository.
精彩评论