Pragmatic Version Control Using CVS 181
Pragmatic Version Control Using CVS | |
author | David Thomas and Andy Hunt |
pages | 159 |
publisher | Pragmatic Bookshelf |
rating | 10 |
reviewer | Jared Richardson |
ISBN | 0974514004 |
summary | A hands on CVS introduction and tutorial, |
What's the approach?
The philosophy of this series is summed up on the Starter Kit website:Software development is difficult enough; if you try to build on a shaky foundation it can make development almost impossible (which might account for the fact that about 50% of all software projects fail). You need a firm foundation: The Pragmatic Starter Kit is a set of basic, common-sense practices applicable in all software development environments. The techniques given in these three books are not expensive to implement and are not hard to learn, but can make the difference between being a success and being a statistic.
The first book in the series covers the what, why and how of software versioning, using CVS for the examples. It walks you through installing CVS clients, setting up your server, and using basic commands, then teaches advanced concepts. It is the new CVS handbook that can be used by both beginners and veterans.
Target Audience
This book, like The Pragmatic Programmer, should have very broad appeal. It should be required reading for any junior developers or CVS administrators, and it should be a bookshelf reference book for mid-level to senior developers. It is slanted heavily towards CVS, but given that CVS is free and widely used, that shouldn't prevent anyone from using the book to learn the concepts, even if their company uses another versioning system for production work.
What's to like?
As is usual for Thomas and Hunt's books, this one is a very easy read. The concepts are clearly laid out, with plenty of working examples throughout. There is a good coverage of the fundamentals as well as very advanced topics. Unlike most CVS books or tutorials, this text is clear and straightforward. It's easy to understand and follow. It's got the best coverage of CVS branching and merging that I've ever read!
What's to hate?
Honestly, there is not a lot here that I don't like. The introductory chapters are little too basic, but since the book is (partly) aimed at beginners, that's okay.
Why bother reading this book?
I've been using CVS for over six years now (including being the CVS admin at two companies) and this book covered a few very useful advanced topics that I had never even heard of. An example of this is the use of vendor tags (Chapter 10). Using this feature, you can have a local copy of your favorite open source project in your company's CVS server and make changes to it. You can then merge your local project with the new releases of the public project, and CVS will handle merging your changes with the public baseline. This feature is incredibly useful, but I didn't even know it existed until I read this book.This book is a great introduction if you've never used a versioning system. By the time you've finished the book, you'll have installed CVS (client and server), created projects, created new files, merged changes, etc. If you already use versioning software, it can remind you about the features you've forgotten about (or never knew existed). This book is a great introduction and a great refresher too.
Where to buy?
Not so long ago in another Slashdot article, Andy and Dave suggested that in order to compete in the new global economy, we should all diversify our skill sets. To that end, this book is published under their new publishing company, The Pragmatic Bookshelf. You can buy copies from the Pragmatic Programmer's web site in both dead tree ($29.95) and PDF ($20.00) formats.
Summary
As we have come to expect from Andy and Dave, this is another great book. The technical content is rich and clear but it won't put you to sleep. It has appeal to both newbies and veteran developers. I give it '10 out of 10 slashes.'
Richardson met Hunt while he and Thomas were finishing up The Pragmatic Programmer and has reviewed each book that they have written since -- he makes no bones about liking their work.
more reviews (Score:4, Informative)
GNU Arch is better than CVS (Score:2, Informative)
Check out Arch. [gnu.org]
Re:Perforce (Score:5, Informative)
Yep. I started using it about a month ago. Within three days I was so enamoured of it that I switched all my projects to it. Anyone who has used CVS should be able to switch almost without retraining. And the best thing of all is that the documentation (a downloadable book) is thorough, well-written, up-to-date, and full of useful examples. This project should win some sort of prize; it deserves it.
svn (Score:1, Informative)
By the way, backports.org has a wonderful woody backport of subversion.
Re:Which book was a watershed event? (Score:2, Informative)
You recommended a book by a MICROSOFT EMPLOYEE? Heresy!
(HHOS.)
Actually, McConnell has a whole slew of good books out, Code Complete being only one of them. He even has a book on rapid development [amazon.com], that is also mighty good.
Re:CVS good, ClearCase bad (Score:4, Informative)
I have supported development using CVS, SCCS, ClearCase, Kintana and BitKeeper. Each system has its advantages and disadvantages. For ClearCase, the biggest disadvantage is you have to read the manual.
"A full build of a sample project with CVS takes me 30 seconds. CC takes 7 min, 30 sec."
If I tune my mustand to run like crap, it will. Don't blame a tool if you haven't RTFM.
"CVS doesn't need multi-site repositories, clearcase does if you have a lot of remote development."
Bold assertion, care to provide even the slightest amount of example, or dare I say proof? How about a plan for using CVS across 500 developers in 8 sites, on 5 time zones. Ohh, and we are a worldwide company, so all developers need access to all code.
"CVS doesn't integrate with the kernel, so if CVS crashes it doesn't take your whole machine"
True. Thanks for providing context with a claim.
"CVS has better add-on GUI tools for branching and comparison."
Probably another RTFM. ClearCase has many powerful tools, but you have to learn how to use them. This in itself is a downfall as the quality of available software engineers continues to fall.
"It is easy to create and apply patch files with CVS, something not easy to do with CC."
Why?
"With CC, when you check out a file, you can't actually write to it. You have to loop and keep checking for the file to be 'writable' after check out. Even then, sometimes when CC marks the file as writable, it really isn't."
Your wrong, but I don't have time to cut an paste the manual over. You really should trying reading it sometime.
"A batch update in CVS is easy, with CC you have to check out individual files. I have a script for this. A batch update takes about 20 minutes compaired to 45 seconds in CVS."
I think your kinda sorta talking about a Snapshot view. Read the manual, pick up the nomenclature. It takes me 3 seconds to pick up all the changes in need in my dynamic....
"CVS is free."
True.
"CVS doesn't require as much training or support time as ClearCase."
I call bullshit. Its clear(har har) that you have never supported Software configuration management. CVS doesnt require training if all of you engineers already understand CVS. I expect the same to go for ClearCase...
"ClearCase does have excellent command-line tools. It also has a lot more features. But you can probably live without them. "
It has flexibility, which last time I looked increases strength. Learn what you need and ignore the rest.
Shoehorning CVS to work with good dev practices... (Score:5, Informative)
Aegis, GNU Arch (my personal favorite), Subversion, BitKeeper... all of these work around CVS's worst failings. What's unfortunate is how few people have had their expectations of what a revision control system should do set far too low by CVS.
A few examples of features one should expect of a modern revision control system:
Online CVS reference (Score:5, Informative)
Open Source Development with CVS [red-bean.com] by Karl Fogel is a great online CVS manual and reference. I use it all the time.
JP
Re:CVS cons? (Score:3, Informative)
My current way of version control is the old way of just zipping up each release!
If it's just you working on this...well, that's fine. And it probably is the easiest. There's little-to-no reason to use CVS if it's just you.
But, otherwise:
I haven't found much info on conceptual/fundmental questions, like on integrating with IDEs
Depends on the IDE. Most plugins for Windows or *nix shell out to the command line CVS, and process its output. But, I'm not familiar with Mac IDEs at all.
"do I check the entire development tree into CVS, or just the text files?" If it's just the text files, that seems like a lot of work.
Typically, the entire tree, but, and here's a big con of CVS, you have to have a correct cvswrappers file, or manually tell it which files are text and which are binary.
I do the entire tree, myself.
"How do I put my web site HTML files into a repository and still have the web server still be able to access it?"
Assuming you have a CVS client on your web server, and it can access your CVS server, you put in a shortcut (or nightly job, or what have you) that does a checkout module, like so:
cvs co -R -d <target directory> <module name>
(You could use cvs export, but it doesn't seem to like overwriting files that already exist)
But, again, CVS use is only compelling if you have more than one person working on the project at the same time.
Re:Shoehorning CVS to work with good dev practices (Score:4, Informative)
Look up commitinfo in the CVS manual. It does both of these things.
Re:Perforce (Score:2, Informative)
I. Free or nearly free--includes: CVS & SubVersion.
II. Under $1000 per seat--includes: AccuRev & Continuus CM.
III. More $$$ than you can possibly imagine--includes: ClearCase & StarTeam.
To cut it short, we eventually went with AccuRev [accurev.com], due mostly to environmental and budgeting restrictions. It's an unobtrusive, often maddingly slow, Java-based product, which happily fits most of our needs.
There's a huge field of versioning products out there, most of which can only be found on poorly documented company websites, many without demo's. And each of them promises to be the last word in SCM, but with little to no comparison between vendors. (Oh sure, product FooSCM includes LifeCycle Management, but the definition & amount of "Lifecycle" varies greatly from one product to the next!)
Caveat emptor!
Re:GNU Arch is better than CVS (Score:1, Informative)
Arch Comparisons with other VC systems [gnuarch.org]
Arch Wiki [gnuarch.org]
Re:Subversion stability? (Score:2, Informative)
Re:CVS good, ClearCase bad (Score:4, Informative)