63

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?

bahrep
  • 29,961
  • 12
  • 103
  • 150
PositiveGuy
  • 46,620
  • 110
  • 305
  • 471

5 Answers5

106

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

Jose Basilio
  • 50,714
  • 13
  • 121
  • 117
18

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.

tim77
  • 181
  • 1
  • 2
5

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.

xorsyst
  • 7,897
  • 5
  • 39
  • 58
  • 2
    To the first way to solve this: If you have access to the server I would add that at the_repo/db/ is a file without extension with the name of UUID that can be replaced with the UUID you need. I would recommend to do a backup previous to the change though. – apacay Oct 17 '11 at 16:33
2

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

Steve Willcock
  • 26,111
  • 4
  • 43
  • 40
0

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

M4N
  • 94,805
  • 45
  • 217
  • 260
  • maybe I should just delete every .svn folder and try again from scratch – PositiveGuy Apr 21 '09 at 02:53
  • meaning there's an svn folder in every sub folder of the affected folder that I'm talking about. If I delete all the sub svn folders within it, I assume it's essentially like clearing source control from that folder and its sub folders manually? – PositiveGuy Apr 21 '09 at 02:54
  • 1
    I ended up simply deleting the .svn folder in the main directory (the one I originally clicked on and chose check-out) which allowed me to just clear and start over again. – PositiveGuy Apr 21 '09 at 03:01
  • I ended up fixing exactly as you did, by deleting the .svn folder and re-checking out – Alex Apr 12 '11 at 18:41