Slashdot Mirror


Multi-User Subversion

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."

82 of 159 comments (clear)

  1. Subversion vs CVS by Slashdotess · · Score: 3, Insightful

    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?

    1. Re:Subversion vs CVS by Anonymous Coward · · Score: 2, Funny

      You have never tried to move a directory in a CVS repository, have you?

      obKarmaWhoring: http://subversion.tigris.org/

    2. Re:Subversion vs CVS by Cebu · · Score: 5, Informative

      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.

    3. Re:Subversion vs CVS by bdash · · Score: 5, Interesting

      A good discussion of this was in Linux Journal recently.

      Briefly, CVS lacks version control across file renames, has some issues with binary files, and the CVS code base has serious design issues.

    4. Re:Subversion vs CVS by mccalli · · Score: 5, Informative
      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

    5. Re:Subversion vs CVS by noselasd · · Score: 5, Informative

      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.

    6. Re:Subversion vs CVS by g4dget · · Score: 2, Informative
      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.

    7. Re:Subversion vs CVS by syphoon · · Score: 4, Informative

      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.

  2. sounds cool by farnsworth · · Score: 4, Interesting
    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.

    --

    There aint no pancake so thin it doesn't have two sides.

    1. Re:sounds cool by reaper20 · · Score: 2

      Ugh, never call wincvs a nice client.

      tortoise cvs if you're ever in a win environment.

    2. Re:sounds cool by stefanlasiewski · · Score: 4, Insightful

      If you're interested in clients, check out the http://scm.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?)

      --
      "Can of worms? The can is open... the worms are everywhere."
    3. Re:sounds cool by joib · · Score: 4, Insightful


      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.

    4. Re:sounds cool by dubl-u · · Score: 2

      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. 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.

  3. Atomic checkins are a must... by dagg · · Score: 5, Informative
    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.

    --
    Sex - Find It
    1. Re:Atomic checkins are a must... by stefanlasiewski · · Score: 2

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

      Wait, I thought Perforce was heavily based on CVS? Was I wrong?

      --
      "Can of worms? The can is open... the worms are everywhere."
    2. Re:Atomic checkins are a must... by dagg · · Score: 3, Informative

      I'm not sure where you got that idea. There is no connection, whatsoever, to my knowledge. Here is a comparison page provided by the Perforce folks: comparison chart.

      --
      Sex - Find It
    3. Re:Atomic checkins are a must... by Krellan · · Score: 4, Interesting

      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!

    4. Re:Atomic checkins are a must... by roskakori · · Score: 3, Informative
      [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 are online, and so are ports 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.

    5. Re:Atomic checkins are a must... by Daniel+Phillips · · Score: 2

      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.

      --
      Have you got your LWN subscription yet?
    6. Re:Atomic checkins are a must... by Ed+Avis · · Score: 2

      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.

      --
      -- Ed Avis ed@membled.com
    7. Re:Atomic checkins are a must... by Ed+Avis · · Score: 2

      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.

      --
      -- Ed Avis ed@membled.com
    8. Re:Atomic checkins are a must... by dagg · · Score: 2
      Testing by responding to my own post.

      Please ignore.

      --sex

      --
      Sex - Find It
  4. Subversion is far better than CVS by cartman · · Score: 5, Interesting

    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.

    1. Re:Subversion is far better than CVS by 7-Vodka · · Score: 2

      well I just hope it has all the goodies on Linus' xmas list.

      --

      Liberty.

    2. Re:Subversion is far better than CVS by g4dget · · Score: 2
      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.

    3. Re:Subversion is far better than CVS by Majix · · Score: 2

      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.

    4. Re:Subversion is far better than CVS by g4dget · · Score: 3, Insightful
      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.

    5. Re:Subversion is far better than CVS by dubl-u · · Score: 2
      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.
    6. Re:Subversion is far better than CVS by cartman · · Score: 2, Informative

      "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.

  5. $Revision$ by aok · · Score: 2, Interesting

    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!

    1. Re:$Revision$ by xlv · · Score: 4, Informative

      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 $.

    2. Re:$Revision$ by aok · · Score: 2, Informative

      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.

  6. arch by bedessen · · Score: 5, Informative

    Of course, no discussion of CVS's strengths and weaknesses vs. Subversion would be complete without mention of the third contender, arch. Link 1, Link 2.

    1. Re:arch by Renegade+Lisp · · Score: 2, Interesting
      Tom Lord, the author of arch, has an interesting comparison 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.

    2. Re:arch by jonabbey · · Score: 2

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

  7. Okay, I will... by Dimwit · · Score: 2, Funny

    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...)

    --
    ...but it's being eaten...by some...Linux or something...
  8. CVS still awfully nice by 0x0d0a · · Score: 4, Informative

    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.

    1. Re:CVS still awfully nice by Cuthalion · · Score: 4, Informative

      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

      --
      Trees can't go dancing
      So do them a big favor
      Pretend dancing stinks!
    2. Re:CVS still awfully nice by Anonymous Coward · · Score: 3, Funny

      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.

    3. Re:CVS still awfully nice by dubl-u · · Score: 3, Funny

      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.

  9. only problem with subversion by norwoodites · · Score: 2, Insightful

    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.

    1. Re:only problem with subversion by Garrett+Rooney · · Score: 2, Informative

      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.

    2. Re:only problem with subversion by norwoodites · · Score: 2

      You still have to compile subversion with apache though. CVS is a whole package while subversion requires a big extern project to compile it.

    3. Re:only problem with subversion by norwoodites · · Score: 2

      Will support not compiling with apache support because apache is too big for my taste.

  10. some experiences by Tom · · Score: 5, Informative

    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.

    --
    Assorted stuff I do sometimes: Lemuria.org
    1. Re:some experiences by Daniel+Phillips · · Score: 2

      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.

      --
      Have you got your LWN subscription yet?
  11. Off Topic?? by SuperDuG · · Score: 2
    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.

    --
    Ignore the "p2p is theft" trolls, they're just uninformed
  12. Aegis aegis aegis aegis aegis! by Anonymous Coward · · Score: 5, Informative

    Check out Aegis - http://aegis.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.

    1. Re:Aegis aegis aegis aegis aegis! by Dominic_Mazzoni · · Score: 3, Insightful

      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.

  13. Aegis by saska · · Score: 2, Insightful

    aegis.sourceforge.net

  14. Sounds good by LarsWestergren · · Score: 2

    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. :-)

    --

    Being bitter is drinking poison and hoping someone else will die

    1. Re:Sounds good by egghat · · Score: 3, Insightful

      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.

      --
      -- "As a human being I claim the right to be widely inconsistent", John Peel
  15. Re:Migration? by LarsWestergren · · Score: 2

    Yes, try reading the FAQ.

    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.


    http://svn.collab.net/repos/svn/trunk/tools/cvs2 sv n/README

    --

    Being bitter is drinking poison and hoping someone else will die

  16. Al Viro's review of subversion by hellgate · · Score: 3, Informative

    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

    1. Re:Al Viro's review of subversion by velco · · Score: 2, Informative

      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

  17. Damn... by Pedrito · · Score: 2

    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.

    1. Re:Damn... by Majix · · Score: 3, Interesting

      For a start, the CVS command line client is non interactive, which is a pain in the ass if you are using SSH authentication and have to enter your passphrase every time you want to do something.

      That's what's ssh-agent is for, you upload your public key to the machine running CVS and the agent running on your machine authenticates you without a password.

      cvs -d:pserver:anonymous@cvs.project.sourceforge.net:/ path/to/cvs/root checkout file
      Oh wow, yeah, now thats so obvious isn't it?

      1. You can get rid of everything up to the "checkout" by putting it in your CVSROOT variable.
      2. No subsequent updates/checkins ever need this information again as it's stored in the CVS data in the directory. So it's a one time deal.

      Subversion replaces the cryptic CVSROOT with a "normal" url, so you'll be typing something like "svn co http://someserver/repository module".

  18. Al Viro hates it ! by BESTouff · · Score: 2, Interesting
    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

  19. Non-Apache 2 server? by g4dget · · Score: 3, Interesting
    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.

    1. Re:Non-Apache 2 server? by theefer · · Score: 3, Informative

      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 !

      --
      theefer
    2. Re:Non-Apache 2 server? by RupW · · Score: 3, Interesting

      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.

    3. Re:Non-Apache 2 server? by mgkimsal2 · · Score: 2

      If the server is meant to be a development server, I'm not sure why it'd be under 'heavy load' - too many commits? You probably shouldn't be running a dev environment on a production machine anyway. And if you're in need of a multi-user environment for version control, you are probably able to afford a new 'low end' (300 mhz?) machine to run things on.

  20. I'm doubtful (for now). by g4dget · · Score: 4, Insightful
    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.

    1. Re:I'm doubtful (for now). by theefer · · Score: 5, Interesting

      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, though it's not perfect yet, it does work. The GUI is pretty much in development indeed : RapidSVN 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 !

      --
      theefer
    2. Re:I'm doubtful (for now). by Drakonian · · Score: 3, Insightful
      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.

      --
      Random is the New Order.
  21. PR for arch by tomlord · · Score: 5, Interesting

    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.

    1. Re:PR for arch by srussell · · Score: 5, Interesting
      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!

    2. Re:PR for arch by IamTheRealMike · · 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.

    3. Re:PR for arch by RupW · · Score: 2, Interesting

      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.

    4. Re:PR for arch by Anonymous+Conrad · · Score: 4, Interesting

      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?

    5. Re:PR for arch by Daniel+Phillips · · Score: 2

      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.

      --
      Have you got your LWN subscription yet?
    6. Re:PR for arch by fferreres · · Score: 2

      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.

      --
      unfinished: (adj.)
    7. Re:PR for arch by tomlord · · Score: 4, Insightful

      > [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.)

    8. Re:PR for arch by Ed+Avis · · Score: 2

      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.

      --
      -- Ed Avis ed@membled.com
  22. Re:Aegis is another one by __past__ · · Score: 2
    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? 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? 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)
  23. CVS operates on a per-file model by Anonymous Coward · · Score: 2, Interesting

    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.

  24. Re:How does this compare to OpenCM by Ded+Bob · · Score: 2

    If I use the start of the mailing list archives as a guide, I would say both are about the same age (around April 2000). Both are still in alpha (check Subversion's status).

    Personally, I would like a better comparison of these two.

  25. Listing of all known SCM software for Linux by rickmoen · · Score: 2
    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, in case it will help.

    Rick Moen
    rick@linuxmafia.com

  26. Re:Aegis is another one by Adam+J.+Richter · · Score: 2
    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.

  27. Re:Aegis is another one by GooberToo · · Score: 2

    Actually, as I understand it, that's not entirely true. While Aegis does have support for "a process", it is not mandatory. Rather, steps can be skipped and ignored. Furthermore, you can elect to adopt only the portions of the process that you like (test cases, etc). That means you only have to use as much as the process as you desire or none at all. In other words, it allows for a process framework to be used where developer supplied content fills in the framework or you can have null steps for each part of that framework leaving you with only the toolset behind.

    Long story short, I believe that you've been misinformed. Feel free to correct as need.

  28. CVS renaming trick breaks history by Earlybird · · Score: 3, Informative
    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.

  29. Re:Repository-Level Revisioning -- A Good Thing by jcr · · Score: 2

    This is very much like TeamNet's "checkpoint" concept. In TeamNet, you made changes in your work area at will, and any time you wanted to remember the state of the project, you'd freeze a checkpoint.

    This was a *very* cheap operation, since it consisted of supplying a name to the current state of the world, and creating a new "open" checkpoint.

    To create a Work Area in TeamNet, you'd make a Virtual Copy, or VCP (effectively a symlink) to some checkpoint in the repository, which TeamNet referred to as the "Baseline". Your work area would only use physical storage for the files that you'd actually changed.

    I'm glad to see SubVersion dealing with the need to know the entire state of the project, instead of leaving this burden on the developer. There are lots of times when adding a feature or fixing a bug means changes to a bunch of files, which I need to apply or rollback as a set.

    -jcr

    --
    The only title of honor that a tyrant can grant is "Enemy of the State."