tags:

views:

62

answers:

3

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: Failed 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?

A: 

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.

Micharch54
A: 

svn revert back to the revision before you deleted the .svn folder.

See: http://wiki.greenstone.org/wiki/index.php/Useful_SVN_Commands

Jon
+3  A: 

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.

sbi
Thank you. That solved the problem.
Patrick McElhaney