[cvsnt] How to prevent a module checkout

Thomas Jensen cbm_silverflame at yahoo.com
Thu Oct 4 10:12:51 BST 2007

Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.

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? 

Please advice,




I believe you can control commit access by using the
commitinfo file, write a bat
file containing something like this:

preventcommit.bat :

@echo off

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 mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook