【问题标题】:How to checkout project from head using CVS command using windows command prompt如何使用 Windows 命令提示符使用 CVS 命令从头部签出项目
【发布时间】:2018-01-27 21:02:02
【问题描述】:

我进行了广泛搜索以解决我的问题,但是找不到任何解决方案。

要求:需要从 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 目录。

http://ftp.gnu.org/non-gnu/cvs/binary/stable/x86-woe/cvs-1-11-22.zip

用于从窗口命令行结帐的命令:

D:\vinu\installedSW\CVSClient>cvs -d:pserver:usera@cvs02dv:c:\cvs\dev co ADM

错误:

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'.

感谢任何提示

【问题讨论】:

  • 支持详细告诉我们您尝试了什么、收到了什么信息等。
  • 尝试使用 D:\vinu\installedSW\CVSClient>cvs -d:pserver:vrdornala@cecvs02dv:c:\\cvs\\dev co ADM 或使用 D:\vinu\installedSW\CVSClient> cvs -d:pserver:vrdornala@cecvs02dv:c:/cvs/dev co ADM
  • @JuanZe 我试过了,还是不行。

标签: cvs windows-console vcs-checkout


【解决方案1】:

我终于能够解决这个问题,因为我怀疑这个问题是由于我使用的 CVS 客户端造成的。

请不要按照我的问题中所述使用以下 CVS 客户端

http://ftp.gnu.org/non-gnu/cvs/binary/stable/x86-woe/cvs-1-11-22.zip

改为从以下站点下载 cvs 客户端

http://www.cvsnt.org

  1. 使用上面的链接安装 CVS 客户端,假设你安装在 D:\CVSNT 目录中
  2. 在 PATH 变量中添加 D:\CVSNT,即使用 CVSNT 路径更新 PATH 环境变量(右键单击我的电脑 --> 高级系统设置 --> 环境变量 -> 编辑../新建.. - -> 路径)

  3. 打开命令提示符检查 cvs 客户端是否在路径中。输入 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
  1. 执行命令:

cvs -z3 -f -d :pserver:username:password@servername:2401:c:\cvs\dev -q checkout -d checkout IRM

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-25
    • 2014-04-05
    • 1970-01-01
    • 2018-02-15
    • 2018-02-13
    • 2014-02-08
    相关资源
    最近更新 更多