views:

165

answers:

6

When I copy an svn directory for tortise the svn icons are still showing up. How can I copy the directory without the svn information being copied as well?

A: 

You'll need to delete the "hidden" .svn directories beneath each folder (after you've copied the directory, of course).

Michael Todd
+6  A: 

You may want to just do an svn export (its in the tortoise svn menu) of the folder. Otherwise you'll have to in and delete all the little .svn folders that these folders have that give those folders to smarts to know that they are svn folders and where they point back to.

Export works just like a checkout except it "detaches" it from subversion and just gives you the contents.

Doug T.
+2  A: 

It is called export commad. It will ask you for a directory where to place the copy. If you select the same dir as your svn dir it will actually remove the svn data alltogether.

Kugel
+12  A: 

Actually, there's an "Export" option. If you right-click-drag-and-drop a folder with Tortoise installed you'll see the export option.

Jim Garrison
+1...this is the easiest way.
Michael Hackner
very cool, did not know this, +1.
Doug T.
+1 - I'd do it this way too.
Critical Skill
+5  A: 

IN SHORT: Use "Export" feature to get a copy of svn directories and files. OR Copy folder and then manually delete svn hidden folders from it.

EXPLAINED: When you do a "Check out", Tortoise puts in each checked out folder a hidden folder where it keeps the "base version" of the folder's content. This way it can detect changes you made to files under source control. To see this hidden folders, you need to set your file explorer to show hidden files and folders. Also, this way the Tortoise can show you the status icons.

There is another way you can get the files from the source control repository. It is the "Export" feature. With this option you get the latest version of the files from the server, but WITHOUT the hidden folders. Be cautious, though, that you will not be able to commit changes to files exported via "Export". (but you can add them as new files, if needed)

If you just want to make a copy of the files (but loose the SVN tracking facility), I would recommend you use the "Export" feature. But, in case you no longer have connectivity with the svn server, you might as well delete by hand all hidden folders from the copied directory.

Ciprian Bortos
A: 
Casey
just noticed that this is only checking for .svn folders. I believe you can set options to use _svn folders instead so you may want to modify the if statement to check for that.
Casey