Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Programming IT Technology

Multi-User Subversion 159

chromatic writes "Rafael Garcia-Suarez has just penned an article about adopting Subversion for multi-user projects. (He also has a previous article on Single-User Subversion). With the recent release of Subversion 0.16 (see the File sharing link), the successor to CVS looks very good."
This discussion has been archived. No new comments can be posted.

Multi-User Subversion

Comments Filter:
  • Subversion vs CVS (Score:3, Insightful)

    by Slashdotess ( 605550 ) <gchurch@SLACKWAR ... com minus distro> on Saturday December 21, 2002 @03:10AM (#4935031)
    Sorry, I'm not exactly a professional developer but:

    Whats the advantage to killing the standard of CVS, that seems to work well today? I mean, are the features of this "Subversion" make it worth the switchover?
    • by Anonymous Coward
      Actually I would like to know how this "subversion" compares to what Linus is using?
    • by Anonymous Coward
      You have never tried to move a directory in a CVS repository, have you?

      obKarmaWhoring: http://subversion.tigris.org/
    • Re:Subversion vs CVS (Score:5, Informative)

      by Cebu ( 161017 ) on Saturday December 21, 2002 @03:28AM (#4935087)
      CVS is weak at best with a long standing list of quirks, bugs and missing features. The current architecture and code base is in such state where many opt to not make the attempt at crowbar many of these features and fixes into CVS. In CVS, security is non existant, branching takes up a lot of unnecessary resources and quite a great deal of time, lacks meta data like directory revisioning along with various other usefull items, stores useless CVS data in the repository and has a tendancy towards being slow. The worst, inexcusable, flaw in CVS is the complete lack of atomic commits.

      On the flip side, I do not suggest using Subversion for any critical project at this point since they are not feature complete for their first release and their bug list, frankly, scares me.
      • by 0x0d0a ( 568518 ) on Saturday December 21, 2002 @04:27AM (#4935209) Journal
        If you're a coder, and have never used CVS, try it. It's absolutely lovely. "Oh, introduced a bug there...let's just diff against a known good version." "Oh, it looks like *Bob* was the one to commit that broken code." "Why did I add *that* code? Let me check my CVS log..."

        Yeah, there are probably things about CVS that could be better. But if you've never used it, and aren't already using a competitor, it's really good.
        • by Cuthalion ( 65550 ) on Saturday December 21, 2002 @05:39AM (#4935310) Homepage
          cvs is way better than no version control. agreed. hell, PVCS and Source Offsite (the two worst version control systems I've ever used) are still way better than no version control.

          Public service announcement

          If you're in windows and trying CVS, check out tortoise [sourceforge.net]
          • cvs is way better than no version control. agreed. hell, PVCS and Source Offsite (the two worst version control systems I've ever used) are still way better than no version control.

            On a project with more than two developers, quitting to work the fryer at McDonald's is way better than no version control.
        • by Anonymous Coward
          Yeah, there are probably things about CVS that could be better. But if you've never used it, and aren't already using a competitor, it's really good.

          That's what middle-school geeks used to say about BASIC.
      • Even seen the CVS bug list? :)
    • Re:Subversion vs CVS (Score:5, Interesting)

      by bdash ( 598142 ) <slashdot DOT org AT bdash DOT net DOT nz> on Saturday December 21, 2002 @03:30AM (#4935095) Homepage
      A good discussion of this was in Linux Journal [linuxjournal.com] recently.

      Briefly, CVS lacks version control across file renames, has some issues with binary files, and the CVS code base has serious design issues.
      • Re:Subversion vs CVS (Score:2, Informative)

        by g4dget ( 579145 )
        CVS lacks version control across file renames

        Version control works fine across file renames; CVS simply doesn't make it obvious that a rename happened (the old file disappears, a new file with a clean log appears). The simple way of dealing with it is to add a comment to the new file "formerly known as".

        If it really confuses you, it's easy to give people a shell script to do the remove/add, add a comment, and optionally, add a copy of the old log. Perhaps the CVS developers should do just that.

        has some issues with binary files,

        I dunno--they seem to get handled just fine. They aren't diffed, but so what? Perhaps the CVS frontend should finally detect binary files automatically--doing that wouldn't be hard.

        the CVS code base has serious design issues.

        Lots of widely used big C programs have "serious design issues", at least in some people's eyes. I've come to the conclusion that if it works reliably, it's best not to look under the hood. And CVS works reliably. I'd trust it over a well-designed but new codebase any day.

        • Re:Subversion vs CVS (Score:4, Informative)

          by syphoon ( 619506 ) on Saturday December 21, 2002 @08:34AM (#4935652)
          Although there is a definite place for the "If it ain't broke, why fix it?" philosophy, its also equally often a good time to remember there was nothing broken about the horse and cart. While CVS is a good stable system that has many times over proven its worth, we also have to recognise there _are_ features lacking and issues that if corrected, would allow for greater productivity. Such as the binary file handling. Binary support in Subversion looks to be a _LOT_ easier than in CVS. Currently CVS always transmits binary files in full. And CVS does have networking issues.File differences are sent in only one direction, from the client to server, but not the other way round. And because of CVS's codebase, which is very ugly (not surprising given its history of being layers of hacks), it becomes increasingly hard to add new features. In short, we've approached the stage with CVS where a complete overhaul and restart would be better longterm.
    • Re:Subversion vs CVS (Score:5, Informative)

      by mccalli ( 323026 ) on Saturday December 21, 2002 @03:59AM (#4935145) Homepage
      Well, I am a professional developer, and I have to say that CVS amongst the 'worst' of the source control systems I've used. That sounds incredibly critical, but I really don't mean it in a disrespectful sense. A need for a freely available, open source control system was there, and CVS filled and continues to fill it well. Better than SCCS and RCS ever did. Despite that however, its functionality is a little lacking compared to most commercial rivals.

      Directory handling springs to mind, as does renaming files. Atomic commits too. As well, there's also the fact that you often end up editing the modules files directly - an end-user should never have to care about a program's internal storage of meta-data.

      Now, I haven't used Subversion so I am unable to make a comparison. I understand it handles directory versioning better, but I'm not aware of the rest of the points I made. The directory handling alone is a huge plus however, so it's a project whose announcements I'm following closely.

      Cheers,
      Ian

      • by Anonymous Coward
        > but I'm not aware of the rest of the points I made

        I have that trouble all the time.

        Fortunately, you can get a quick reminder here...

        http://developers.slashdot.org/comments.pl?sid=4 86 63&cid=4935145
      • Ian --

        Subversion is indeed already a giant step better than CVS in all the areas where CVS was painful, while having a good migration path. Arch, OpenCM, and PRCS2 could be in the running, and Arch has that multi-repository support going for it. But I'd say Subversion is the best thing going as of right now.

        I have a listing of all known SCM software for Linux at http://linuxmafia.com/~rick/linux-info/scm.html [linuxmafia.com], in case it will help.

        Rick Moen
        rick@linuxmafia.com

    • Re:Subversion vs CVS (Score:5, Informative)

      by noselasd ( 594905 ) on Saturday December 21, 2002 @07:29AM (#4935534)
      From the docs, compare with CVS. Remember that many of the Subversion deveoplers are/were CVS developers..
      * Real copies and renames. The Subversion repository doesn't use
      RCS files at all; instead, it implements a 'virtual' versioned
      filesystem that tracks tree-structures over time (described
      below). Files *and* directories are versioned. At last, there
      are real client-side `mv' and `cp' commands that behave just as
      you think.

      * Atomic commits. A commit either goes into the repository
      completely, or not all.

      * Advanced network layer. The Subversion network server is Apache,
      and client and server speak WebDAV(2) to one another. (See the
      'design' section below.)

      * Faster network access. A binary diffing algorithm is used to
      store and transmit deltas in *both* directions, regardless of
      whether a file is of text or binary type.

      * Filesystem "properties". Each file or directory has an invisible
      hashtable attached. You can invent and store any arbitrary
      key/value pairs you wish: owner, perms, icons, app-creator,
      mime-type, personal notes, etc. This is a general-purpose feature
      for users. Properties are versioned, just like file contents.
      And some properties are auto-detected, like the mime-type of a
      file (no more remembering to use the '-kb' switch!)

      * Extensible and hackable. Subversion has no historical baggage; it
      was designed and then implemented as a collection of shared C
      libraries with well-defined APIs. This makes Subversion extremely
      maintainable and usable by other applications and languages.

      * Easy migration. The Subversion command-line client is very
      similar to CVS; the development model is the same, so CVS users
      should have little trouble making the switch. Development of a
      'cvs2svn' repository converter is in progress.

      * It's Free. Subversion is released under a Apache/BSD-style
      open-source license.
    • by Anonymous Coward
      CVS operates on a per-file model. Each file has its own history, branches, and so on. Operations on a set of files actually visit each file, perform the operation, and move on.

      This leads to the following problems:

      Creating a branch or a tag visits (and writes on) every file in the source tree, so it takes a long time. For example, the gcc folks would like to create periodic snapshots of their source tree and publish the snapshots. One step in doing this is tagging all the files. Well, creating that tag writes information into every source file and takes HOURS.

      Renaming a file is not supported. All the history information in CVS is associated with "foo.c". If you want to rename "foo.c" to "bar.c", you actually have to create bar.c and then delete foo.c. This loses all the history associated with the old foo.c.

      Directories are even worse. There is no way to delete a directory in the CVS repository (that's what all the "prune on checkout" kludgery is for, to delete empty directories in the client work area that should not even exist in the first place).

      When I edit source, I often edit more than one file. I might edit 10 files in 5 separate directories. CVS has no notion that my changes are one "unit of activity". The GNU project uses ChangeLog files, which manually tie the 10 changes together and actually work very well. But it would be even better if CVS knew that when I committed 10 files, it's all part of one changeset, not 10 separate changes. That makes it a lot easier to backport patches from development branches to stable branches, to figure out what some other guy did (hmmm he changed foo.h, I wonder what went along with that change?)

      These are all well-known problems to people who use CVS a lot. Newer source control systems (bitkeeper, subverrion, arch) all have the idea of changesets in some form or other, and all have better ways of implementing whole-tree operatings like tagging and branching.

      These are just the "data model" problems. The standard CVS server has other implementation problems -- that is, problems that could be fixed just by improving the server, without changing the millions of cvs clients in the world. One big problem is that CVS needs write access to the files, even for read-only operations such as anonymous checkout, and does excessive disk I/O, even for read-only operations. This is particularly annoying because CVS doesn't guarantee checkout consistency across a whole tree anyways, but only a single directory! This is no big deal in a departmental cluster but it becomes a serious issue for public open source servers that are trying to scale up to serve the whole world and do it with limited resources.
  • sounds cool (Score:4, Interesting)

    by farnsworth ( 558449 ) on Saturday December 21, 2002 @03:25AM (#4935078)
    subversion sounds like a really cool tool. I've been following it for about a year now. it has some great advantages over cvs, such as multi-file atomicity, and good support for refactoring.

    I really hope that building ancillary tools like nice clients (wincvs) and useful add-ons (bonsai) is easy enough to do, because that's really where the critical mass is wrt widespread adoption.

    • Ugh, never call wincvs a nice client.

      tortoise cvs [tortoisecvs.org] if you're ever in a win environment.
      • I agree that tortoise has some really great features. but it breaks down badly if you have more that a few dozen files per directory. I've never looked at the tortoise code, but wincvs performance is way better, even in 'flat mode'.

        I don't use wincvs too much, but it's really easy to train people on, and despite its quirks, it's is pretty nice.

    • Re:sounds cool (Score:4, Insightful)

      by stefanlasiewski ( 63134 ) <slashdotNO@SPAMstefanco.com> on Saturday December 21, 2002 @05:00AM (#4935263) Homepage Journal
      If you're interested in clients, check out the http://scm.tigris.org/ [tigris.org] pages: There's a GTK and a cross-platform GUI in the works (And I've seen a few other GUIs on elsewhere (sourceforge?)
    • Re:sounds cool (Score:4, Insightful)

      by joib ( 70841 ) on Saturday December 21, 2002 @06:34AM (#4935398)

      I really hope that building ancillary tools like nice clients (wincvs) and useful add-ons (bonsai) is easy enough to do, because that's really where the critical mass is wrt widespread adoption.


      Most of the subversion functionality is actually in a library, which makes it a lot easier and more robust to build gui clients and such for subversion. CVS, by comparison, is only accessed through the command-line client, so cvs gui clients have to execute the cvs binary and then parse the output, which as you certainly can imagine, is cumbersome.
      • CVS, by comparison, is only accessed through the command-line client, so cvs gui clients have to execute the cvs binary and then parse the output, which as you certainly can imagine, is cumbersome.

        Anybody who doubts this should try reading the source code to cvs2cl [red-bean.com]. All it does is build a CHANGELOG file based on the developer comments at checkin, so it should be pretty straightforward, right?

        Not nearly. I wanted to make some other CVS reports; when I looked at all the rigamarole that cvs2cl has to go through, I just gave up. With enough time my brain could have handled it, but my stomach never would have.
  • by dagg ( 153577 ) on Saturday December 21, 2002 @03:28AM (#4935088) Journal
    Something that is great about Subversion is that it has atomic checkins. That means if something goes wrong while you are checking in a file, then your checkin is rolled back. That is super-handy, and brings it up to par with Perforce (a commercial revision control system that I've used in the past).

    If something goes wrong during a CVS checkin, then all hell can break loose.

    • That is super-handy, and brings it up to par with Perforce

      Wait, I thought Perforce was heavily based on CVS? Was I wrong?
    • by Krellan ( 107440 ) <krellan@NOspAm.krellan.com> on Saturday December 21, 2002 @07:07AM (#4935482) Homepage Journal
      Another use of atomic checkins is checking in more than one file at a time, especially when checking in two files whose changes depend on each other. In my experience at several CVS shops, the build sometimes breaks simply because of unfortunate timing: checking out the tree while someone else is in the middle of checking in a series of files. Most shops deal with this manually, by having certain rules, such as no checkins allowed at all during a certain hour of the night.

      If there was a way in CVS to begin a transaction, then do multiple checkins, then commit/rollback that transaction atomically, that would be wonderful. It would be impossible for one person to check out someone else's partial checkin.

      If Subversion is getting this feature, or even has this already, it will be one of the best "selling points" to replace CVS!
      • You can get atomic checkins with CVS: just lock the repository before making the commit and unlock it afterwards. Karl Fogel's book explains somewhere how to do this. You don't get rollback though.
    • [atomic checkins are] super-handy, and brings it up to par with Perforce

      while perforce is not open source, they still grant a free license for 2 clients. this is enough for toying with my g4 and ibook. additionally, all the manuals [perforce.com] are online, and so are ports [perforce.com] for many different systems. there are plugins for many ides, and a web-gui based on html-forms. what i like the most is the relative ease of use of all parts involved.

      until someone comes up with a stable and usable open-source tool, perforce might serve any home-user's needs.

    • And it has directory versioning, another must. Plus a whole lot of very-nices. For example, the version history is stored in the form of exact binary diffs (xdeltas) whereas cvs uses rcs, which uses a text diff, which is horribly, unspeakably crude, not to mention inefficient in both time and space. As a bonus, Subversion doesn't have to do anything special to handle binary files.
      • Why does it matter what kind of diff the version control system uses internally - 'crude' or otherwise? You shouldn't need to care about such details.

        The disk space argument is valid I suppose. But what would _really_ save disk space is a way to compress the source repository, either everything or just the older revisions. My $CVSROOT directory is huge and most of that is stuff I will probably never need to access.

        Or if space is really tight, a way to selectively forget about older revisions. I have a bunch of very large text files under version control, in fact they are word lists for ispell(1) and similar programs. An operation like sorting the list into alphabetical order generates a huge diff, but the log message is entirely sufficient to describe the change. I'd like to cut out some of the version history so that only log messages are preserved for older versions - you wouldn't be able to check them out, but I wouldn't want to anyway. So far the only way I can see to do this is to hack the RCS files by hand.
    • Testing by responding to my own post.

      Please ignore.

      --sex [tilegarden.com]

  • by SuperDuG ( 134989 )
    bah automatically violates all copyright laws, anyone who downloads this software is violating internation al copyright law and the dmca.
    • What the hell?

      see the File sharing link directly from the freekin frontpage. This was meant for humor, but obviously the moderation has no sense of humor. Off topic was a bogus moderation though.

  • by cartman ( 18204 ) on Saturday December 21, 2002 @03:43AM (#4935117)
    The fundamental design of CVS is flawed, and this leads to anomolous behavior. Becase the problem with CVS is in its design, not its current implementation, a re-design and corresponding re-write is reqiured.

    For example, CVS stores its repository in a series of diffs in a directory structure, and the directory structure parallels the development tree. The difficulty is, directories in the cvs backend are therefore not versioned! Thus, moving files around, and re-working the tree, are not handled correctly in cvs. In subversion, the entire repository (dirs, files, and all) is stored as a single coherent revision; a subversion repository is an array of coherent tree/file groupings. As such, correct handling of directories occurs automatically. Also, atomic commits (something cvs lacks) are handled much more easily in this model.

    Let me also say that the design of subversion is absolutely excellent. The design is properly decoupled and properly abstracted. Architecturally, it is greatly superior to cvs, and substantially superior to several commercial alternatives. I would imagine that the low-end source control products (PVCS, SourceSafe) will have significant difficulty staying alive once Subversion is widely deployed and tested.

    • well I just hope it has all the goodies on Linus' xmas list.
    • The difficulty is, directories in the cvs backend are therefore not versioned! Thus, moving files around, and re-working the tree, are not handled correctly in cvs.

      To rename files in CVS, you remove the old file and add it as a new file. The semantics of this are well-defined, and you will get a consistent view of the tree no matter which version you check out. It's simplistic, but it works. The one thing that is a bit clunky is the fact that old, empty directories hang around, but that really isn't a big deal in practice.

      • To rename files in CVS, you remove the old file and add it as a new file.

        But this new file does not have the history of the old file, you can not check out last weeks version of it and it is not included in diffs of changes that spanned multiple files. Deleting and adding, though it may be well-defined, is also a really ugly and non-intuitive way of doing it.

        CVS has had its time, there's no reason to defend it any longer. CVS is being maintained, but it is not really in development anymore. I'm also pretty sure that I read somewhere that a significant portion of the CVS developers are in fact working on Subversion these days.

        Subversion will replace CVS, no question about it, it's only a matter of time.
        • But this new file does not have the history of the old file,

          It does if you add it (or automate adding it with a simple cvs-rename script). However, it's not clear that that matters much.

          you can not check out last weeks version of it

          Sure you can: if you ask for last weeks version of the software, it will contain the file under the old name. If you ask (somehow) for the individual file, CVS will tell you that it didn't exist at that time, which is correct and consistent. It would be inconsistent if I got a week old version of "newname.c" if "newname.c" didn't exist at that time. I do hope Subversion doesn't do that.

          and it is not included in diffs of changes that spanned multiple files.

          Huh? Of course, it's included. The diffs will contain a deletion for the old file and an addition for the new file. That is exactly what should happen. I don't think "diff" even supports any other way of renaming.

          Deleting and adding, though it may be well-defined, is also a really ugly and non-intuitive way of doing it.

          Well, your message suggests to me that handling renaming any other way than the way CVS does may actually be worse.

          • But this new file does not have the history of the old file,
            It does if you add it (or automate adding it with a simple cvs-rename script). However, it's not clear that that matters much.

            Doesn't matter much to whom? To you? Then fine, you can keep using CVS; we'll tell the SCCS Police to make an exception for you.

            Or are you saying that cross-rename history tracking doesn't matter for all developer everywhere? In which case, I'd love to hear more about how you checked with them. I must have been out when you called.
            • Maintaining the history of individual files across renames is important. Certainly you could grab the entire cvs log output and jam that into the log message for the added file, but you would still break cvs annotate.

              Case in point: Quite often, during code reviews or programming sessions, I come across bugs or bad programming methods that exemplify a certain fundamental lack of experience or understanding on part of the author. Using cvs annotate I can determine exactly who wrote the line(s) in question, discuss the problem with the culprit and, if I do my job right, hopefully ensure that the mistake is not repeated. Without the annotation feature, I would have to ask each team member whether they wrote the code in question. Too often it happens that they don't remember. We have had some major directory reorganization the last few months, and at one point all of our files lost their history simply because of a single directory renaming operation.

              The remove/add renaming trick damages the projects' collective memory. You end up with bits of the past that are simply missing.

          • "It does if you add it (or automate adding it with a simple cvs-rename script). However, it's not clear that that matters much."

            Manually tinkering with the CVS metadata should never be necessary, especially for something so common as moving a file.

            "Of course, it's included. The diffs will contain a deletion for the old file and an addition for the new file. That is exactly what should happen. I don't think "diff" even supports any other way of renaming."

            That is exactly the problem: diff does not support any other way of renaming. In fact, diff does not support renaming at all; it supports only deletion and addition, which is not the same as renaming. With deletion and re-adding, the history of the new file does not indicate that it was moved from another location; it appears to have been spontaneously generated. You are still thinking in terms of diffs, and assuming that the limits of diffs are the limits of source code control. Diffs are the very architectural drawback of cvs; with subversion, you can get a history that indicates "this file was moved here, then there, then there, then this directory was created and that one deleted, etc." ALL of that is impossible with cvs, and all of it is quite common.

            "Well, your message suggests to me that handling renaming any other way than the way CVS does may actually be worse."

            It would be difficult to be worse; cvs does not even handle renaming at present, but only deletion and subsequent addition, which is not the same. The authors of the original cvs are the ones writing subversion, because they realize cvs's serious limitations in this regard. CVS also has limitations in other regards, like lacking atomic commits. This would be possible to implement in cvs, using diffs, but it would be very hacky.

  • $Revision$ (Score:2, Interesting)

    by aok ( 5389 )
    One thing I like to do is put in the CVS $Revision$ substition variable in each of my text-based project files. I use them to help me know which version I've got on my live site...for if I've made bugfixes to that branch, etc.

    If there aren't any changes to the file in my new tagged & branched release, that $Revision$ variable will stay the same between releases. This is irrelvent for all my other files that aren't web-related, but the ones that are can remain cached in a user's browser as long as there haven't been changes to the file (this is especially helpful if I have large javascript library files that would otherwise slow down loadtimes a lot).

    However, I don't see how I can do this using Subversion. It looks like the version for all project files is incremented everytime a single file checked-in.

    Is there an alternative or better technique than what I'm doing by using Subversion? I like its advantages over CVS and would like to experiment with it more!
    • Re:$Revision$ (Score:4, Informative)

      by xlv ( 125699 ) on Saturday December 21, 2002 @04:06AM (#4935159)
      You could use the LastChangedDate or LastChangedRevision tags. This is taken from the manual:

      LastChangedDate

      The last time this file changed. Can also be abbreviated as Date. The keyword substitution of $LastChangedDate$ will look something like $LastChangedDate: 2002-07-22 21:42:37 -0700 (Mon, 22 Jul 2002) $.

      LastChangedRevision

      The last revision in which this file changed. Can be abbreviated as Rev. The keyword substitution of $LastChangedRevision will look something like $LastChangedRevision: 144 $.

      • by aok ( 5389 )
        That sounds like exactly what I wanted!

        Hmm...I better go read that manual. I thought I had gone over everything already. It was a while ago during the whole Linux kernel and Bitkeeper licensing "debate", but I probably skimmed it too fast as well.

        Thanks.
    • What do you mean by "the version for all the project files is incremented everytime a single file [is] checked-in"? Subversion increments of the global revision number everytime a checkin occurs, much like many other source control systems such as Perforce, but versioning is handled by the user by whatever means they choose (branch from main line with tags for minor revisions would be one way). However, you can always obtain the last revision number of a given file which is probably what you're interested in.
      • Re:$Revision$ (Score:2, Informative)

        by aok ( 5389 )
        Sorry, it was basically a wording slip-up on my part (probably because of my cvs-thinking influence). I knew Subversion uses the global revision number that applies to the entire filesystem tree in that repository.

        Without going into all the details of how I currently do things, another user, xlv, has already pointed out to me, the LastChangedRevision is what I was looking for.

        I'm actually reading the docs at http://svnbook.red-bean.com/book.html to increase my understanding of Subversion right now.
  • arch (Score:5, Informative)

    by bedessen ( 411686 ) on Saturday December 21, 2002 @04:18AM (#4935184) Journal
    Of course, no discussion of CVS's strengths and weaknesses vs. Subversion would be complete without mention of the third contender, arch. Link 1 [linuxjournal.com], Link 2 [fifthvision.net].
    • Aegis is another one (Score:1, Informative)

      by Anonymous Coward
      Aegis (http://aegis.sourceforge.net/) supports creation of "better" quality software by enforcing a process on the project
      • Looks interesting, however there are some things that bother me:

        • It seems to require some failing tests that are to be fixed before you can create a development branch. How does this mix with refactoring [c2.com]? Do you have to invent a test for "This piece of code should be more elegant", or what?
        • Is it possible to integrate the mandatory testing with an existing testing framework like one of the xUnits [xprogramming.com]? Writing a shell script for each test case seems to be stupid.
        • How about IDE integration? An Emacs mode?
        • In general, what if I don't like something about the process it wants to enforce? Is it flexible enough to be adapted to local policy? Is it really a good idea to couple revision management and workflow? (It surely is not the "Unix way", which it like to integrate well with)
        • Do you have to invent a test for "This piece of code should be more elegant", or what?

          I haven't actually used Aegis, but I assume that since the submitter also submits a test case, the submitter could "invent a test" as you put it that roughly corresponded to the way the new code is more "elegant."

          I don't know if Aegis has this, but I'd like to see "benchmarks" in addition to "test cases." A test case basically either passes or fails, but a benchmark would return a score, so one could then submit a change that did not break anything but resulted in smaller line count, fewer branches, smaller object size, faster exeution, whatever without breaking other test cases or worsening other benchmarks. You'd probably also need to define a utility function that would combine benchmark scores to determine which combination was better, and I expect people would frequently submit changes or even branches to that utility function as their thinking evolved on how they'd like to optimize various trade-offs.

    • Re:arch (Score:2, Interesting)

      Tom Lord, the author of arch, has an interesting comparison [fifthvision.net] of arch vs. Subversion and CVS.

      What's really new about arch is that it makes version control decentralized, rather than merely distributed, as CVS and Subversion do. In arch, any branch, any developer's private work area can be regarded as a repository of its own, with a global name space for developers, repositories, and branches, to manage this.

      With CVS and Subversion, the repository is still a centralized entity. Compared to arch, these systems are still at a similar conceptual level, while arch adds something that is really new.

      • Sounds a bit like Bitkeeper [bitkeeper.com], the commercial, decentralized source code control system being used by Linus and a bunch of the Linux kernel hackers these days.

  • by Dimwit ( 36756 )
    I hereby adopt subversion 0.16.

    I am now Dimwit 22.16.

    (Subversion - sub-version...get it? Ha ha? Ahhh...nobody has a sense of humor these days...)
  • The only problem I have with subversion is its dependences on apache which just gets in the way in a local project unlike cvs which can be used over rsh/ssh, cvsserver, and locally. The other problem with apache is that they use the HEAD of httpd and apr as their base which is wrong for use with Darwin(Mac OS X). Also apache is big and is too modular for a project like subversion.
    • The only problem I have with subversion is its dependences on apache which just gets in the way in a local project

      Do your homework first. You don't need apache for local projects.

      ~velco
      • by Anonymous Coward
        I think he meant local to a group, not local to exactly one computer. Subversion does not work on anything that isn't all on one machine, unless you have the latest CVS version of Apache. That includes networked file systems; i.e. the subversion repository can't be on NFS, AFS, Coda, etc. Lacking ssh support, and not using a standard apache without addition modules is a huge problem for subversion, but they'll never admit it.
      • You still have to compile subversion with apache though. CVS is a whole package while subversion requires a big extern project to compile it.
    • actually, the next release of subversion will support a new repository access layer (called ra_svn, for lack of a better name), which uses a custom (but simple) tcp protocol that can easily be tunneled over ssh. it's pretty new, and might have some kinks we haven't found yet, but it passes all our regression tests so far.
  • some experiences (Score:5, Informative)

    by Tom ( 822 ) on Saturday December 21, 2002 @05:01AM (#4935266) Homepage Journal
    I've been moving all of my CVS development over to Subversion over the past few months, including a couple development servers at my company.

    Since Subversion is now in Debian unstable, it's really easy to install. Compiling from source is a bit of a hassle due to all the dependencies, especially on the apache2 libs.

    So far, I've not had a bad experience. No data loss or anything. And I'm very, very happy that I can finally get rid of pserver.

    Subversion impressed our company developers by its speed (subjectively, considerably faster than CVS for comparable operations) and its user-friendlyness. It's the details, stuff like automatic detection of binary files, that makes life for the dev people easier.

    For the admin, the fact that it runs via apache2 makes your life much easier, especially when it comes to firewalling and access control (user and passwords, etc.) - in a corporate network, you could easily plug it right unto your LDAP server for authentication, for example.

    Two things are holding Subversion back right now, IMHO:

    a) lack of a wincvs/tkcvs equivalent. Rapidsvn is making progress, but it's still very much alpha.

    b) a couple things still missing, like understanding symlinks.
    • Installing it is indeed very easy if you want to use unencrypted http. However, I'm having trouble setting up apache to use https. I have symlinked ssl.conf and ssl.load in /etc/apache2/mods-enabled, I have made a certificate and private key using the SSL-Certificates howto. I've put everything from the example ssl.conf file from apache2 in httpd.conf and modified the location of the key and certificate. Apache2 still doesn't accept any https connections (with or without the virtual host in the config file). When I enable the SSL engine ("SSLEngine on"), apache2 doesn't even start up, nor does it give any error message. When setting up a secure subversion server, I can't imagine that different people do it in a completely different way, so why isn't this documented properly ?
    • Subversion impressed our company developers by its speed (subjectively, considerably faster than CVS for comparable operations) and its user-friendlyness. It's the details, stuff like automatic detection of binary files, that makes life for the dev people easier.

      Oh yes, and the command syntax is suddenly sensible. For example, to check out subversion using subversion:

      svn co http://svn.collab.net/repos/svn/trunk subversion

      No CVSROOT, no -dgwana:gwana:gwana, no legacy silliness.
  • And what about migrating from CVS/RCS? Are there tools to do it? It would be nice, if not mandatory, for a lot of big projects out there. Regards
    • Yes, try reading the FAQ.
      [tigris.org]
      http://subversion.tigris.org/project_faq.html#cv s2 svn.

      So far, its "only" a Python script. Very much in beta, the usual warnings apply, but they claim it's working ok.

      As an example, the whole first
      year of Subversion's own history was converted from CVS into a
      3000+ revision svn repository. It took about 30 minutes.

      [collab.net]
      http://svn.collab.net/repos/svn/trunk/tools/cvs2 sv n/README
  • by Anonymous Coward on Saturday December 21, 2002 @06:29AM (#4935384)
    Check out Aegis - http://aegis.sourceforge.net [sourceforge.net]. It's better than Subversion. It's older than Subversion. It's more stable than Subversion. It has atomic multi-file commits. Branching to any depth. Multi-user support. Distributed support. Applying change sets to multiple repositories. And much, much more.
    • Aegis sounds like a nice system, but it doesn't even run on Windows, nor did it ever run on Mac OS 8/9. CVS runs on everything, and Subversion is designed to be extremely portable, too. Sorry, but that's a critical requirement of a lot of developers - even open-source developers, because lots of us want our open-source programs running on as many platforms as possible.
  • Aegis (Score:2, Insightful)

    by saska ( 13691 )
    aegis.sourceforge.net
  • Does anyone have any experience with integrating Subversion with, say, NetBeans? Does it work as good as the CVS support in NetBeans?

    I'll probably try it anyway, I'm just lazy. :-)
    • Re:Sounds good (Score:3, Insightful)

      by egghat ( 73643 )
      That's the main problem for adoption of arch, subversion or Aegis. All of these lack support for NetBeans, Eclipse and the other important IDEs.

      I guess the moment one of the next generation version controls systems gets good IDE support will be the break-through for this IMHO needed technology improvement.

      Bye egghat.
  • by hellgate ( 85557 ) on Saturday December 21, 2002 @07:01AM (#4935466)
    Damn you. That thread got me to download subversion source and read it -
    mistake I won't repeat any time soon. I've spent several months wading
    through fairly disgusting code - block device drivers are not pretty,
    ditto for devfs. I had more than once found myself grabbing Lovecraft
    to read something that would be less nightmare-inducing. But _THAT_ takes
    the fscking cake - I don't _care_ what Larry (or anybody else for that
    matter) does to people who had excreted that code. No, wait - I _do_ care.
    I want video of the... event.

    I don't use BK, but you can be damn sure that I won't touch SVN. Ever.


    Short and concise as ever.

    http://marc.theaimsgroup.com/?l=linux-kernel&m=1 03 402696209262&w=2
    • I would't take it _too_ seriously. You can hardly get Al Viro to say anything nice for anybody's code. And account for the usual Linux kernel arrogance and the difference in the coding style.

      ~velco
  • Generally, Subversion's interface to a particular feature is similar to CVS's, except where there's a compelling reason to do otherwise.

    How about this for a compelling reason; CVS's interface is HORRENDOUS!

    Look, CVS has fantastic features, to be sure. But it has a horrible interface that's far more complex than it needs to be. I haven't even found a GUI front-end that can make it easy to use.

    It's great to have powerful features, but not everyone needs all that power. 9 times out of 10, all I need is simple check-in and check-out with revision control. I don't need encryption. I don't need a million options for checking in and checking out.

    I just find all this other stuff gets in the way. I'm a firm believe that if you want to use software at it's simplest levels, it should be simple to use. As you get to more advanced features, it's okay for it to get more difficult to use. But to make it difficult to do the most basic things just doesn't make sense.

    I don't mean to slam CVS, but I'd just really like to see a simple to use alternative to it. Too many times I've gotten lost with CVS wondering exactly what the hell I had done.
    • For Windows there is an excellent GUI called TortoiseCVS [sourceforge.net]. It integrates with Explorer by overlaying icons on the files in the sandbox with own small icons indicating modified files, files with a conflict etc. You can perform all the important functions by simple context-menu commands on the directory, single- or multiple files.

      This program is really the reason I started using CVS, it removed all the unnecessary cruft that is in WinCVS for example.

      There is a move to make a TCVS like client for Subversion but I dont know at what stage it is at the moment

    • actually, the command line svn client has a much simpler interface than cvs. the general concepts are similar, and it keeps many of the same commands, but you don't have the dizzying array of flags for each option that you'd find in cvs.
  • Al Viro hates it ! (Score:2, Interesting)

    by BESTouff ( 531293 )
    I didn't look at the source myself, but here is a quote from Al Viro who did (and I find he has good taste):

    Damn you. That thread got me to download subversion source and read it - mistake I won't repeat any time soon. I've spent several months wading through fairly disgusting code - block device drivers are not pretty, ditto for devfs. I had more than once found myself grabbing Lovecraft to read something that would be less nightmare-inducing. But _THAT_ takes the fscking cake - I don't _care_ what Larry (or anybody else for that matter) does to people who had excreted that code. No, wait - I _do_ care. I want video of the... event. I don't use BK, but you can be damn sure that I won't touch SVN. Ever.

    found on The Linux Kernel Mailing-List [theaimsgroup.com]

  • Non-Apache 2 server? (Score:3, Interesting)

    by g4dget ( 579145 ) on Saturday December 21, 2002 @07:52AM (#4935566)
    The use of Apache 2 is a show-stopper as far as I'm concerned: we have no interest in migrating to Apache 2 in the foreseeable future. Is there a small, simple standalone server for subversion, or can I run it over ssh? Does subversion work with non-Apache WebDav implementations? Is there a CGI version of its server component?

    In comparison, CVS over ssh is secure and works pretty much everywhere. Many machines don't need to run a web server, let alone Apache 2, while ssh pretty much runs everywhere.

    • If you work on a local machine, you can use simple "urls" like file:///var/svn/myrepos/ instead of the http://server/svn/myrepos/, and the Subversion people are now working on new network layer, libsvn_ra_svn, which offers a new networking layer (svn://blahblah/).

      A standalone subversion server is also in development, but I don't remember if it's scheduled for 1.0 or not. However, this is free software, if you feel like you need it, you can help developping it ! :-)

      The point is, this is indeed a good remark, but not a showstopper. And the Apache2 svn server works just perfect for me !
    • by RupW ( 515653 )
      In comparison, CVS over ssh is secure and works pretty much everywhere. Many machines don't need to run a web server, let alone Apache 2, while ssh pretty much runs everywhere.

      As noted above, there is a standalone protocol in development. There's also a pipe module to exactly mimic cvs over ssh.

      If you strip down apache's configuration enough, it doesn't eat too many resources, though (can't get exact numbers from here, sorry) and it pretty much runs everywhere itself.
  • by g4dget ( 579145 ) on Saturday December 21, 2002 @08:00AM (#4935580)
    People like to complain endlessly about CVS and its quirks. And, yes, it does have quirks. But CVS mature, it works, and its quirks really don't affect day-to-day development in most environments.

    Subversion does look somewhat better and cleaner than CVS. But there are lots of add-on tools for CVS that will need to get ported (GUIs, servers, web interfaces, IDE integration, etc.). Just the retraining required to get people to use it in a multi-user environment is pretty daunting--CVS is used by many people who are not primarily developers, and the switch wouldn't be easy for them.

    It's been years since we have had any signficant problems with CVS; it seems to be just ticking along, doing its thing. So, I'm not convinced switching to subversion would be enough an advantage to outweigh the risks and retraining costs associated with it. I think it would take a number of large and very visible open source development projects switching to Subversion to give me enough confidence in it to try it.

    • by theefer ( 467185 ) on Saturday December 21, 2002 @09:36AM (#4935792) Homepage
      Subversion does look somewhat better and cleaner than CVS. But there are lots of add-on tools for CVS that will need to get ported (GUIs, servers, web interfaces, IDE integration, etc.). Just the retraining required to get people to use it in a multi-user environment is pretty daunting--CVS is used by many people who are not primarily developers, and the switch wouldn't be easy for them.

      Good point, but this is also a big concern of the Subversion folks. This is why subversion looks so much like CVS. The commands and aliases are almost all the same, and a great part of the comportment the users see also is.

      The ViewCVS scripts has already been ported to SVN [collab.net], though it's not perfect yet, it does work. The GUI is pretty much in development indeed : RapidSVN [tigris.org] is a working one, yet not complete either. An Emacs mode, similar to the CVS mode, shouldn't bee too hard to code I suppose, this is just a matter of time, will, and knowledge of elisp :)

      There was talkings about using SVN as a backend for a wiki too, this could be fun and really nice. A first draft had been coded by Greg Stein (if I'm not mistaken), but it was mostly test stuff.

      Subversion still needs help and contributors. People keep whining about CVS not handling file renaming etc, and they also keep using complicated tricks to avoid those flaws. I know, I've done it too. The very same people look at subversion and say "mh, nice, but not mature yet, let's wait it grows up a little". I doubt it'll grow quickly on its own, it just needs some help from all these coders who *will* use it in a few months/years !

      Believe me, once you've switched to svn, it just looks life is *so* easier. Try it, it won't bite, and you'll most likely love it !
    • People like to complain endlessly about DOS and its quirks. And, yes, it does have quirks. But DOS [is] mature, it works, and its quirks really don't affect day-to-day development in most environments.

      Linux does look somewhat better and cleaner than DOS. But there are lots of add-on tools for DOS that will need to get ported (GUIs, servers, word processors, batch files, etc.). Just the retraining required to get people to use it in a multi-user environment is pretty daunting--DOS is used by many people who are not primarily developers, and the switch wouldn't be easy for them.

      It's been years since we have had any signficant problems with DOS; it seems to be just ticking along, doing its thing. So, I'm not convinced switching to Linux would be enough an advantage to outweigh the risks and retraining costs associated with it. I think it would take a number of large and very visible open source development projects switching to Linux to give me enough confidence in it to try it.

  • PR for arch (Score:5, Interesting)

    by tomlord ( 473109 ) on Saturday December 21, 2002 @08:20AM (#4935611)
    I wasn't going to bother, but the previous comment mentioning arch has been modded up to 4, so I'll speak a tiny bit of my peace.

    SVN is a huge and complex system that aims, for its 1.0 release, to be just a tiny bit more featureful than CVS. There's quite a large number of bugs. The complexity for repository administrators is pretty high. The developers are willfully postponing consideration of a lot of deep issues in revision control. If you follow the dev list closely ... well, just follow the dev list closely.

    arch is a tiny, simple system that aims, for its 1.0 release, to be way more featureful than CVS. Although I don't think its ready for deployment in large-scale situations, early adopters tell me that they enjoy using it. arch, unlike svn, is very well positioned to compete (with just a bit more development) with BitKeeper, ClearCase, and others. arch can do a hell of a lot for the commercial free software world with just a bit of investment.

    And, I don't know how you should interpret this, but svn has a handful of paid developers -- arch has none and, in fact, I'm literally days away from homelessness.

    Go figure.
    • Re:PR for arch (Score:5, Interesting)

      by srussell ( 39342 ) on Saturday December 21, 2002 @09:55AM (#4935833) Homepage Journal
      This is really unfortunate, Tom. I'm sorry to hear this.

      The reason why we chose Subversion over Arch, and probably a reason why Arch isn't getting as much attention as Subversion is, is because of Arch's dependancy on shell scripts. This removes any incentive for a heterogeneous software development shop to use it.

      I can argue the merits of Subversion over Visual Source Safe to my clients, but Arch is a much harder sell.

      Good luck on finding employment, by the way!

      • Re:PR for arch (Score:4, Insightful)

        by tomlord ( 473109 ) on Saturday December 21, 2002 @06:41PM (#4937730)
        > [arch isn't portable beyond unixen because
        > it's largely written in sh]

        Just as a small clarification on a technical issue:

        1) In some sense, yes, that's an obstacle.

        2) It is very portable among solid Posix and nearly-Posix systems. It's not terribly useful as it stands on cygwin because (I've been told) `fork/exec' is very slow on cygwin.

        3) Most importantly, though, and a bit unlike SVN, arch is designed to be implemented more than once. It's tiny enough to rewrite (say, in Python or Perl) in just a few man-months. It's based in part on the idea of standardizing repository formats, exchange formats, and so forth. In other words, from the point of view of whether or not to support finishing arch, you have to regard it not just as a particular implementation, but as a collection of standards that are effective, simple, and cheap and easy to (re)implement in many different contexts. It's a bit like designing a cataloging system for libraries -- you think bigger than just one implementation.

        (Regarding other comments in this "thread", about "get a job", or "you're just trying to steal funding from svn", etc. Well, those aren't bad advice/concerns/objections to discuss -- but I don't think the blog format really supports that kind of discussion -- so I'm going to let them go without direct reply.)
    • Re:PR for arch (Score:3, Insightful)

      It'd be good if you could state some specific criticisms and arguments for arch vs subversion. We don't all have time to follow many dev lists closely (I follow several and to do it properly takes time). In particular, considering how different arch is from CVS/SVN, what are the advantages? Subversion may not be perfect, and the need to run Apache 2 scared me off, but it has the advantage that it takes all of 2 minutes to learn it if you have used CVS.

      For instance, when I set up my project a few months ago, I did look at other code control systems, but CVS won because everybody had it practically installed by default, and it was good enough. Considering how many different commands there are to do very similar operations in arch, it'd be better for you to give it a proper intro methinks. The Linux Journal article just left me with questions.

    • Re:PR for arch (Score:2, Interesting)

      by RupW ( 515653 )
      And, I don't know how you should interpret this, but svn has a handful of paid developers -- arch has none and, in fact, I'm literally days away from homelessness.

      There once was a company called Madge Networks (well, still is). In the early days, they made Token Ring cards that were clones of IBM cards. They didn't have the big name and reputation of IBM. They didn't have a significantly better product. So how did they compete? They were easier to deal with than IBM.

      Are you as easy to deal with as the SVN team?

      My impression is that you're trying to highjack funding from the SVN team by telling them that your product is better and collab.net should pay you instead. But collab.net want a CVS replacement for sourcecast and that's what they're paying for.

    • Re:PR for arch (Score:4, Interesting)

      by Anonymous Conrad ( 600139 ) on Saturday December 21, 2002 @11:25AM (#4936099)
      Is arch better than svn? Don't know. It makes too many assumptions that XYZ posix utility is actually the GNU one. My Solaris box doesn't play along with that, and that's a showstopper for me until I can find a *lot* more time to play.

      Are you ever going to make a Win32 version? How?
    • And, I don't know how you should interpret this, but svn has a handful of paid developers -- arch has none and, in fact, I'm literally days away from homelessness.

      There's no way somebody with your talent would not be snapped up, if you're known to be available. But I suppose you're not interested unless you can work on Arch fulltime?

      I agree with the other respondent that the dependancy on shell scripts is a perceptual problem. Considered Python? Dependency on diff is not so great either. Actually, the binary diff used by Subversion and XDelta (the code came from XDelta I believe) is only a couple of hundred lines long, and very easy to use.
      • In principle a version control system doesn't need to use diff at all. It could just store each revision of each file in full. That's probably what I would do if I implemented a VCS myself. Then if disk space gets tight, there can be a daemon which converts some of the complete copies into diffs against the latest version. But that doesn't need to happen on every checkin.

        An interesting alternative to storing diffs, but still saving disk space, is to use compression such as bzip2 to squeeze redundancy between the different versions. If you concatenate all the different revisions in a single file and then compress it, you'll probably use just as little space as compressing an RCS file or other collection of diffs. But it might be too slow to do this in practice.

    • Tom, what is it that you are asking for? You'd do a lot better setting a goal and asking something specific, and saying what you will do if you reach a minimun set of funds to keep developing arch and then see how things go.

      If for the time beign you are not lucky, you should give up and go on, you surely are talented and able to find a job soon if you want to play by your bosses rules (that always works).

      Whining you are broken will only get you "condolences" and things like that.

What is research but a blind date with knowledge? -- Will Harvey

Working...