Home

Lullabot

Lullabot Ideas

We know stuff. We empower you to know stuff too.

Drupal Module Development Deep Dive Week

London, UK
September 20-24, 2010

CVS quick reference

Article by Ted SerbinskiMarch 21, 2006 - 4:37pm

After a 5 year hiatus (when I was using Moveable Type 1.x), I've decided to bring back my blog, built on Drupal, of course :-)

Anyways, I often find myself looking for those useful Drupal CVS commands to keep it in sync and wanted to put those in a central place. This is just a quick reference, for a more detailed CVS reference, check out the Drupal Handbook.

  • To checkout Drupal HEAD (e.g., the latest CVS version of Drupal):
    cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal checkout drupal
  • To checkout Drupal 4.7.x (or similarly any branch):
    cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal checkout -r DRUPAL-4-7 drupal
  • To checkout HEAD of a specific module:
    cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d DIRECTORY_TO_PUT_IN contributions/modules/MODULE_NAME
  • To checkout a the 4.7.x branch of a module:
    cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d DIRECTORY_TO_PUT_IN -r DRUPAL-4-7 contributions/modules/MODULE_NAME
  • To update any type of checkout:
    cvs update -dP
  • To find all modified files (then open up custom.diff):
    cvs diff -u -F^f > custom.diff

For a more complete CVS reference, checkout Open Source Development with CVS.

Comments

March 22, 2006 - 12:33am Ted Serbinski

More detailed article?

So it has come to my attention that some people might be interested in a more detailed article about CVS and how you can use it to keep your Drupal site up to date.

Would you guys be interested in this? Please leave your comments!

Anonymous (not verified) on March 22, 2006 - 1:41am

always.

always.

jacauc (not verified) on March 22, 2006 - 2:02am

Yes please!

And also, an explanation of what "HEAD" is, and how to just type one command, and know everything on my site is at the latest version. (If possible)

:)

Thanks
jacauc

Anonymous (not verified) on March 22, 2006 - 5:59pm

Absolutely. That would be

Absolutely. That would be fantastic.

Chris (not verified) on March 23, 2006 - 6:06pm

CVS is on my list of things

CVS is on my list of things to learn. I was actually going to call in to ask about it. I would love a good primer!

Anonymous (not verified) on August 1, 2006 - 5:29am

CVS article!

Really useful, please do it! Even this short article helped me. It seems that 99% of the docs available are for developers updating cvs.

Waidat Chan (not verified) on April 28, 2006 - 10:15pm

CVS / SVN?

Would Subversion (SVN) not also be a useful subject to learn - I know there are pros and cons to both, but there's a useful movie covering SVN also:

http://media.clickablebliss.com/screencasts/intro_to_subversion_small.mov

May 2, 2006 - 5:22pm Ted Serbinski

Yes, SVN would be, but as of

Yes, SVN would be, but as of now, Drupal is running on CVS. Perhaps if it switches to SVN one day...

Anonymous (not verified) on May 6, 2006 - 2:09am

Drupal tags and committing

Extending this to show how Drupal developers can work with HEAD/4-7/4-6 versions of the contributed modules they maintain would be fantastic. There is much confusion concerning these points and when it is done wrongly, a module never reaches its target audience.

Anonymous (not verified) on March 14, 2007 - 8:51pm

cvs update -r DRUPAL-5 -dP

Be nice to add something like this command to update a checkout to a different version.

Anton Storozhuk (not verified) on August 17, 2007 - 8:29am

Thanks

Thanks for the quick reference! Added to my favorites...

Christopher Hopper (not verified) on June 13, 2008 - 12:36am

CVS and SVN reference articles

I support the idea of a CVS reference article. I would also be interested in putting a Subversion reference article out there. I am comfortable with the use of the Subversion client in the bash shell but am just getting starting with CVS. We use Subversion (svn) at work but I'm now wanting to contribute some of the code I've done to various Drupal contrib modules, which are all stored using a CVS repository.

Something I've been able to do is code common svn tasks as bash scripts, which I do on Windows using Cygwin. An example is the setting of svn properties such as svn:keywords and svn:eol-style. I created a script named svnps.sh which sets these svn properties for files and accepts various command line options to change the default behaviour.

I'd be happy to share these scripts if there is an appropriate place to post them. Any ideas anyone? How about a Lullabot article on scripted Drupal development tools to help developers with common tasks? I'd be happy to contribute.

About this 'bot

Ted Serbinski

Ted graduated from Cornell University with a degree in Information Science, Systems, and Technology and a minor in Computer & Electrical Engineering. While working on a 5 month coop at Intel in Massachusetts, Ted quickly realized that building web based tools was far more his forte than debugging...

more

Recent

Drupal Voices 160: Moshe Weitzman on Page Rendering in Drupal 7

Podcast 9.02.2010

Drupal Voices 159: John Albin Wilkins on Drupal 7 Theming

Podcast 9.01.2010

Drupal Voices 158: Emma Jane Hogbin on PHP for Designers

Podcast 8.31.2010

Command Line Basics: More Editing with Vi/Vim

Video 8.31.2010

Lullabot's Back to School Sale

Blog 8.30.2010

Popular

Drupal Voices 160: Moshe Weitzman on Page Rendering in Drupal 7

Podcast 9.02.2010

Photo galleries with Views Attach

Article 6.01.2009

Drupal Voices 159: John Albin Wilkins on Drupal 7 Theming

Podcast 9.01.2010

Drupal Voices 158: Emma Jane Hogbin on PHP for Designers

Podcast 8.31.2010

Assembling Pages with Drupal

Article 7.17.2010
 
  • Home
  • Services
  • Events
  • Ideas
  • Store

Connect the Bots:

Twitter Facebook YouTube blip.tv All Posts Newsletter
  • Ideas
  • Blog
  • Podcasts
  • Videos
  • About
  • Contact
  • Jobs
  • Services
    • Training
  • Events
    • Training Workshops
    • Other Events
    • Conferences
    • Calendar
  • Products
    • Videos
    • Books
    • Swag
  • Ideas
    • Blog
    • Podcast
    • Videos
  • About
    • Philosophy
    • Team
    • Presskit
  • Contact
    • General
    • Work Inquiries
    • Mailing List