Tags:
create new tag
view all tags

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
  • Note: the Java compiler compliance for the project is Java 6.0

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)
  • Before making changes to the code, it is good to synchronise with the repository first.

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 path>:

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

To remotely access the repository, specify a remote repository as opposed to a local one, which means using 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.

CVS supports the ext method (which uses an external connection program, such as rsh or ssh)which is probably the most commonly used. So on the client machine:

$ setenv CVS_RSH ssh; export CVS_RSH

$ cvs -d :ext:jrandom@cascade.cs.ubc.ca:<repository path> <command>

The first line sets the CVS_RSH environment variable to ssh, which tells CVS to use the ssh program to connect. The second line can be any CVS command; you will be prompted for your password so CVS can log into the server.

The rest of the examples assumes that you've set CVSROOT to point to your repository, so they will not show the -d option. If you need to access many different repositories, you should not set CVSROOT and should just use -d <repository path> when you need to specify the repository.

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  
Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r12 - 2007-06-17 - TWikiGuest
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback