tags:

views:

16651

answers:

11

I have a folder c:\websites\test and it contains folders and files that were checked out from a repository that no longer exists.

How do I get subversion to stop tracking that folder and any of the subfolders and files? I know I could simply delete the .svn folder but there are a lot of sub-folders in many layers.

+19  A: 

Try svn export.

You should be able to do something like this:

svn export /path/to/old/working/copy /path/to/plain/code

And then just delete the old working copy.

TortoiseSVN also has an export feature, which behaves the same way.

pkaeding
Thanks for providing an answer that works with the command line. :) Great for those of us using terminals.
epochwolf
wow, I didn't know that!
UncleZeiv
If I understand correctly, this command will only export the files currently under subversion control. So if some files or folders have not yet been added certain to subversion or were removed from subversion control, you will lose these files in your export...
Chris Dickinson
+2  A: 

You can use "svn export" for creating a copy of that folder without svn data, or you can add that folder to ignore list

andy.gurin
+2  A: 

use the svn export command:

cd c:\websites\test
svn export c:\websites\test_copy

all files under version control will be exported, double check to make sure you haven't missed anything.

1800 INFORMATION
+6  A: 

If you are running Windows then you can do a search on that folder for .svn and that will list them all. Pressing ctrl+a will select all of them and pressing delete will remove all the 'pesky' subversion stuff.

graham.reeds
pesky indeed ;-) I just need to clean it up and I'll put it back to a new repository.
Brian Boatright
that's also a GREAT way to delete the even most pesky frontpage extension folders!
Brian Boatright
+24  A: 

Also, if you are using TortoiseSVN, just export to the current working copy location and it will remove the .svn folders and files.

http://tortoisesvn.net/node/343

crashmstr
thanks! that was exactly what I wanted to do.
Brian Boatright
Perfect! A simple solution to a common problem I have...
Mark Struzinski
+7  A: 

On Linux, this will work:

  find . -iname ".svn" -print0 | xargs -0 rm -r
Max
+1  A: 

This did the trick for me:

http://weblogs.asp.net/jgalloway/archive/2007/02/24/shell-command-remove-svn-folders.aspx

It lets you add a context menu action that will delete the .svn folder.

Funny - cause I just found it this morning...

Sam Schutte
+1  A: 

This question is the same as: http://stackoverflow.com/questions/160497/removing-svn-folders-from-project-for-deployment

Darryl Hein
Not exactly the same, same answer, different question.
Dre
maybe but I asked the question first.
Brian Boatright
A: 

This is a great tip about unversioning ... Many thanks ...