试图提交cvs - 没有这样的文件或目录

时间:2014-05-15 21:06:18

标签: batch-file command commit cvs

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

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

1 个答案:

答案 0 :(得分:0)

我认为 cvs commit 没有常见的 -d 选项。

要提交更新的文件,您可以尝试:

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