[cvsnt] Re: Using script in CVSNT

Bo Berglund bo.berglund at telia.com
Tue Dec 24 11:27:46 GMT 2002


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 Tue, 24 Dec 2002 17:11:51 +0800, "Shepherd" <chgg at shinewaysoft.com>
wrote:

>Could I use a script in CVSNT server? For example, I want to do a check on
>each checkin to specify which branch it should be checked in.
>If could, where should I put the script and how to run it?
>Thanks.
>
>Shepherd
>
The script that checks the data *before* commit is called
CVSROOT/Commitinfo
The usage is described in the Cederquist manual and in short form in
the script file put there on initialization. THis scriptfile is only
containing commented lines, you have to check out CVSROOT, then edit
the commitinfo script file then commit it right back.
The second item (space delimited) on the script line is the program
you want to run.
This program should do your checking and if it detects an error it can
print a message to standard out (will be visible to the user doing the
commit) and exit with an exit code > 0. This causes cvs to abort the
commit altogether.



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