Using CVS at compbio

From CompBio
Jump to: navigation, search

Michal Guerquin ( September 14, 2006

Version control of files used at Compbio


CVS at Compbio

Currently, there is a CVS repository on karma. It won't always be there, but for now that's where it is.

To use it, you need to have the CVS client binaries installed on your system. Most likely, they are already there. If not, obtain them first.

Once you have it installed, you should be able to type cvs --version to verify that it works and is the correct version. The client/server on karma is version 1.11.17, so yours should be similar to that.

Getting an account

You must email mikeg@compbio to obtain an account in the repository for your files. The remainder of this text assumes you already have one.

Using it

The idea is that at the root level is a directory called "username_files" where you can put all your files.

The way you get to the repository is by first setting up the environment variable CVSROOT like this:

   export CVSROOT=":pserver:username@karma:/spare/home/svn/cvsroot" 

(Assuming you're using bash; the syntax for setting environment variables differs from shell to shell.)

Be sure to substitute your username correctly.

Then you must log in:

   cvs login 

At the password prompt, press enter (any password will work.) Being logged in, you can issue cvs commands. Try this:

   cvs checkout username_files 

This will create the directory "username_files" in your current working directory. You can then enter the directory:

   cd username_files 

and issue cvs commands to manipulate your files, like "cvs add filename", "cvs diff", "cvs commit", etc.

Browsing files in the repository

There is a "viewcvs" server running on karma. You can see it by browsing to

Personal tools