Change repository on your folder with TortoiseSVN

SvnTortoisesvnVisualsvn Server

Svn Problem Overview


I accidentally created a repository without the default folders in TortoiseSVN then did a checkout locally. Realized hey, I forgot to create that repository with the defaults so I deleted the repository using VisualSVN Server and then recreated the same repository name which now has the default folders trunk, etc.

Problem is, my local folder has already been checked out. How can I change it/repoint to the new repository URL?

Svn Solutions


Solution 1 - Svn

You can right click on the folder, and click "relocate" in the Tortoise menu.

Solution 2 - Svn

You can right click your working copy and select TortoiseSVN/Switch... Then change the "To path:" to the new folder in the repository. It worked for me.

Solution 3 - Svn

You won't be able to do this easily, as the two repositories don't have the same unique identifier (UID). There are 2 ways you could have done this:

  1. Force a particular UID on the new repository (not sure if your SVN server gives that option)

  2. Don't delete the repository, just create the folders in your working copy, and svn move the files into trunk, then check the whole thing in.

Solution 4 - Svn

Assuming you don't have any files in the checked out version that you need, just delete the directory and checkout again.

Solution 5 - Svn

(Assuming you have files in your local working copy): Since you created a new repository, I guess you have to import your working copy into the repository.

Using TortoiseSVN, you can export your working copy to a different folder (so that you only have your source files, without the .svn folders). Then you can import that folder into /trunk of your new repository.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPositiveGuyView Question on Stackoverflow
Solution 1 - SvnJose BasilioView Answer on Stackoverflow
Solution 2 - Svntim77View Answer on Stackoverflow
Solution 3 - SvnxorsystView Answer on Stackoverflow
Solution 4 - SvnSteve WillcockView Answer on Stackoverflow
Solution 5 - SvnM4NView Answer on Stackoverflow