61
votes

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?

5

5 Answers

97
votes

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

18
votes

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.

5
votes

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.

2
votes

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

0
votes

(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.