[cvsnt] Re: Removing delete access for a repository

Bo Berglund bo.berglund at telia.com
Thu Jan 5 09:36:18 GMT 2006


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.


On Thu, 5 Jan 2006 13:55:24 +0530, Kommaraju Srinivas
<kommaraju.srinivas at gmail.com> wrote:

>Hi,
> My intention is  to know how to block cvs remove command.
>

Then use the CVSROOT/precommand script and check if the command issued
is valid.

ALL <your check program> %u %c

will call the check program with two arguments:
%u will expand to the user name
%c will expand to the command name

If you find that %u is a user not allowed to remove files and %c is
"remove" then you can exit your program with a non-zero exit code and
the operation will fail.
You can also send a message to the user by writing to STDOUT from your
program, this will show up on the user screen.


/Bo
(Bo Berglund, developer in Sweden)



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook