On Stefan’s blog on TortoiseSVN, he describes a trick that can be used to “unversion” an svn working copy — basically, how to remove all the .svn folders from a working copy. This is something that I do, periodically, so it’s nice to learn a new shortcut — and, I love shortcuts.
I figured that I would re-present the information here, for LabVIEW users, but try to simplify the instructions, a little bit.
To do this trick, you basically export the working copy onto itself — meaning, you choose the working copy’s location as your checkout destination (so that the export source and destination are the same). TortoiseSVN is smart about this and realizes what your trying to do, and it simply removes all the .svn folders from your working copy.
You can do this trick, one of two ways:
Method 1) Right click on your working copy and choose TortoiseSVN>>Export. In the resulting file dialog, browse to the working copy folder, select it, and choose OK.
Method 2) You can use the TortoiseSVN Right-Click Drag and Drop feature, using the technique shown in the screenshot below. First, make sure to select “Folders” to view the explorer tree. Second, use the File Explorer tree to select the working copy’s parent folder in the tree (Folders area to the left), so that the working copy folder is visible in tree and in the file list (area on the right). Third, right-click drag & drop your working copy from the file list (on the right) onto itself in the tree (on the left). Then, when the pop-up list of choices appears choose “SVN Export versioned items here”.
Method 1 is a little bit harder, IMO, since the file dialog is one of those awful Browse for Folder (explorer) dialogs (which I don’t like), instead of a standard File Dialog that you can use to paste in a path (which I prefer). But, Method 2 is trickier to understand, but hopefully the annotated screenshot, above, helps.
Do you know any other useful TortoiseSVN tips? Please leave a comment and share them.