使用 CVS 在子目录中添加新目录

Add new directory within subdirectory using CVS

如何使用 CVS 存储库在子目录中添加新目录?

cvs add [new_dir_name]

只是在版本库的第一级创建了一个新目录,而进入我感兴趣的子目录并添加不起作用。 i.e.L

cd  repository/directory
cvs add [new_dir_name]

产生错误:

cvs [add aborted]: there is no version here; do 'cvs checkout' first

(尽管如此,当我检查存储库时仍然会出现此错误消息)。

知道怎么做吗?

cd  repository
mkdir a
mkdir a/b
mdkdir a/b/c

cvs update -d a/b/c ( not sure if in one go works, if not, try one after another) 

选项-d 将创建丢失的目录。这同样适用于添加,如果你之后 cvs 更新并承诺坚持它。

我个人会使用 git 或 svn - 从 ~10 年前的 cvs 更改而来

您必须按降序将路径中的每个目录添加到服务器上不存在的最终子目录。

例如...

如果你在你的 cvs 存储库的根目录下,下面的操作应该有效。

mkdir -p dirname/subdirname
cvs add dirname
cvs add dirname/subdirname

交替/等效

mkdir -p dirname/subdirname
cvs add dirname
cd dirname
cvs add subdirname