morphir's CVS guide for Drupal part 1

Events happening in the community are now at Drupal community events on www.drupal.org.
morphir's picture

If you are new to CVS and Drupal, and if you prefer to use command line/bash(as me) instead of GUI based CVS programs. Then this guide is for you! For windows users, download greggles great lesson on CVS.
This guide is really quick & dirty. But I like it this way. So I hope you will as well:)

There are basically 5 stages:

  1. Download drupal HEAD
  2. Edit file
  3. Test your patch on your local webserver
  4. Create a patch
  5. And apply the patch to drupal.org using your webserver

make sure CVS is installed. just type CVS. If not, install cvs by typing(in ubuntu):

sudo apt-get install cvs

on Red Hat based systems:

su yum install cvs

Note! my local servers document root is set to /home/morphir/www

So in my terminal, I'll do:

cd www .....or wherever your document root is..

then we will download HEAD with this command(as anyonymous):

cvs -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -d HEAD drupal

this will create a HEAD directory with all the containing drupal files on your document root.

.... then edit your file, using your favourite editor ...

.... save and exit ...

then we will make a .patch in the same directory as the edited file is located:

cd directory/edited.file

cvs diff -up edited.file > filename-descriptive-change.patch

Now you have created the patch. You apply the patch through your web browser.

Login to drupal.org and create an new issue. Upload the newly created filename-descriptive-change.patch with additional descreption.

For reference
See http://drupal.org/handbook/cvs/quickstart
and http://drupal.org/diffandpatch