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.
Doe开发者_JAVA百科s anyone know of a way to prevent a CVS checkout of certain modules using hooks?
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 forTAG1
&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.
精彩评论