Super-K CVS Repository

How To Use the Super-K CVS Repository

CVS (Concurrent Versioning System)

Super-K makes use of CVS to share and manage code between multiple users. The source code for the SK libraries (as well as various other documents and file) all lives in a cvs repository. The code can be "checked out" of the repository, and then compiled and run on various operating systems. Modified code can be checked back in for others to use. CVS keeps track of different modifications from different users, and can merge them appropriately.

Access to the repository

Access to the repository is controlled using secure shell (ssh) utilities. To have access to the repository, you will need to put your ssh public key into the ~/.ssh/authorized_keys2 file of the skrep account of the repository on suketto. If you do not yet have an account on suketto, you will need to have someone with access do it for you. To generate the key:
ssh-keygen -t dsa
Do not enter a password. This will create a file called id_dsa.pub in your ~/.ssh subdirectory. This is your ssh public key. Email this file to someone with access so it can be added to the authorized_keys2 file.

Setting up cvs

To set up cvs, you need to set
setenv CVS_RSH ssh
setenv CVS_SERVER "env LOGNAME=squid cvs"
setenv CVSROOT ":ext:skrep@kmcvs.icrr.u-tokyo.ac.jp:/home/skrep/repository"
if squid is your username. The CVS_RSH variable tells it to use ssh for access, which is required. The CVS_SERVER variable gives it a log name for it to use for commits -- set this to your userid as shown above. The CVSROOT variable tells it where the repository lives.

You'll probably want to put these in your .tcshrc file.

Working with cvs

The CVS manual gives full information on how to use cvs, but here a few useful commands: