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.

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

@=”Delete SVN Folders”

@=”cmd.exe /c \”TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \”%1\” %%f IN (.svn) DO RD /s /q \”%%f\” \””

@=”Delete CVS Folders”

@=”cmd.exe /c \”TITLE Removing CVS Folders in %1 && COLOR 9A && FOR /r \”%1\” %%f IN (CVS) DO RD /s /q \”%%f\” \”"

Don’t try these scripts unless you are damn sure what you are doing 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

Exit mobile version