I have a solution that is source controlled with Subversion and AnkhSVN in Visual Studio 2008, but I would like to remove source control from it, how do I do that?
-
SVN, as opposed to the dreaded VSS, does not clutter your project files with its "bindings": it keeps all its system information in
.svn
or_svn
subfolders inside every version-controlled directory. Thus, "removing" version control from a project effectively means deleting all these folders.This is tedious, however, so SVN has a special command called svn export which either "exports a clean directory tree from the repository specified by URL" or "exports a clean directory tree from the working copy ".
Mark Dickinson : Yeah thats what I'd do, cheers :)Mark Dickinson : If you were using Tortoise, you could right click on the root folder of your solution and under the Tortoise SVN sub menu, click Export to gain access to the export command.Peter : svn export did the trick txWim Coenen : You can also export in place, i.e. strip a working copy from its .svn folders, with svn export --force . -
Remove .svn folders and your source tree will not be versioned anymore.
-
As far as I know, ankhsvn may store bindings in the solution files. I think that you can remove these bindings (if you have them) by going to File -> Source control -> Change Source Control. In that dialog there should be a command to "Unbind" the projects.
Note: I don't have that kind of source control where I am sitting right now so the menu names/locations might be a bit off (taken from human memory that, as we all know, may be a bit error prone), but it should at least be something similar.
Bert Huijben : This step is optional in AnkhSVN (as registering in the solution and/or projects is optional for most project types), but you should do this if you did mark your project as managed by Subversion before. -
If you want to remove the Subversion control of a file/folder, but want to leave it where it currently is, you can use the 'Delete (keep local)' option on TortoiseSVN. To see this option you must hold down shift when you right-click the file/folder, then it will appear in the context menu.
Bert Huijben : This will not remove the administrative area in the project; it will just mark them to be deleted from sourcecontrol on the next commit. (And you can never delete the root of your working copy).
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.