Plan-X

Resources: The CVS web page; the Version Management with CVS web page.

Example systems: CVS is available directly on most Unix systems. On Windows there is a command-line version available in Cygwin, and as Shell Extension for Windows Explorer in Tortoise CVS.

Basic CVS

File system manipulations

Initial things

Development cycle

Make sure you enforce basic invariants on your CVS usage. For example, "Never commit without checking that compilation is successful and test suite runs without errors.".

A typical development cycle will look like

  1. get latest version: cvs update.
  2. add feature / fix bug / ...
  3. compile / build. failure (compilation failure)? return to 2.
  4. run test suite (remember to add test case). failure (test failed)? return to 2.
  5. commit to repository: cvs commit. failure (version not up-to-date)? return to 1.

The basic advice is to commit often (but not too often, cf. the invariant) to reduce the number of failures in step 5. and consequent reiterations of the complete cycle.

Convenience

Last updated: Mar 03, 2003 (hniss)