本文介绍了如何使用Windows命令提示符下的CVS命令从头检出项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我进行了广泛搜索以解决问题,但是找不到任何解决方案。
要求:需要从HEAD检出ADM项目。
CVS服务器名称:cvs02dv( CVS安装在Windows上)
CVS服务器目录:c:\cvs\dev (可以使用eclipse或任何CVS客户端工具(如smartCVS)访问所有文件的位置)
要从HEAD检出的项目: ADM
使用Eclipse,我可以使用 pserver:user @ cvs02dv:c:\cvs\dev
我从以下站点下载了CVS客户端,未在D:\vinu中解压缩\installedSW\CVSClient目录。
用于从WINDO签出命令W命令行:
D:\vinu\installedSW\CVSClient> cvs -d:pserver: usera @ cvs02dv:c:\cvs\dev co ADM
错误:
cvs结帐:CVSROOT需要路径规范:
cvs结帐::(gserver | kserver | pserver) :[[[user] [:password] @] host [:[port]] / path
cvs checkout:[:(ext | server):] [[user] @] host [:] / path
cvs [结帐中止]:错误的CVSROOT:`:pserver:user @ cvs02dv:c:\cvs\dev'。
指定任何提示
解决方案最后,我能够解决问题,因为我怀疑问题是由于我使用的CVS Client造成的。
请不要按照我的问题所述在CVS客户端下使用
而不是从以下站点下载cvs客户端
- 使用上面的链接安装CVS Client,假设您安装在D:\CVSNT目录
-
在PATH变量中添加D:\CVSNT,即用CVSNT路径更新PATH环境变量(右键单击我的电脑->高级系统设置->环境变量-> Edit ../ New ..--> PATH)
-
打开命令提示符,以检查cvs客户端是否在路径中。输入cvs -version
C:\test> cvs -version
并发版本系统(CVSNT)2.5.03(Scorpio)Build 2151(客户端/服务器)
版权所有( c)1989-2001年Brian Berliner,David zoo zuhn,
Jeff Polk和其他作者
CVSNT版本(2005年11月14日)版权所有(c)1999-2005年Tony Hoyle等人
请参见http://www.cvsnt.org
March Hare Software Ltd.提供的商业支持和培训。
请参见http://www.march-hare.com/cvspro
CVSNT只能根据GNU通用公共许可证v2的条款进行复制,其中的
a副本可在CVS发行版中找到。
CVSNT应用程序API根据
GNU库(或次级)通用公共许可证的条款许可。
PuTTY提供的SSH连接:
PuTTY的版权是1997-2001 Simon Tatham。
部分版权所有,Robert de Bath,Joris van Rantwijk,Delian
Delchev,Andreas Schultz,Jeroen Massar,Wez Furlong,Nicolas Barry,
Justin Bradford和CORE SDI SA
请参阅http ://www.chiark.greenend.org.uk/~sgtatham/putty/
Perl兼容正则表达式库(PCRE)
版权所有(c)1997-2004剑桥大学。
根据BSD许可获得许可。
请参阅http://www.pcre.org/license.txt
指定--help选项以获取有关CVS
的更多信息pre>
- 执行命令:
cvs -z3 -f -d:pserver:username:password @ servername:2401:c:\cvs\dev -q checkout -d checkout IRM
I searched extensively to resolve my issue, However could not find any solution.
Requirement: Need to checkout ADM project from HEAD.
CVS server name: cvs02dv (CVS is installed on windows)
CVS server directory: c:\cvs\dev (The location were all the files can be accessed using eclipse or any CVS client tool like smartCVS)
Project to be checked out from HEAD: ADM
Using eclipse I can access the files using pserver:user@cvs02dv:c:\cvs\dev
I downloaded CVS client from below site, Unzipped in D:\vinu\installedSW\CVSClient directory.
http://ftp.gnu.org/non-gnu/cvs/binary/stable/x86-woe/cvs-1-11-22.zip
COMMAND USED TO CHECKOUT FROM WINDOW COMMAND LINE:
D:\vinu\installedSW\CVSClient>cvs -d:pserver:usera@cvs02dv:c:\cvs\dev co ADM
ERROR:
cvs checkout: CVSROOT requires a path spec:
cvs checkout: :(gserver|kserver|pserver):[[user][:password]@]host[:[port]]/path
cvs checkout: [:(ext|server):][[user]@]host[:]/path
cvs [checkout aborted]: Bad CVSROOT: `:pserver:user@cvs02dv:c:\cvs\dev'.
APPRECIATE ANY HINT
解决方案
Finally I am able to resolve the issue, As I suspected the issue was due to CVS Client which I had used.
Please do not use below CVS client as stated in my question
http://ftp.gnu.org/non-gnu/cvs/binary/stable/x86-woe/cvs-1-11-22.zip
Instead download cvs client from below site
http://www.cvsnt.org
- Install CVS Client using above link, Say you installed in D:\CVSNT directory
Add D:\CVSNT in PATH variable, i.e Update PATH Environment variable with CVSNT path (right click on My Computer -->Advanced System settings --> Environment Variables -> Edit../New.. --> PATH)
Open command prompt to check whether cvs client is in path. Enter cvs -version
C:\test>cvs -version
Concurrent Versions System (CVSNT) 2.5.03 (Scorpio) Build 2151 (client/server)
Copyright (c) 1989-2001 Brian Berliner, david d `zoo' zuhn,
Jeff Polk, and other authors
CVSNT version (Nov 14 2005) Copyright (c) 1999-2005 Tony Hoyle and others
see http://www.cvsnt.org
Commercial support and training provided by March Hare Software Ltd.
see http://www.march-hare.com/cvspro
CVSNT may be copied only under the terms of the GNU General Public License v2,
a copy of which can be found with the CVS distribution.
The CVSNT Application API is licensed under the terms of the
GNU Library (or Lesser) General Public License.
SSH connectivity provided by PuTTY:
PuTTY is copyright 1997-2001 Simon Tatham.
Portions copyright Robert de Bath, Joris van Rantwijk, Delian
Delchev, Andreas Schultz, Jeroen Massar, Wez Furlong, Nicolas Barry,
Justin Bradford, and CORE SDI S.A.
See http://www.chiark.greenend.org.uk/~sgtatham/putty/
Perl Compatible Regular Expression Library (PCRE)
Copyright (c) 1997-2004 University of Cambridge.
Licensed under the BSD license.
See http://www.pcre.org/license.txt
Specify the --help option for further information about CVS
- Execute command:
cvs -z3 -f -d :pserver:username:password@servername:2401:c:\cvs\dev -q checkout -d checkout IRM
这篇关于如何使用Windows命令提示符下的CVS命令从头检出项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!