Axelology
Posted At : September 5, 2007 10:34 AM | Posted By : Axel Jensen

Delete All .svn Files in windows

I found this entry and found it useful....

http://www.broobles.com/blog/posts/36

Everything below is a direct copy and paste of the link above... but I don't want to take the risk, should that link ever go down...

In Windows Explorer:

Right click on the folder and click Search.. Enter .svn as the filename to search for. Click “More advanced options” and select: - Search hidden files and folders - Search subfolders Press search button and delete the folders you find appropriate.

Oh, and this description is at least valid for windows xp pro.

The easiest way is by creating a .cmd script file at the root directory and execute it. Here is the code for cleanSVN.cmd :

for /f “tokens=* delims=” %%i in (’dir /s /b /a:d *svn’) do ( rd /s /q “%%i” )

Comments
here's a quicker way

svn export folder1 tempfolder
deltree folder1
mv tempfolder folder1
# Posted By Evert | 9/5/07 12:21 PM
Use the "export" method to create a version of your source without any .svn folders. With SVNTortoise, it's as easy as right-clicking and selecting "Export".
# Posted By Steven | 9/5/07 12:27 PM
Sure, if you want to do weird stuff with BAT commands, you can. I did some (http://snippets.dzone.com/user/debedb/tag/bat). But why not just install cygwin?
# Posted By DEBEDb | 9/5/07 10:54 PM



Blog provided and hosted by CF Webtools. Blog Sofware by Ray Camden.