Oct
29
2008
0

Deleting .svn files with windows

This is easy to do in *nix

find . -type d -name ‘.svn’ -exec rm -rf {} \;

Windows it is a bit more difficult, unless you do what this guy did and create a .reg file with the following content

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

Good stuff :)

The reason why I couldn’t do a svn export, is that I cancelled a add / commit half way through both, so the repo was basically screwed.

Written by Aaron Wormus in: General |

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes