[cvsnt] How to prevent a module checkout
cbm_silverflame at yahoo.com
Thu Oct 4 10:12:51 BST 2007
Kamath, Sujeeth wrote:
Hello CVSNT experts.
I have a module called "Mod1". Due to some maintenance
issues, I would
like to prevent users from check out and checkin this
module to and from
CVS. Is it possible?, Any one out there having an
experience to share?
I believe you can control commit access by using the
commitinfo file, write a bat
file containing something like this:
if %1 == %3 goto denycommit
echo Commit on %1 allowed for user %2!
echo Commit on %1 not allowed for user %2!
then call it with the following parameters in the
commitinfo administrative file (located in cvsroot):
ALL c:/preventcommit.bat repopath $USER
If this will effectively block both checkin and
for the particular module, I'm not sure. But it's
worth a try.
I experienced something odd with the premodule file,
it apparently ignores the # sign if it contains an
executeable string after the sign. Such as :
# ALL c:\\winnt\\system32\\cmd.exe /c C:/modchk.bat %c
Skal du købe ny bil? Sammenlign priser på brugte biler med Kelkoo og find et godt tilbud! - Se mere her http://dk.yahoo.com/r/pat/mmb
More information about the cvsnt