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?

Trent Davies
  • 3,309
  • 3
  • 17
  • 7

1 Answers1

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.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250