CVS for Project 1

The CVS repository is located at /cs/classes/cis422/S01/CVSARCHIVE/.   We have set its structure as follows:

A- Installing the architecture.

You need to check out your CVS group structure into a place called working root that you will create somewhere in your account. NOTE:

B- Working with your CVS group's files.

Every time you log in.

You always need to set the CVS environment once per login to be able to work on CVS.   And you should always work (edit, modify, create, etc.) under the working directory project1/422g$ of your root directory.

Edit, Create, Modify, etc.

Always work (edit, modify, create, etc.) under the working directory project1/422g$ of your root directory.   Never modify the architecture files found in the directory project1_base.   They are for compilation and execution purposes only.

Add new files.

The definition of new files is those you have created in your working directory but not found yet in your CVS group's repository;   i.e., you have not added them to your repository.   At some point, you need to add these files to your CVS group's directory.   You do this as follows: NOTE:

Checkout the project.

You will surely need to check out your group's project, so that you can have the latest version to work with (especially those files created and modified by your fellow group members), or that you can make some changes to some of your codes you have already checked in.   Here is how you do it:

Update files.

The definition of updated files is those you have checked out from your CVS group repository and that you have modified.   When you are done with them, you need your CVS group repository to reflect the changes you made.   Suppose you have updated a file called Kasparov.java.   Now you update the repository as follow: NOTE:

Removing files.

Some files may not be needed anymore because you have renamed them or they do not belong to the project anymore.   In either case, you can remove only those files you have checked out (this excudes new files, see Add new files section above for the definition of new files).   Here are the sequence of commands to remove a file: