CMPE 401 - Laboratory #2 CVS instructions

Software Management with Concurrent Version System - CVS


The CVS requirements for this lab are: The operations to add, update, and remove files, and commit changes to those files will be sufficient to fulfill the requirements above.

To Add Files and Directories to an Existing Project

Once a project has been imported the developer must have the ability to add new files, remove old files, and commit the necessary changes. Without these operations, collaboration within large groups of developers can't be productive or practical.

Adding a new directory (for lab2):
Adding a new file(lab2.c):

To add a new file you need to do two things. cvs add tells CVS that you want this file under source control, and cvs commit acutally places it into the repository. Recovering or Replacing Files (but not directories)

To recover or replace a file already under source control execute a cvs update to get a new copy from the repository:
Commiting Changes

Committing changes to your source files ensures that the changes you put into the project can be transferred to the other developers in the group. Removing Files (but not projects or directories) from Source Control

Like adding files, removing files from cvs is a two step process.
Consult the many references on CVS on the web to learn more. In the next lab, we'll create a merge conflict and examine how to resolve it.

Last modified October 17, 2006