Book review: Practical Subversion <i>by Garrett Rooney</i>

Book review: Practical Subversion by Garrett Rooney


Version control is—or at least should be—a critical part of thedevelopment process. As Garrett Rooney explains right at the beginning of PracticalSubversion (published by Apress), using version control can help you recover that fileyou accidentally deleted, or put your code base back into the position it was in, whenit worked, before you introduced that latest bug. For those not familiar with the topic,version control allows you to control and track the changes in textdocuments—typically development projects—so that you can monitorversions, create a static set of documents attributed to a global version number, and tolog and synchronize changes to a project across a team.

The book’s cover The book’s cover

Garrett is a Subversion expert. As well as his writings on the topic, he’salso spoken at OSCON and contributed code and material to the project. That makes him anideal candidate for writing a book on what is a complicated topic; at least whenperformed correctly.

Practical Subversion is a good combination of step-by-step instruction on the Subversionsystems, a migration guide for users of other version control systems and an in-depthguide to more advanced techniques when using the Subversion libraries and API.

The book is not an introduction to version control techniques per-se; you are going toneed to know the benefits of version control

The contents

Practical Subversion is split into two main sections, the usage guide and the programmingguides. The first part of the book is dedicated to using the Subversion system. Thisstarts with a “crash course” on using Subversion for checking inand working with Subversion as your version control system. There’s a lot ofdetail here in a comparatively short chapter, but anybody familiar with the basics ofversion control is not going to be phased by the terminology used here.

This first section then moves to more detailed investigations of specific topics,including administration, best practices and the integration of Subversion with othertools. Along the way, key chapters are those which offer advice on migrating from otherversion control systems (Perforce, CVS, RCS) and the extensive integration availablewith Apache.

The latter third of the book concentrates on the API—the programming interfaceto the Subversion system that enables you to build custom tools to use with the versioncontrol mechanism.

Who’s this book for?

Developers are obviously the key audience for this title, but within this group, it isobviously those developers who are already using a version control system who will mostbenefit from the book. Without existing version control knowledge and experience, muchof the content will be unintelligible to most developers. The book is not anintroduction to version control techniques per-se; you are going to need to know thebenefits of version control.

With the combination of the administration functionality, and integration with grouplevel tools such as Apache, IDEs and the comprehensive API content, I can see the bookappealing to users within an existing team development environment where they arealready using CVS or similar and have their own custom toolset for making the most ofthe Subversion system.

Pros

Subversion is rapidly becoming the preferred solution for developers who have becomedisenchanted with RCS and CVS, tools which have for a long time had their own range ofproblems and issues.

As a guide to using Subversion the book is simple and straightforward and you should beable to pick up the basics quickly and easy. It’s also nice to find acomprehensive guide on some of the more advanced techniques with Subversion, like theintegration with Apache, and development tools such as emacs, Ant and even OS X toolslike Interface Builder.

The API guide will also be useful to those people developing interfaces to Subversion inother environments and systems where developers are willing to develop their own tools.

Cons

Although the book is aimed for users of previous version control systems, thereisn’t much in the way of practical advice of migrating from one system toanother—there are tables of comparative tools and commands, but I would haveappreciated a walk through of a typical project in CVS and the same process and sequencein Subversion.

I also found the enormous section—almost a third of the book—on theAPI to Subversion to be a little excessive. While it’s nice to see thequalities of the extensive API, the amount of content felt out of place and proportionto the rest of the book. I would certainly have preferred to see more simple andstraightforward content on using Subversion itself.

I also felt that some sections were skipped over when I would have liked moreinformation. For example, hooks in subversion allow you to execute a script when aproject is committed: to email the development group with the changes, or automaticallyrun a build. However, the Hook Scripts section lasts little more than a page, with noreal examples of the scripts themselves, just pointers to those in the distribution.

Title Practical Subversion
Author Garrett Rooney
Publisher Apress
ISBN 1590592905
Year 2005
Pages 316
CD included No
Mark (out of 10) 8

In short

Category: 
License: 

Author information

Martin Brown's picture

Biography

Martin “MC” Brown is a member of the documentation team at MySQL and freelance writer. He has worked with Microsoft as an Subject Matter Expert (SME), is a featured blogger for ComputerWorld, a founding member of AnswerSquad.com, Technical Director of Foodware.net and, and has written books on topics as diverse as Microsoft Certification, iMacs, and free software programming.

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!