Change repository on your folder with TortoiseSVN

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?


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


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.


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.


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