我可以创建预结账 cvs 挂钩吗

发布于 2024-10-01 01:24:49 字数 125 浏览 0 评论 0原文

我想阻止某些用户查看我的 cvs 存储库中的某些代码模块。我已经实现了预提交挂钩,可以防止这些相同的用户将代码提交到特定模块,但我没有看到任何方法来阻止同一模块的签出。

有谁知道如何使用钩子来防止 CVS 检出某些模块?

I would like to prevent certain users from checking out certain modules of code in my cvs repo. I have already implemented pre-commit hooks that prevent those same users from committing code to particular module, but I don't see any way to prevent a checkout of that same module.

Does anyone know of a way to prevent a CVS checkout of certain modules using hooks?

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

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

发布评论

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

评论(1

柠檬色的秋千 2024-10-08 01:24:49

此帖子提到了cvs_acls 脚本< /a>,在CVS的源代码分发中,在contrib/目录中。
它可以做你正在寻找的事情。

例如。 TAG1TAG2TAG3TAG4TAG5
TAG1 的签出/更新/导出操作TAG2 应该会失败。 (cvs co -r TAG1 mod_dir

原始脚本仅用于防止提交,但也可以对其进行修补以防止签出。
更多替代方案在此CVS 常见问题解答

This thread mentions the cvs_acls script, in the source code distribution of CVS, in the contrib/ directory.
It could do what you are looking for.

Ex. TAG1, TAG2, TAG3, TAG4, TAG5
checkout/update/export operation for TAG1 & TAG2 should fail. (cvs co -r TAG1 mod_dir)

The original script is only for preventing commit, but it can be patched to prevent checkout as well.
More alternatives are presented in this CVS FAQ.

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