Can I create a pre-checkout cvs hook
Asked Answered
W

1

2

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?

Wheatear answered 4/11, 2010 at 0:15 Comment(0)
A
1

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.

Areola answered 5/11, 2010 at 7:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.