In 2008, over one thousand people experienced the world’s first virtual web conference. Together, we created a new type of conference that is environmentally-friendly, affordable, and interactive.

In 2009, we are going to take it one step further.


Goodbye CVS!

Ever had to manually go through a large project and delete all the CVS folders in it because you didn't export it and the module no longer exists in CVS? If all you have is a workspace copy and you want to add it back to CVS (perhaps a different CVS server), then you can either painstakingly delete the CVS folders manually or you can buy me a beer as thanks for this little nugget:

FOR /r /d %D in (CVS*) do @rmdir /q /s "%D"

In Windows, go to the root directory of your project, enter the line above into the command prompt and all your CVS directories will be gone :) (Disclaimer: Be careful with wildcard deletes like this -- double check that you've entered it correctly, that you're in the right directory and that you have no other directories that begin with "CVS". Don't come banging at my door if you accidentally wipe out your hard-drive!)

Of course, the best thing is never to get into these situations. You can easily use a tool like Tortoise CVS (or the command line) to Export a copy of your project without the CVS directories.

Creative Commons LicenseThe Goodbye CVS! article by Aral Balkan, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 2.0 UK: England License.

Post Metadata

Date
December 9th, 2003

Author
Aral Balkan

Category

Tags


1 Trackbacks & Pingbacks

  1. January 13, 2007 1:07 am

    Daniel Tome’s blog » Delete CVS files :

2 Comments

  1. I know you no longer use windows anymore, but this command wasn’t deleting the hidden CVS folders. I’ve updated the command to also delete the hidden CVS folders:

    for /f “tokens=*” %%i in (’dir /b/a/s CVS*’) do @rmdir /q /s “%%i”

    It might be useful for someone.
    I’ve also posted some info to add to the windows explorer context menu:

    http://danieltome.com/index.php/2007/01/13/delete-cvs-files/

    If you’re ever coming down under near Sydney, let me know and I’ll buy you a beer ;-)
    cheers,



  2. amar

    Thanx to both of you, come to india you will get a dinner for this :)


Leave a Reply