Setting Up and Using CVS

You can access CVS repository in many ways.

For Eclipse IDE (http://www.eclipse.org):

For checking out project

  • Click File → new → project → CVS → Checkout Projects from CVS
  • If you're running it the first time a setup window will pop up. Select Create a new repository location
  • These are the information needed to fill in the Repository Location Information form:
    1. enter the host: cascade.cs.ubc.ca
    2. repository path: /ubc/cs/home/y/yingyin/GanttChart
    3. your CS Unix userid
    4. your CS password
    5. select connection type as "extssh" and use default port
    6. click Finish
  • Choose "Use an existing module"
  • Select a module (schedulingProblem). Don't select CVSROOT. Then click Next until Finish.
  • Only need to check out a project once

Normal Usage after Checking out the Project

Right click on the project and choose Team, then

  • Commit--once you have modified a project, you can check it back in
  • Synchronise with repository--used for synchronising your project version with CVS
  • The screen will look like the one in screen shot→(see attachment team.gif)

For sharing project, adding a new project to repository

  1. Create/Use existing project, and right click on the project name
  2. Select Team > Share Project
  3. Choose CVS as the repository type and then click Next
  4. Select "Create a new repository location"
  5. Fill in the repository location information as menstioned above
  6. Don't put project under CVSROOT directory

For Unix Commands:

Invoking CVS

The format of a CVS invocation is:

$ cvs <command>

where command can be: update, commit, import etc. For example, you can use

$ cvs update

Accessing A Repository

Before you can do anything, you must tell CVS the location of the repository you'll be accessing. This isn't a concern if you already have a working copy checked out - any working copy knows what repository it came from, so CVS can automatically deduce the repository for a given working copy. So for the first time, you need to tell CVS explicitly where to go. This is done with the -d global option followed by the path to the repository. For example:

$ cvs -d /ubc/cs/home/y/yingyin/GanttChart <command>

You can also change the environment variable CVSROOT to avoid typing -d <repository location>:

  • edit ~/csh_init/environment with a text editor
  • add the following line: setenv CVSROOT <repository location>
  • logout and log back in.

Some useful links on CVS

Setting File Permission

  • setfacl

My Links

Personal Preferences (details in TWikiVariables)

  • Show tool-tip topic info on mouse-over of WikiWord links, on or off: (see details in TWikiPreferences)
    • Set LINKTOOLTIPINFO = off
  • Horizontal size of text edit box:
    • Set EDITBOXWIDTH = 70
  • Vertical size of text edit box:
    • Set EDITBOXHEIGHT = 22
  • Style of text edit box. width: 99% for full window width (default), width: auto to disable.
    • Set EDITBOXSTYLE = width: 99%
  • Optionally write protect your home page: (set it to your WikiName)
    • Set ALLOWTOPICCHANGE =

Related topics

Topic attachments
I Attachment History Action Size Date Who Comment
GIFgif team.gif r1 manage 22.5 K 2007-05-29 - 00:18 ClevershadowhotmailCom  

This topic: Main > TWikiUsers > YingYin
Topic revision: r10 - 2007-06-14 - TWikiGuest
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback