Jon Galloway just posted a pretty cool registry hack on his website that allows you to quickly delete all the hidden subversion folders from a directory. This is extremely helpful if you want to move/copy your local folders to another location and don’t want all the subversion mappings.

I don’t know how many times I have gone through the process of copying a folder to my desktop and then searching for all the svn folders and deleting them. Now I can easily delete them all in one step.

Note: because I’m using the subversion asp.net hack and all my subversion folders are _svn instead of .svn I modified the shell command to be like so, that way it works no matter which way you have subversion configuredWindows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@=”Delete SVN Folders”

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]
@=”cmd.exe /c \”TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \”%1\” %%f IN (.svn,_svn) DO RD /s /q \”%%f\” \”"

The only thing better would be a “Copy Without SVN folders” command