开发者

Can I create a pre-checkout cvs hook

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 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜