Modelling clouds and climate

Starting to use CVS

Path: Contents > Using CVS > Starting to use CVS
Site Map

Contents

About CVS
  • Setting up CVS
  • Using the CVS Server
  • Commands and
      Terminology
  • pcl-cvs
    Using CVS
  • How was SCM set up?
      (import)
  • Getting the ubcscm
      (checkout)
  • Making changes
      (update/diff)
  • Commiting your changes
      (commit)
  • Releasing you work
      (release)
    Other CVS Commands
  • Examining Changes
      (log)
  • Add and Delete Code
      (add/del)
  • Status/revisions
  • Tags
  • Branches
    Spetial Topics
  • Writing Log
  • Handling Conflicts
    References



    Web Contact: Phil Austin
    Site created with Cheetah.

    Last updated: Mar 13 2003
  • Starting to use CVS

    cvs checkout (synonyms: co get)

    For things to work in this section, make sure you go through Setting up CVS section.

    You will not be working on the SCM files that are in the CVS repository. Instead, CVS will create a seperate working copy of all SCM files that you will be working on. This can be done from withing any directory where you want the model in as follows:

     $ pwd
     /home/whatever
     
     $ cvs co ubcscm
     cvs checkout: Updating scm
     U scm/PARAM.DAT
     U scm/PRSCOZONE.DAT
     U scm/SIGMA.DAT
     ...
     
     $ 
     

    At this point, CVS has "checked out" the source tree called ubcscm from the repository specified by the CVSROOT environment variable (See "Setting up CVS"). CVS puts the tree in a subdirectory named `ubcscm': The letter U in front of the file names indicates that the file name was updated

    All of these files are your working copies of the ubcscm sources. However, the subdirectory called `CVS' (that you will find at the top) is different. CVS uses it to record extra information about each of the files in that directory, to help it determine what changes you've made since you checked it out.

    Other Examples:

    Check out a project into a certain directory

     $ cvs co -d scm_project ubcscm
     $ ls
     scm_project
     $
     

    Check out a working copy with a specific tag. Tag is used like a version number

     $ cvs co -r some_release ubcscm
     cvs checkout: Updating scm
     U myproj/README.txt