SVN thinks files are already under version control


So I have two folders which I want to add to a new repository but they refuse to add because they are already under version control. I deleted all .svn folders in those folders and their subfolders but SVN still knows somehow. How can I see which repo they think they are part of, tell them not to be in there, and put them in the new repo without deleting them or having to move them?

Best Solution

If you have deleted all .svn folders in your local working copy, it shouldn't be versioned anymore. Please note that older version of SVN, use to create a hidden .svn folder in all folders, not only in the root folder or direct subfolders.

You could also do an export command to create a full non-versioned copy in a target directory to avoid the manual delete of .svn folders.

Another issue that could cause this error is that in the new repository, you are already have files or directories with the same name as the directories/files you are trying to add. A good practice would be to import your files in an empty directory to avoid name conflicts.

So, to summarize, the procedure would be like this:

  • export files from your current repository OR delete all .svn folders manually
  • create an empty folder in your new/target repository
  • perform a checkout from the target repository folder to your local copy
  • execute a commit to add all new files
Related Question