我可以创建一个预结帐CVS挂钩 [英] Can I create a pre-checkout cvs hook
问题描述
我想防止某些用户在我的CVS回购中检出某些代码模块。我已经实现了预提交挂钩,以防止这些相同的用户将代码 commit 提交给特定的模块,但是我看不到任何防止该模块的 checkout 的方法。
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.
有人知道用钩子防止CVS检出某些模块的方法吗?
Does anyone know of a way to prevent a CVS checkout of certain modules using hooks?
推荐答案
此线程提到了 cvs_acls 脚本,位于CVS的源代码发行版的 contrib / 目录中。
它可以满足您的需求。
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
TAG1 $ c $的结帐/更新/导出操作c>&
TAG2
应该失败。 (cvs co -r TAG1 mod_dir
)
Ex.
TAG1
,TAG2
,TAG3
,TAG4
,TAG5
checkout/update/export operation forTAG1
&TAG2
should fail. (cvs co -r TAG1 mod_dir
)
原始脚本仅用于防止提交,但也可以对其进行修补以防止检出。
此 CVS常见问题解答。
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.
这篇关于我可以创建一个预结帐CVS挂钩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!