tags:

views:

4466

answers:

3

I accidentally created a repository without the default folders in Tortoise SVN then did a checkout locally. Realized hey, I forgot to create that repository with the defaults so I deleted the repository using Visual SVN 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?

+1  A: 

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

Steve Willcock
+6  A: 

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

Jose Basilio
Surely this won't actually work in this case? His repository structure has changed, he doesn't just want to move the repository somewhere else.
Steve Willcock
Sure he can relocate it to the trunk folder.
RedWolves
I tried to relocate to the new URL but said there is conflicting UID
CoffeeAddict
In that case, you may need to create a new folder, check out the files, then manually copy the files you have updated to this new folder.
Jose Basilio
A: 

(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
maybe I should just delete every .svn folder and try again from scratch
CoffeeAddict
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?
CoffeeAddict
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.
CoffeeAddict