Adding a new project

Last modified: September 13, 2009 - 23:31

These instructions are written for WinCVS, but the concepts probably apply to Tortoise as well.

Assumptions: a working installation of WinCVS. A CVS account at drupal.org. A checked-out contributions/modules (or themes or whatever) directory with CVS directories intact giving the correct login (not anonymous) information.

Do not use Remote -> Import module. If you are used to working on Sourceforge this may take some getting used to - remember that Drupal contributions use common branches/tags so you don't want to be creating a whole new CVS module, just adding a subdirectory to the existing tree.

In fact it is easy to add your project, provided you have the contributions directory created when checking out with its CVS subdirectory intact. If you don't, just check out any project using the previous instructions to get it back. From then on the process is really simple.

Copy your project's directory into the contributions/modules directory (or contributions/themes or whatever). It should show up in the right hand pane of WinCVS without a tick in the folder icon. Select the folder in the right hand pane and select Modify -> Add. This will create the directory on the CVS server: you can then add and commit the files within your project.

Using Command Line with WinCVS

A handy way to do a lot of CVS commands is just to pull up the Admin > Command Line dialog box. The CVSROOT checkbox must be checked and filled in as seen previously in step 3 here. In addition, cvs.drupal.org will require that the command must use the -d option. So, the full commands will actually look like this:

cvs -d :pserver:USERNAME@cvs.drupal.org:/cvs/drupal-contrib login

cvs -d :pserver:USERNAME@cvs.drupal.org:/cvs/drupal-contrib checkout -l contributions/modules

cvs -d :pserver:USERNAME@cvs.drupal.org:/cvs/drupal-contrib add MyModule

cvs -d :pserver:USERNAME@cvs.drupal.org:/cvs/drupal-contrib add MyModule/*

cvs -d :pserver:USERNAME@cvs.drupal.org:/cvs/drupal-contrib commit -m "my comment" MyModule

 
 

Drupal is a registered trademark of Dries Buytaert.