Main / CVS - CS559 2007
Using CVS for a CS559 (or CS679) Project
If you aren't familiar with CVS, you might want to at least understand the basic concepts first.
What this page will help you do:
There is a CSL help page that doesn't deal with #2.
First pick a CSL Linux machine that you have an account on. Using "best-emperor" works OK.
Log in, and create a directory that you want your CVS repository to go into. Remember, that the repository is the database where CVS keeps all your old versions (not your working directory).
In that directory, type
cvs initto have CVS set itself up in that directory.
Also, notice that we're setting up the repository on a Linux machine. Do not access this directly from a windows machine.
Make sure that everyone you want to have access to the repository has read and write access to the directory.
For testing here, I will do it in my home directory/private and make the repository called mycvs. Here "garagmel" is my linux server.
gargamel(22)% cd ~/private/ gargamel(23)% mkdir mycvs gargamel(24)% cd mycvs gargamel(26)% pwd /afs/cs.wisc.edu/u/g/l/gleicher/private/mycvs gargamel(25)% cvs -d /u/g/l/gleicher/private/mycvs/ init
Notice that I had to give the path to the init command - this is good practice for later.
Using the repository from Windows
There is a great Windows CVS client called TortoiseCVS. Its installed in the Storm Lab. You should install it on any machine you want to use to access the CVS repository.
On your windows machine, find the folder that you want to put into CVS and right click on it. You should see a "CVS" entry on the menu (if not, then Tortoise isn't installed correctly). Pick "make new module".
Here's the tricky part: you now need to tell CVS how to talk to the Linux server. For each of the parts of the middle of the dialog do the following (NOTE: you DO NOT fill in the "CVSROOT" - Tortoise figures that out from the following questions):
For the example, I see:
If you click OK, CVS will set things up for you. Be warned: it will ask you for your password multiple times.
Getting files into CVS
Note: the previous steps made an empty module, you now need to actually add files to it. You can do this two ways:
Remember: adding a file just tells CVS that you want it to keep track of the file. You still need to do a commit to put the first version in there.