Tags:
view all tags
* Name: Ying Yin * Email: clevershadow@hotmail.com * Company Name: UBC * Country: Canada ---+++ __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) * 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* * http://www.cs.ubc.ca/ugrad/facilities/windows/cvs-setup.shtml * http://cvsbook.red-bean.com/cvsbook.html * Also see Eclipse help on CVS __Setting File Permission__ * setfacl __My Links__ * %TWIKIWEB%.WelcomeGuest to learn TWiki * Sandbox.WebHome web to try out TWiki * Sandbox.%TOPIC%Sandbox just for me __Personal Preferences (details in %TWIKIWEB%.TWikiVariables)__ * Show tool-tip topic info on mouse-over of %TWIKIWEB%.WikiWord links, on or off: (see details in %TWIKIWEB%.%WIKIPREFSTOPIC%) * 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 %TWIKIWEB%.WikiName) * Set ALLOWTOPICCHANGE = __Related topics__ * ChangePassword * %TWIKIWEB%.%WIKIPREFSTOPIC% has site-level preferences of %WIKITOOLNAME%. * %WEBPREFSTOPIC% has preferences of the %WIKITOOLNAME%.%WEB% web. * %MAINWEB%.%WIKIUSERSTOPIC% has a list of other TWiki users.
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
gif
team.gif
r1
manage
22.5 K
2007-05-29 - 00:18
ClevershadowhotmailCom
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r12
<
r11
<
r10
<
r9
<
r8
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r11 - 2007-06-14
-
TWikiGuest
Home
Site map
BETA web
Communications web
Faculty web
Imager web
LCI web
Main web
SPL web
Sandbox web
TWiki web
TestCases web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
Edit
Attach
Copyright © 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