“Delete SVN folders” context menu item"Delete SVN folders" context menu item

February 24, 2010
Tags: , ,

If you’re using Windows and you have some projects synced with SVN, you could have sometimes the need to remove the folder’s SVN references. This can be done in Windows Explorer by browsing and removing all the .svn subfolders, but if your folder has many subfolders, you’ll have a lot of work to do. There’s a simpler way: tweaking the registry to add a context menu item that allows to delete the SVN references.

This is the reg file:


Windows 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) DO RD /s /q \"%%f\" \""

Run it, then right-click on a folder and you’ll see the aforementioned item. Works well on Windows 7.

The idea comes from Jon Galloway‘s blog. Neat!

Be Sociable, Share!

Leave a Reply




*