[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: enforcing comments when checking in

From: Mark D. Baushke
Subject: Re: enforcing comments when checking in
Date: Mon, 05 Jan 2004 09:46:49 -0800

Hash: SHA1

Purushotham Komaravolu <address@hidden> writes:

> Thanks for the prompt answer. Does it work with pserver??


> I have attached some test configuration files. Let me know if they r
> correct.

It is hard to determine that out-of-context.

Your verifymsg trigger will invoke the script


if and only if the file being committed is under the top-level 'tc'

Note: Your script is allowed to modify the log message by default and
does not actually require any change to the CVSROOT/config file.

Your rcsinfo trigger will put a copy of the file
/data/cvs/repository/CVSROOT/templates/test.template into CVS/Template
in the checked out tree of the 'tc' module to use as the template for a
'cvs commit' Note that this may be overridden by a user using either the
options -m 'log-message-string' or '-f logmsg-file' to cvs commit:

     cvs commit -m 'My log message goes here.'
     echo 'My log message goes here.' > mylog.txt
     cvs commit -F mylog.txt

The test.template contains four sections: 'Comment:', 'DefectId:',
'UserId:', and 'Reviewer:' 

Note however, that I would suggest that 'UserId:' may be confusing and
should really be provided by the commit itself as a part of the mapping
of your :pserver: userids to real userids. Your :pserver: should be
setting the environment variable CVS_USER for this purpose in your
verifymsg script if you really think you need it in the log message
itself instead of just in the author=userid part of the RCS file for a
particular commit.

I suggest you test your changes on a temporary repository to see if they
do what you expect them to do.

        Good luck,
        -- Mark
Version: GnuPG v1.2.3 (FreeBSD)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]