Using CVS
Accessing the group repository
You will have one repository against which all members of your group will check in and check out files. The repository has alread been created for you at the institutions cvs server cvs.srv.it.uu.se. The name of the repository is datorsys05-<#> where <#> is the number of your group.
You will use your upunets username ex. Stu Dent stde1234, to access the repository with a password supplied by Mikael Carlsson.
To access the cvs you need to configure the environment varible CVSROOT
% export CVSROOT=":pserver:stde1234@cvs.srv.it.uu.se:/datorsys05-<#>
And then you need to login to the cvs server
% cvs login
cvs login will ask you for the password supplied by Mikael Carlsson
First time you access the cvs server the file .cvspass is created and a error message is returned:
hamberg> cvs login Logging in to :pserver:stde1234@cvs.srv.it.uu.se:2401/datorsys05-1 CVS password: cvs login: warning: failed to open /home/mikaelc/.cvspass for reading: No such file or directory
Checkout the module project in the cvs by:
% cvs co project
Now you should now have a directory called project in your local filesystem. This is where all your files should go.
In the project directory you should arrange your project files in a descriptive directory structure.
Example directory structure:
project source documentation
Exampels of typical CVS usage
To create a directory in the cvs:
% cd ~/project % mkdir source % cvs add source #add knowledge about the empty directory source to the cvs. % cvs ci -m "kommentar" source #commit only the directory source to the repository.
To create a file in the source directory in the cvs:
% cd ~/project/source % touch foobar.txt #create an empty file for demonstration % cvs add foobar.txt #add knowledge about the new file to the cvs % cvs ci -m "added the file foobar.txt" #commit every change in this directory and all below in the file structure.
To update to the latest version:
% cd ~/project % cvs update
If you forget to cvs add file or directory:
hamberg> touch finsinte.txt hamberg> cvs ci -m "this will not work" finsinte.txt cvs commit: use `cvs add' to create an entry for `finsinte.txt' cvs [commit aborted]: correct above errors first!
For detailed description on how to use the cvs, see http://www.it.uu.se/edu/course/homepage/datsystDV/ht04/Project/tools/cvs