If you’re not using version control for your software projects please turn in your geek badge at the door. Seriously, version control makes life so much easier when developing features for a site or deploying a site. The best version control out there currently would have to be Git, subversion a distant second, and coming in last the old and painful CVS. Drupal is currently on CVS, but migrating to Git, we’ll have to deal with CVS for now.
Needless to say, these have to be run from the command line
In the directory that you would normally download and unzip drupal you’ll want to run this command to grab Drupal core from the CVS server
cvs -z6 -d:pserver:anonymous:email@example.com:/cvs/drupal co -r DRUPAL-6-14 drupalThat will grab
- Drupal version 6.14
- place all the files in a directory called ‘drupal’
Simple, fast, painless.
Every install of Drupal needs CCK and Views. So here are the commands to install each of them. Now you will want to navigate to your
drupal/sites/all/modules directory. From there run the following commands.
This will checkout cck version 6.x-2.6
cvs -z6 -d:pserver:anonymous:firstname.lastname@example.org:/cvs/drupal-contrib checkout -r DRUPAL-6--2-6 -d cck contributions/modules/cck
This will checkout views version 6.x-2.8
cvs -z6 -d:pserver:anonymous:email@example.com:/cvs/drupal-contrib checkout -r DRUPAL-6--2-8 -d views contributions/modules/views
I think you get the picture. Continue this as you see fit.
To see the module version in Drupal you will need to also install the CVS Deploy module. Very important
So after a while you have to upgrade Drupal core you simply navigate to your root drupal directory and run this command.
cvs update -dP -r DRUPAL-6-15That will make all the necessary changes to bring Drupal from 6.14 -> 6.15
For modules you’ll want to navigate inside the module directory and run the update command, for example for cck you would go to
drupal/sites/all/modules/cck and run
cvs update -r DRUPAL-6--2-7 -dPThat will upgrade CCK from 2.6 -> 2.7
Did this help you out? It took me a few days to piece together all this information together, I hope this saves you some time (who knows, maybe the future me will be thankful I wrote this down). Let me know your thoughts. firstname.lastname@example.org