【问题标题】:Trying to commit to cvs - No such file or directory试图提交到 cvs - 没有这样的文件或目录
【发布时间】:2014-05-15 21:06:17
【问题描述】:

我有一个 bat 文件,我在其中从 cvs 存储库中检出一个文件,运行一个 java 程序来更新文件,然后提交回存储库。我的提交命令遇到了一些问题。有人可以帮忙吗?

path=%path%;c:/cvsnt


cvs -d :ssh:nsbuild:xxxx@cvs1.xxxx.corpintra.net:/cvs login

cvs -d :ssh:nsbuild:xxxx@cvs1.xxxx.corpintra.net:/cvs checkout BGNMigration/JNLP/config/dev/com/xxxx/jnlp/file/xxxx.jnlp


javac UpdateVersions.java
java UpdateVersions


cvs -d /BGNMigration/JNLP/config/dev/com/xxxx/jnlp/file commit -m "Latest build" xxxx.jnlp 

输出:

C:\Users\JADOYLE\Desktop\Docs\updateBat>cvs -d /BGNMigration/JNLP/config/dev/com/xxxx/jnlp/file commit -m "Latest build" xxxx.jnlp
cvs [commit aborted]: /BGNMigration/JNLP/config/dev/com/xxxx/jnlp/file/CVSROOT: No such file or directory

【问题讨论】:

  • 您的斜线在第一行中的方向错误。在 Windows 中,您使用 ` in paths, not /. First line should be path=%path%;c:\cvsnt`。
  • 我将第一行更改为 path=%path%;c:\cvsnt` 但仍然收到相同的输出。为什么它会在我的提交路径末尾抛出 /CVSROOT?

标签: batch-file command commit cvs


【解决方案1】:

我认为,cvs commit 没有通用的 -d 选项。

要提交更新的文件,你可以试试这个:

cd  BGNMigration\JNLP\config\dev\com\xxxx\jnlp\file
cvs commit -m "Latest build" xxxx.jnlp

【讨论】:

    猜你喜欢
    • 2017-10-11
    • 1970-01-01
    • 1970-01-01
    • 2021-06-24
    • 2015-06-24
    • 1970-01-01
    • 2015-02-20
    相关资源
    最近更新 更多