Why Subversion SVN can be a pain

I was faced with a really annoying situation today. I was tempted to try Open-Source source control after a lot of VSS and TFS usage.

I tried CVS using WinCVS.

SubVersion has become famous recently and just wanted to give it a try. There’s also a pretty Windows client called TortoiseSVN Now after moving the stuff into the repository , I saw that both CVS and SVN create directories called ‘CVS’ and ‘.svn’ everywhere inside the project. Now I wanted to FTP the files to my site. But a crazy bug bit me with SVN. I saw even the damn .svn directories being moved to the site ? WTH ?

I wanted to move only the source code and not the file version information.

2007-06-09_203058.png

This blog entry came to my rescue Shell Command – Remove SVN Folders

It’s a Windows hack which adds a context menu into Windows explorer

I modified the script a bit to add CVS removal support

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteCVS]
@=”Delete CVS Folders”


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

2007-06-09_204454.png

Don’t try these scripts unless you are damn sure what you are doing :D The above scripts deletes all folders named .svn and CVS in the folder inside which you call it . It will wipe off all versioning info, so better be careful

Published by

Varun Krish

Varun Krish has been dabbling with computers and websites for almost 2 decades. He has traveled to over 30 countries and hopes to visit every country on earth one day. He is currently the Editor-in-Chief of FoneArena.com and also advises startups and product companies on how to build better products. You can follow him on @varunkrish

Leave a Reply

Your email address will not be published.