[cvsnt] How to inform user of empty log message during commit

Bo Berglund Bo.Berglund at system3r.se
Fri Nov 29 10:56:54 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.


OK,
you want an example. In this case the loginfo file has this command that triggers
my program when a commit is done:

ALL C:\Bosse\Projects\CVSMailer\CVSMailer.exe -l $USER $CVSROOT %{sVv}

The result is this (command line data):
Parameter 1: -l
Parameter 2: bob
Parameter 3: /test
Parameter 4: AdamTest/Doc readme2.txt,NONE,1.1.2.1 Test\ file\ with\ spaces.txt,1.5,1.6 readme.txt,1.5.2.1,1.5.2.2

CVS message on stdin:
Update of C:/CVSREPO/test/AdamTest/Doc
In directory Welebobe:C:\CVSTEMP\cvs-serv2620

Modified Files:
	Test file with spaces.txt 
      Tag: BranchTestStart
	readme.txt 
Added Files:
      Tag: BranchTestStart
	readme2.txt 
Log Message:
This commit contains files both on trunk and on a branch as well as a newly added file. Let's see what CVS sends now...


Obviously this is done while I am testing my mailing application but you see approximately what is going on here.

/Bo

-----Original Message-----
From: Nicholas Yue [mailto:nicholas.y at NOSPAM.immersivetechnologies.com]
Sent: den 29 november 2002 09:44
To: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
Subject: Re: [cvsnt] How to inform user of empty log message during
commit


"Bo Berglund" <Bo.Berglund at system3r.se> wrote in message
news:mailman.1038476328.7722.cvsnt at cvsnt.org...
> The CVSROOT/commitinfo script handles checks before the commit is
accepted.
> If the commitinfo process returns a nonzero value then the commit
> is aborted.
> Do something omething like this in the commitinfo processor:
> 1. Read the commitinfo data, in your case especially the log message

    How does the commitinfo data look like?

    If commitinfo is a script, is the data being passed in as arguments? How
many arguments?

    Any example of the data?



_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs




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