views:

1962

answers:

5

I am implementing the use of Subversion as a source control tool for my projects, but made some mistakes when determining what structure to use. So I added version control to some folders (projects), that I would like to undo.

But I can't seem to find a way to do that? Do I have to copy the folder, delete the original and add source control to the new one?

I use TortoiseSVN and Visual Studio 2008.

+6  A: 

Just remove the .svn folders in the folder and all its subfolders.

An easier way to do this would be to Export the folder using TortoiseSVN.

Can Berk Güder
This is a good answer, but be careful of using this outside the context of this answer. Deleting .svn folders is a good way to corrupt your working copy (or at least a section of it).
Jason Baker
That simple?! :DThanks :)
Kjensen
Also, don't forget to add the files and folders you're removing from SVN to SVN ignore.
Rui Pacheco
+2  A: 

Can Berk Güder is correct, but in my experience with SVN (not always very pleasurable), I'd probably add that you would probably want to check your SVN Repository to make sure there aren't any orphans hanging around in there that would be unreconcilable when you re-commit.

And beware of TortoiseSVN, it is not always correct with its status. Probably best to run a Clean post integration.

Also, have a look at VisualSVN. It overcomes DLLs accidentally getting in your source control and works very well with Visual Studio 2008. I use it and it auto-adds things beautifully.

Program.X
Thanks. I am actually using ankhsvn, and I think it does the same as VisualSVN - but free - from what I have read anyway.
Kjensen
+5  A: 

In addition to the previous comments:

There is a really neat way to export using Tortoise. If you right click and drag/drop your svn folder, when you release the mouse button you will be prompted by a menu including these entries

SVN Export to here
SVN Export all to here

The latter also copies files not placed under svn control.

This right click trick can also be used for dragging files and folders around within a repository (simultaneously with editing the working copy), to achieve moves and copies that are otherwise tricky.

willw
A: 

you can also use switch solution from visual studio.. it works wonders

Sean
+1  A: 

Already asked and answered

Rick