Slashdot Mirror


CVS vs. Commercial Source Control?

Knight2K asks: "My company is currently using CVS to handle our code repository. The project managers, however, are unhappy with some problems with the system. Most of the developers appear to feel that CVS does what they need just fine, but don't seemed to be bothered by switching to something else. It seems to me that CVS handles part of these things, and cultivating a culture of responsible revision handling would take care of others. I would like to be an advocate for CVS here, but I don't want to just promote the Open Source solution if there are legitimate reasons or advantages to switching to a commercial project."

"The project managers disliked CVS because of the following:

  • Inadequate logging. (Management wants to be able see who is checking in what, how often, and how, track known issues, ChangeLogs, etc...).
  • Controls for branching and merging are awkward
  • Files can be edited by multiple users simultaneously without checkout.
  • Work has been and will be lost due to lack of true version control.
So my questions are:
  • Has anybody made the jump from CVS to a commercial source code control system (or vice-versa)? Why? How do they compare to CVS?
  • Anybody have procedures or processes they can share for handling branching and locking? How about tools to make the process easier?
I realize the issues listed above are a little vague. If it helps, we work on Java web applications and develop on Unix and Windows with a variety of different editors. Any insights into source code control would be great."

4 of 43 comments (clear)

  1. Don't sell CVS short.... by coyote-san · · Score: 4, Insightful

    Don't sell CVS short, it may be quicker and cheaper to expand your existing CVS system than to replace it with a whole new system.

    For instance, what precisely does management want to see? Can you harvest that information with simple scripts, or via calling programs at the various places CVS already provides hooks?

    If the problem is poor documentation of the changes... that's a management issue, not a tool issue. Management needs to make sure people take this seriously - it should be a line-item in the employee review process.

    As for the "problem" of multiple users simultaneously checking out the same files, that's a feature, not a bug. You would hope that adults would know how to work together, but in the real world almost every shop I've worked at with an "exclusive lock" source control system has had at least one jerk who would sit on locked files for days (or weeks!) at a time, then submit monster changes. CVS strongly encourages people to fix one thing at a time, and if someone makes a huge change then it's their responsibility to merge the differences.

    Finally, I'm curious about the "work has been lost" statement. Is this because of poor practices (resulting in frequent change collisions and someone discarding code), or something specific to CVS?

    P.S., unless you're in a completely homogeneous environment, the multitude of CVS clients for different platforms is a benefit that should not be overlooked. I've worked in several shops with CVS being used on Win9x, NT, and various Unix boxen without a problem. Most other solutions are either specific to a single platform, or very expensive.

    --
    For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken
  2. CVS is bad... by jmaslak · · Score: 3, Insightful

    Where is CVS bad? Simple - where you have multiple active branches at one time (think a QA branch, a development branch, and a production branch - you might fix bugs in production, so it is still an active branch).

    Try the following with CVS:

    - Merge the changes that fixed bug #5212 from branch A to branch B. Don't merge any of the other development that has happened in branch A since then. Make sure to get all the files that were affected.

    Simply put, CVS doesn't do this well.

    Perforce is the tool I recommend, although CVS is fine if you only have one line of development at a time.

  3. Tried them all by a42 · · Score: 4, Insightful
    I've tried them all. Well, maybe not all, but a bunch. Let me start by saying that these are based on my personal experiences with the following and that YMMV. Mmm-kay?

    Source Safe
    I've used multiple versions all the way back to 1994. (That was before Microsoft got their hands on it.)

    Pros:

    Decent client UI, fairly intuitive.

    Easy to set up and administer.

    Integrates well with MS tools.

    "Project Oriented" -- maps well to your file system.

    Cons:

    Doesn't scale well.

    Performs like dog crap unless you're running it on a local network.

    Tends to get corrupted for no apparent reason.

    Support for non-windows platforms is weak.

    PVCS
    Used in 1995 and 1999. The company I worked for in 1996 bought it over my strenuous objections then threw it away in favor of Source Safe.

    Pros:

    Industry standard, at least at one point.

    Cons:

    Slow.

    Expensive.

    Slow.

    Arcane.

    Slow.

    Totally counter-intuitve. The client UI is, perhaps, the worst ever.

    Oh, did I mention Slow?

    Perforce
    Have very little experience with this and none at all on a local network. I would rate it somewhere between SS and PVCS in terms of useability. Probably faster than both in a non-local network scenario. Disclairmer: We were running it over a vpn. Our client (owner of the repository) not exactly network whiz-kids. It took them months to get us additional VPN logins when we added more people to the contract. I suspect that, given a different client, Perforce might have been much better.

    Pros:

    True client-server.

    Speed is okay provided you have decent bandwidth between client and server.

    Cons:

    Configuring it was a little weird.

    Never quite managed to wrap my head around the way it wanted you to work. (Didn't use it for long enough, I guess.)

    Clear Case
    I have the least experience with this. I'd like it to stay that way, but... my current employer spent about a gazllion dollars buying into the whole "Rational Suite" idea, the gullible bastards.

    Pros:

    Uh, it's from Rational?

    Cons:

    Uh, it's from Rational?

    Expensive. (Oops. Guess that's included in the previous point.)

    Extremely difficult client configuration, at least on Windows. (Why does it need to run as a service on the client?)

    Needs mondo hardware on the server.

    Harder to administer.

    The server crashes alot, at least ours does.

    CVS
    Those Linux geeks can't all be wrong, can they?

    Pros:

    True client-server. (Or not, your choice.)

    Scales extremely well.

    Free/beer.

    Free/speech.

    Requires very little server horsepower.

    Flexible.

    Plays well with others. etc.

    Cons:

    Doesn't handle binary files well.

    Documentation leaves a little to be desired.

    Like most Open/Free software there's nobody to point the finger at when something goes wrong -- this makes suits nervous.

    Confusing use of the term "checkout."

    The whole "concurrent" thing can take some getting used to.

    I'm sure there are other pros/cons but I think that's enough.

    --john

    1. Re:Tried them all by stephend · · Score: 3, Insightful

      Just to add a little to your assessments...

      SourceSafe follows the standard Microsoft line: it's pretty and fairly easy to use, but limited in a number of areas and not cross-platform (I used a Solaris version but it was very nasty).

      PVCS is absolutely appalling.

      I've not used Perforce, but I read that it's transactional, i.e., if you check in three files together it remembers that they're all connected to the same change. That sounds very useful.

      You've been very harsh on ClearCase. I like the fact that you 'mount' the archive as a drive and use a filter to configure what you see. It's very powerful, although, as you say, it does mean you need a big server to support it. Also it versions directories, which means you don't lose history when you move or rename files.

      Similarly, you've been overly nice to CVS! It takes the Unix approach to configuration: very minimal by default but can do wonderful things once you learn it. Or put another way, you can do just about anything with it given enough time. Statements like that, unfortunately, tend to scare managers. Also, I remain unconvinced about its scalability.

      And, to answer a question in the original post, merging branches is always a pain, no matter which system you use.