Modelling clouds and climate

Using the CVS Server

Path: Contents > About CVS > Using the CVS Server
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
  • Note: use the information in this section only if you are not locally connected to cvs repository on roc. Otherwise, if you say have and account on Brant, to set up cvs, look into the previous section Setting up CVS.

    Using the CVS Server

    If your repository were on the local machine in /nfs/roc/home/cvs you would use:
     $ cvs -d /nfs/roc/home/cvs command 

    -d option overrides $CVSROOT as the root of the CVS tree with the given root.

    In many cases, however, the repository is on another machine and must therefore be reached over the network. Repository machine will be referred to as "the server".

    To specify a remote repository as opposed to a local one, you just use a longer repository path. You first name the access method, delimited on each side by colons, followed by the username and the server name (joined with an @ sign), another separator colon, and finally the path to the repository directory on the server.

    To check out the ubcscm, the only thing you have to change is jrandom@eos.ubc.ca to your own user name at that server, or to any other way your account has been set up

    Ext

    This is one of the access methods that can be used and is more secure than the others

    First set the environment variables:

     $ export CVS_RSH=ssh
     $ export CVSROOT=:ext:jrandom@thrush.eos.ubc.ca:/nfs/roc/home/cvs
     or
     $ setenv CVS_RSH ssh
     $ setenv CVSROOT :ext:jrandom@thrush.eos.ubc.ca:/nfs/roc/home/cvs
     depending on the unix shell you use
     

    Now you can run other CVS commands using the regular command-line syntax:

    (see General patterns for more inforamtion on commands)

    Each time you do so, cvs will prompt you for you server account password. So to checkout a ubcscm project:

     $ cvs co ubcscm
     CVS password: (enter your CVS password here)
     

    Another way to do all this is to without seting the environmet variables, is to specify the repository each time:

     $ cvs -d ":ext:jrandom@eos.ubc.ca:/nfs/roc/home/cvs" command
     

    Pserver

    Another access method that can be used. It stands for "password-authenticated server". Here, you have to login to the cvs server first, and then the rest is just like regular cvs routines

    First set the environment variable:

     $ export CVSROOT=:pserver:jrandom@eos.ubc.ca:/nfs/roc/home/cvs
     or
     $ setenv CVSROOT :pserver:jrandom@eos.ubc.ca:/nfs/roc/home/cvs
     depending on the unix shell you use
     

    The next step is to log in to jrandom@ocgy.ubc.ca. This verifies that you are authorized to work with this repository. It prompts for a password, then contacts the server to verify the password. Following Unix custom, cvs login returns silently if the login succeeds; it shows an error message if it fails (for instance, because the password is incorrect).

     $ cvs login
     CVS password: (enter your CVS password here)
     

    You only have to log in once from your local machine to a given CVS server. Of course, you can rerun cvs login anytime if the password changes.

    Now you can run other CVS commands using the same command-line syntax: (see General patterns for more inforamtion on commands)

    $ cvs command

    Again, to do all this is without seting the environmet variables, you can specify the repository each time:

     $ cvs -d ":pserver:jrandom@eos.ubc.ca:/nfs/roc/home/cvs" command