从具有空目录的分支创建 CVS 视图

发布于 2024-07-11 01:40:54 字数 231 浏览 8 评论 0原文

我正在使用 cvs -tag -b "abcdefg" 命令在我的 CVS 中标记分支。 我的 CSV 存储库的每个文件夹中都有一个空目录“obj”。

每当我使用命令 cvs co -r "abcdefg" REPO 时,我都会得到一个完整的存储库,减去空文件夹。 我也尝试使用 -f 选项,但它不起作用。 有什么方法可以摆脱这种情况呢?

I am using cvs -tag -b "abcdefg" command to tag-branch in my CVS. My CSV repo has an empty directory "obj" in every folder.

Whenever I use the command cvs co -r "abcdefg" REPO, I get a complete repo minus the empty folders. I tried using -f option too but it did not work. What is the way to get out of this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

七禾 2024-07-18 01:40:54

CVS 中的目录不以任何方式进行版本控制。 当您在 CVS 中使用分支标签进行签出时,它仅签出具有与请求的分支标签匹配的文件的目录。 由于“obj”目录都是空的,CVS 不知道要检查它们。 当您运行更新时,它将“修复”工作副本的状态并获取空目录。

Directories are not versioned in any way in CVS. When you do a checkout using a branch tag in CVS it only checks out directories that have files matching the requested branch tag. Since the "obj" directories are all empty CVS doesn't know to check them out. When you run update it will "fix" the state of your working copy and get the empty directories.

空心空情空意 2024-07-18 01:40:54

除非您指定 -P (修剪空目录),否则您应该自动获取所有空目录。

您是否检查过您是否有一个 .cvsrc 文件,该文件指定了类似的内容

co -P

它应该位于您的 $HOME 目录中

如果不是这种情况,问题是您的标签是否设置在空目录上?
您进行标记操作时是否检查了空目录?
标记操作仅标记沙箱中的内容,要标记存储库中的所有内容,请使用 rtag。

Unless you specify -P (prune empty directories) you should automatically get all empty directories.

Have you checked if you maybe have a .cvsrc file which specifies something like

co -P

It should be located in your $HOME directory

If that is not the case, the question is if your tag is set on the empty directoies?
Did you have the empty directories checked out when you did the tag operation?
The tag operation only tags the stuff you have in your sandbox, to tag everything in the repository do an rtag instead.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文