将 CVS 存储库中的目录和分支更改为只读

发布于 2024-08-05 20:57:59 字数 149 浏览 3 评论 0原文

我们正在转向 SVN,并且需要防止提交到 CVS 存储库中的特定目录/模块。这样做的最佳方法是什么?

我目前已将此目录的文件系统权限设置为只读,并且目前似乎可以完成这项工作 - 但有“cvs”方法可以做到这一点吗?

另外,我可以将特定分支设置为只读吗?

We are moving to SVN and need to prevent commits to specific directories/modules within the CVS repository. What is the best way of doing this?

I have currently set the filesystem permissions for this directory to read-only and seems to do the job for now - but is there a 'cvs' way of doing this?

Also, can I make a specific branch read-only?

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

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

发布评论

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

评论(2

始于初秋 2024-08-12 20:57:59

您可以使用 cvs_acls,它随 CVS 发行版一起提供。它允许您定义提交的分支级别权限。

You can use cvs_acls, which comes with the CVS distribution. It allows you to define branch-level permissions for commits.

思慕 2024-08-12 20:57:59

您可以通过创建预提交挂钩来禁止在分支上签入来实现此目的,例如请参阅 此处

[根据雷的评论进行编辑]

You may be able to achieve this by creating a pre-commit hook to disallow checkins on the branch, eg see here

[edited following Ray's comment]

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