cvs命令创建过程

1.按照网上大多数文档的说法,创建了D:/CVSServer

采用cvsnt。
============================================================================================
2.创建用户
D:/CVSServer>cvs passwd -h
passwd: invalid option -- h
Usage: cvs passwd [-a] [-x] [-X] [-r real_user] [-R] [-D domain] [username]
-a Add user
-x Disable user
-X Delete user
-r Alias username to real system user
-R Remove alias to real system user
-D Use domain password

D:CVSServer>cvs passwd -a qik
Adding user qik
New Password:
Verify Password:
cvs passwd: *WARNING* CVS user 'qik' will not be able to log in until they are a
liased to a valid system user.

D:CVSServer>cvs passwd -r user qik
Changing password for qik
New Password:
Verify Password:
============================================================================================
3.用CVS启动一个项目,添加文件

D:>cd hmsi

D:hmsi>dir
驱动器 D 中的卷是 DEV
卷的序列号是 10AC-CC2F

D:hmsi 的目录

2005-08-05 10:05 <DIR> .
2005-08-05 10:05 <DIR> ..
2005-07-25 19:48 1,404 .project
2005-07-26 15:08 6,090 .classpath
2005-08-04 10:27 286 build.properties
2005-05-20 16:45 3,046 build.xml
2005-08-03 10:30 293 .mymetadata
2005-08-03 16:01 407,805 .fbwarnings
2005-08-05 10:05 <DIR> .externalToolBuilders
2005-08-05 10:05 <DIR> .settings
6 个文件 418,924 字节
4 个目录 2,238,488,576 可用字节

D:hmsi>cvs import -m "Imported sources" hmsi hmsi start
N hmsi/.project
N hmsi/.classpath
N hmsi/build.properties
N hmsi/build.xml
N hmsi/.mymetadata
N hmsi/.fbwarnings
cvs import: Importing D:CVSServer/hmsi/.externalToolBuilders
N hmsi/.externalToolBuilders/XDoclet Builder.launch
cvs import: Importing D:CVSServer/hmsi/.settings
N hmsi/.settings/org.eclipse.core.resources.prefs
N hmsi/.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs

No conflicts created by this import

D:hmsi>cvs import -h
import: invalid option -- h
Usage: cvs import [-C] [-d] [-f] [-k subst] [-I ign] [-m msg] [-b branch]
[-W spec] [-n] repository [vendor-tag] [release-tags...]
-C Create CVS directories while importing.
-d Use the file's modification time as the time of import.
-f Overwrite existing release tags.
-k sub Set default RCS keyword substitution mode.
-I ign More files to ignore (! to reset, @ to skip .cvsignore).
-b bra Vendor branch id.
-m msg Log message.
-W spec Wrappers specification line (! to reset).
-n Don't create vendor branch or release tags.
(Specify the --help global option for a list of other help options)
============================================================================================
4.检查是否成功,删除原始版本,然后再check out出来
D:>cvs checkout hmsi
cvs checkout: Updating hmsi
U hmsi/.classpath
U hmsi/.fbwarnings
U hmsi/.mymetadata
U hmsi/.project
U hmsi/build.properties
U hmsi/build.xml
cvs checkout: Updating hmsi/.externalToolBuilders
U hmsi/.externalToolBuilders/XDoclet Builder.launch
cvs checkout: Updating hmsi/.settings
U hmsi/.settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs
U hmsi/.settings/org.eclipse.core.resources.prefs
============================================================================================
5.定义模块
简单的办法定义模块
C:>cvs checkout CVSROOT/modules
C:>cd CVSROOT
编辑文件modules,在最后一行增加
hmsi hmsi
提交模块的变更
C:>cvs commit -m "Added the tc module." modules
删除本地模块
C:>cd ..
C:>cvs release -d CVSROOT
============================================================================================
6.使用eclipse管理
在仓库项输入/CVSServer,然后即可连接上

 

7.使用wincvs管理

使用pserver登录后在remote->check out modules将程序check出来就可以看到了。

8.一点补充

用户名应该在操作系统中存在,如果在操作系统中不存在,则cvs的用户连接不上。

CVSROOT在使用cvs命令前应在环境变量中设置好,指向仓库的位置。

9.命令行登录。

C:/Documents and Settings/qik.SICP>set CVSROOT=:pserver:wonder@192.168.71.58:/cvs_r
oot

C:/Documents and Settings/qik.SICP>cvs login
Logging in to :pserver:wonder@192.168.71.58:2401:/cvs_root
CVS Password: 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值