next up previous contents index
Next: Basic Commands of CVS Up: Putting the Experiment under Previous: Setting Up a CVS   Contents   Index

Importing Source Files to the CVS Repository

Next, you will have to import all source files of the experiment into the repository. Do the following:


  1. Change to the experiment's directory
    cd <exp_dir>
  2. Put all files into the CVS repository
    cvs import -m "<comment>" <name> <vendor_tag> <release_tag>
    All arguments are required. A comment should be given as <comment>. <name> specifies the name under which all files in <exp_dir> are stored in the CVS repository (which is $CVSROOT/<name>). <vendor_tag> and <release_tag> are required but are of no meaning in the current context, so they may be set arbitrarily. For example, the above statement might look like this
    cvs import -m "imported sources" my_experiment exp start
  3. Verify that everything went fine and use the directory under CVS control to perform your experiments:
    cd ..
    mv <exp_dir> <exp_dir>.orig
    Get a local copy of the just imported files
    cvs checkout <name>
    This should produce a new directory <name> containing identical copies of all source files in <exp_dir>.orig. Verify that both directories are really the same
    diff -f <exp_dir>.orig <name>
    If no output was produced by the last command you can safely remove the original directory
    rm -rf <exp_dir>.orig
    Now <name> contains a valid version of your experiment, which is under CVS control. Use this from now on.



next up previous contents index
Next: Basic Commands of CVS Up: Putting the Experiment under Previous: Setting Up a CVS   Contents   Index
Tobias Polzin 2002-11-18