Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Linux Business Programming IT Technology

CVS Server Administration Tips? 79

Twintop asks: "The company I'm working for has asked me to take over administration of their CVS server for a decent sized project. The current setup of the CVS server needs to be wiped clean and started fresh. The only times I've ever used CVS (and used it poorly at that) was with a few SourceForge.net (An OSTG Site) projects. What are some suggestions on reference materials for a newbie to CVS (but not to Linux) and methods of administration that have worked for you in the past?"
This discussion has been archived. No new comments can be posted.

CVS Server Administration Tips?

Comments Filter:
  • The CVS Book (Score:3, Informative)

    by Short Circuit ( 52384 ) * <mikemol@gmail.com> on Tuesday January 18, 2005 @02:00PM (#11397538) Homepage Journal
    The CVS Book [red-bean.com] is a free download. You can order a dead-tree version, as well.
  • cvs with ssh (Score:5, Informative)

    by OmniVector ( 569062 ) <see my homepage> on Tuesday January 18, 2005 @02:23PM (#11397851) Homepage
    i'd use cvs with ssh. you'll want to give everyone an ssh account on a particular machine. create the cvs directory and give it a group sticky bit:

    mkdir /srv/cvs
    chmod 2770 /srv/cvs
    groupadd cvs
    chown root:cvs /srv/cvs

    this way, any files created/modified within that directory will retain their group writable permissions. you'll need to set the CVS_UMASK variable for each user as such in the shell of the remote machine they'll be using CVS from.
    export CVS_UMASK=002

    you'll need to set the CVS_RSH variable to ssh, so it tunnels:
    export CVS_RSH=ssh

    and your cvs home will look something like:
    export CVSROOT=:ext:username@hostname:/srv/cvs

    to make it even more convient, i suggest you research ssh-agent/ssh-keygen and use keys. no more passwords, with security and group protections
  • by tanguyr ( 468371 ) <tanguyr+slashdot@gmail.com> on Tuesday January 18, 2005 @02:25PM (#11397878) Homepage
    If you have an opportunity to, chuck it and use Subversion instead.

    One thing to remember is that although subversion may be the new hotness, it's the NEW hotness. By this i mean that while there are certainly bugs and problems in cvs, they are most likely *known* bugs and problems - unless your usage is way out there on the cutting edge, the likelihood that you will discover a brand new never seen before bug in cvs is quite low. Sadly, the same can't be said for svn - not because it has quality issues but because it's a younger product. Whilst it's true that no open source project gets very far without users and bug reports, this is still something to keep in mind when making a "cvs vs svn" decision.

    Just my 0.02$
  • Re:cvs with ssh (Score:3, Informative)

    by stevey ( 64018 ) on Tuesday January 18, 2005 @02:28PM (#11397925) Homepage

    Don't forget the :

    cvs -d /src/cvs init

    And any tweaking of options beneath CVSROOT.

    I mentioned this briefly in my secure CVS setup guide [debian-adm...ration.org]...

  • by morrison ( 40043 ) * on Tuesday January 18, 2005 @02:42PM (#11398093) Homepage
    BRL-CAD [brlcad.org] is a very large scale project with over 20 years of history in RCS and CVS. The CVS repository [sourceforge.net] now lives on SourceForge with pretty much the entire revision history preserved (the project only recently released [slashdot.org] as open source). You can see one of the oldest files, for example here (bool.c) [sourceforge.net]. If you look to the end of the file, you'll see something like: Wed Apr 18 02:19:43 1984 UTC (20 years, 9 months ago) by mike

    Several years ago, many of the current CVS practices were written down and organized into a rather detailed generic CVS policy [sourceforge.net]. It basically all boils down to being able to guarantee a certain level of functionality, being very careful about naming directories, and coming up with good tag naming conventions. Likewise, depending on how many developers you have and how active development is, more or less control may be required for branches and validation.

    Those last two restrictions are mainly due to limitations of CVS -- it does not directly manage directories or maintain history of directory changes, so you're left up to tracking those changes by policy conventions. (It's rather annoying that a CVS checkout does not prune empty directories by default!) If your directory structure is likely to change frequently (e.g. a new large project starting up), then something like SVN may be less painful. that said, BRL-CAD's history has easily endured CVS's inadequacies quite successfully.
  • by SamNmaX ( 613567 ) on Tuesday January 18, 2005 @03:15PM (#11398532)
    Though this is on the client-side, it can be quite handy to use something besides the normal command-line CVS interface.

    For Windows developers, TortoiseCVS [tortoisecvs.org] is highly recommended (as well as it's subversion equivalent, TortoiseSVN). For Java users, Eclipse has built in CVS support, which also works quite well.

  • by danpat ( 119101 ) on Tuesday January 18, 2005 @04:53PM (#11400328) Homepage

    Actually, one of the great things about Subversion is that it's pretty much just an incremental upgrade from CVS.

    For basic, day-to-day tasks, the only thing you need to switch is the word "cvs" with "svn" on your command line (or switch from TortoiseCVS to TortoiseSVN). "svn co/checkout", "svn up/update", "svn ci/commit" all work just fine.

    I've switched over several groups (usually 5-20 developers) and the time to get back to work for each was in the order of half an hour or so (a lot less for some developers).

    The biggest comment that I've had from those groups is that "Subversion is a relief". All of a sudden, the things you need to be careful with (renaming files, creating/moving directories, etc) with CVS are no longer issues with SVN.

    ViewCVS works with Subversion, plugins exist for Eclipse, NetBeans, Forte and .NET. Command line is highly compatible with CVS. All-in-all it's a pretty easy switch, with lots to gain and not much to lose.

  • by BigJim.fr ( 40893 ) <jim@liotier.org> on Tuesday January 18, 2005 @05:03PM (#11400512) Homepage

    > One thing to remember is that although subversion may be the new hotness, it's the NEW hotness.

    We have been using it for a year on a medium sized project with a team of a dozen developers, and although some interfaces with other stuff are a bit green, we have not encountered a single annoying bug. It is stable, it makes sense and it removes most of the limitations I have encountered in CVS. I cannot see a reason to go back to CVS.

  • by morrison ( 40043 ) * on Tuesday January 18, 2005 @08:51PM (#11403424) Homepage
    Actually that file does still exist. It's here [sourceforge.net] now. Less than a year ago, the package went under massive directory reoganizations. CVS commit comments on the old and the new tell you where things came from and/or went to (and is in the CVS policy). If you want to see one not in the Attic with some age, the README [sourceforge.net] will take you back almost 18 years or so.

After a number of decimal places, nobody gives a damn.

Working...