Thursday, July 16, 2009

Removing CVS or SVN Repository from SourceForge.net

SourceForge.net is by far the most popular Open Source Programming Site out on the web. They have a lot of great Project Management features on that site and all for FREE!

A question was asked from me by one of our Open Source Developers on how to remove a CVS or SVN repository from SourceForge, so this is my attempt to both answer that question and write something useful down for the rest of the SourceForge Developers out there with the same problem.

Step 1: Download Putty.exe from this link:

http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe

Step 2: Run Putty, and enter the following information under each specified tab:

Session Tab: For "Host Name", type "shell.sourceforge.net" and check the "SSH" radio button.
Connection > Data: Under "Auto-login username" textbox enter "user,projectname", where "user" is your SourceForge.net registered username and "projectname" is the Unix Project name (without space) that SourceForge gave you when they approved your project.
Connection > SSH: Enter "create" in the "Remote command" textbox.

Step 3: Once you have all of that in place, click on the "Open" button to connect to SourceForge.

Step 4: You will be prompted to enter your password. Enter it to continue.

Step 5: Once on the Shell Prompt, enter "adminrepo --checkout cvs" to cache a copy of your repository (clone it). This may take a few minutes to do depending on the size of your repository.

Step 6: Remove each repository you want to delete using the following command:

rm -rf /cvsroot/projectname/RepositoryToRemove

Here "RepositoryToRemove" is the name of the CVS or SVN repository you wish to delete. If you want to delete ALL repositories, you can replace "RepositoryToRemove" with a "*".

Note: If you need to create any new repositories at this point, you could use the "cvs -d /cvsroot/projectname/RepositoryToCreate command to create it.

Step 7: Type "adminrepo --save" to save your changes and get rid of the cached version of the repositories you were working on.

That's it! I hope you found this blog entry useful. I know of at least one person on my Open Source Team that will!

Pete Soheil
DigiOz Multimedia
http://www.digioz.com

No comments:

Post a Comment