2008年4月21日 星期一

cvs (WinCVS) client manual command (include setting the various enviroment variables)

cvs -d :ext:user_name@cvs_server:/repository/path cvs_commands

// checkout bugzilla cvs mainline
# cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:2401/cvsroot checkout -P -d bugzilla Bugzilla

// checkout bugzilla cvs Bugzilla_Stable branch
# cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:2401/cvsroot checkout -P -d bugzilla -rBugzilla_Stable Bugzilla

Another method that we can login once, and then execute all the cvs commands directly.

The following example is captured from the
http://www.horde.org/source/using.php

Anonymous CVS

Anonymous CVS access is available using pserver. To log in to the server, use the following commands:


sh, ksh, bash, zsh:

export CVSROOT=:pserver:cvsread@anoncvs.horde.org:/repository
CVSROOT=/path/to/cvsroot; export CVSROOT # Bourne syntax

csh, tcsh:

setenv CVSROOT :pserver:cvsread@anoncvs.horde.org:/repository
setenv CVSROOT /path/to/cvsroot          # C-shell syntax


csh: % setenv CVSROOT ":pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot"
win: > SET CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot


then for all:

cvs login
(password: 'horde')


Use CVS/WinCVS to chekout project

# cvs -d :ssh:UserName@CVSServerIP:CVSPort:/home/cvs checkout -P -- ProjectName

沒有留言: