CVS
Legacy documentation
This page describes a service provided by a retired ACENET system. Most ACENET services are currently provided by national systems, for which please visit https://docs.computecanada.ca. |
All users doing code development should be using some sort of version control software. This type of software helps to keep track of changes made to source code, and allows a user to go back to previous versions of the source code. More information can be found here. Normally, CVS operates in a client/server mode. It can also run in a local mode. This page will describe how to do this.
The first step is to create your local CVS repository.
- Create a directory to house the repository. In this example, we will use cvsroot.
$ cd ~ $ mkdir cvsroot
- Initialize the new repository.
$ cvs -d ~/cvsroot init
You now have an initialized CVS repository, which can be used to store your source code in. The next step is to populate it with your source code files. To do this, you need to tell your CVS client where to find the repository. You can set the environment in your dot profiles:
- tcsh syntax, for .cshrc
$ setenv CVSROOT ~/cvsroot
- bash syntax, for .bashrc
$ export CVSROOT=~/cvsroot
or you can use the "-d" command line option
$ cvs -d ~/cvsroot cvs_command