Simple musings of a Drupal developer.

Drush beats CVS, part 2

By krs · August 5, 2009 · 8 Comments · 411 Views

So it seems like a lot of people disagreed with my previous post! :) I should mention that I'm not against CVS and the title may have been provocative, the cvs_deploy module works very well, and CVS and SVN are not mutually exclusive - you can have both in the same repository and they will happily ignore each other.

But it got me to thinking, what am I missing? I use SVN repositories for the sites that I build. I use Drush to install the modules that I need and check for upgrades. The module upgrade process is slower for me since I like to know all the details of what changed first. So I'm open to people letting me know how I could be working smarter, and how using the CVS respository could be making my life easier!

I know the comments system at onSugar is not the greatest, feel free to email me via my Drupal contact form, and I'll post the responses.

Filed in:
Tagged with: , , ,
posted by adrian rossouw
Wed, 08/05/2009 - 8:40pm

You can make drush fetch packages from CVS.

--package-handler=cvs Use CVS to checkout and update projects.

You can add that to your drushrc.php file in many different possible locations, so for now let's assume ~/.drush/drushrc.php

You can even make drush do the adding and removing of files itself using :
--version-control=svn
--svnsync

and make it autocommit using :
--svncommit


posted by
Thu, 08/13/2009 - 3:27pm

Thanks adrian! Though I'm still not sure what the actual benefit of using CVS as the package handler is Smiling

I could see it being useful for generating patches if you're contributing to a module - but as mostly just a user of a module, I'm having a little trouble seeing how CVS improves my workflow.


posted by Michael P
Wed, 09/30/2009 - 1:47am

I pose myself the same question as krs (good thread!)

I can see the point of svn for my project, but as a module consumer (as yet not commiter) what is the point of pulling stable releases from drupal/cvs? Anyone?


posted by Aaron Couch
Fri, 10/16/2009 - 12:19pm

using cvs is still a good idea because you can make patches using cvs. it doesn't really cost you anything but allows you to keep track of your own changes and to be a good drupal contributor.


posted by Oladeji Famakinwa
Mon, 10/26/2009 - 11:30am

I just recently discovered CVS first and then Drush but now I'm baffled. I thought Drush automated the use of CVS. I too primarily consume modules.


posted by
Mon, 10/26/2009 - 1:43pm

@Aaron
Definitely if you're thinking of patching a module you'll need CVS. However, for clients I usually try to stick to the contributed code as-is. Getting a patch committed to a contrib module can be a long process, and if your client's deadline is short you can't rely on it.

@Oladeji
Drush can help download modules either from CVS or as just a tarball - see Adrian's first comment. But the rest of CVS is still up to you.


posted by spencer720
Tue, 11/10/2009 - 9:51pm

Cool article, I'm new to Drush and loving it so far. I'm bummed at work though because the sites that I work on in the corporate environment are all MS SQL and Windows Server 2003. Sad When we go live I'll have to run Xammp on the Windows Server because I don't want to stray from MySQL and the IT guys tell me that PHP on MS SQL doesn't work worth beans.

Anyway, not sure if I should start with Subversion or CVS...I'm a newbie to both and I guess it will take some hardcore googling to figure out which one I should use.


posted by
Thu, 11/12/2009 - 11:20pm

@spencer720

At the most basic basic level, CVS and SVN are very similar - a lot of commands translate well between the two. They are different in some areas like branching and merging, but for the most part the operate very similarly. If you're just getting into it, try SVN first, it's more modern.


Post New Comment

If you are already an OnSugar member, or would like to receive email alerts as new comments are made, please login or register for OnSugar. Or connect with your Facebook account: .
The content of this field is kept private and will not be shown publicly.

About Me

Drupal.org username: kscheirer

subscribe

Drupal Cred

Drupal Camp Los Angeles 2009 - August 8-9th

Archive

November 2009
SMTWTFS
1234567
891011121314
15161718192021
22232425262728
2930 
August 2009
SMTWTFS
 1
2345678
9101112131415
16171819202122
23242526272829
3031 
July 2009
SMTWTFS
 1234
567891011
12131415161718
19202122232425
262728293031