Home > Software Engineering > Delete SVN Folders Registry Shell Command

Delete SVN Folders Registry Shell Command




Borrowed this from Jon Galloway. It’s a beautiful thing:

Shell Command – Remove SVN Folders
The Subversion source control client maintains your local state in hidden folders named .svn inside your project, which can be a problem if you want to copy or share the project directory. This REG file adds “Delete SVN Folders” to the context menu for folders. When you select it, it removes all folders named .svn inside the folder and it’s children (it does nothing if the project’s not under Subversion source control.

I’m not going to bother explaining reg file installation here – I figure if you’re using SVN, you’re good with reg files.

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\” \”"

 

I changed the .svn to _svn save this in notepad to a .reg file and double click on it to install the
registry command then after I can simply right click on a folder and select to Deleve SVN Folders!

http://weblogs.asp.net/jgalloway/archive/2007/02/24/shell-command-remove-svn-folders.aspx

 

Tags:
  1. No comments yet.
  1. No trackbacks yet.