The log_accum.pl script requires a companion script executed by the
commitinfo
trigger mechanism.  The necessary script is commit_prep.pl (also included in
the contrib directory with log_accum.pl.  If the commit_prep.pl script is
given the -r command line option, it will record the last directory involved
in a multi-directory commit in the file /tmp/#cvs.lastdir.<process_id>.
This file is read by log_accum.pl to know when it has finished processing
all of the files in the commit.

The format of the commitinfo file is the same as the loginfo file, line
oriented where each line consists of

<regular_exp><whitespace><command_line>

The regular_exp should be the same as what's in your loginfo file.  The
command_line should be:

/path/to/commit_prep.pl -r

Hope this helps.
- Tim Taylor

> -----Original Message-----
> From: Roland Jesse [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 13, 2000 3:07 PM
> To: CVS mailing list
> Subject: Re: Wrong "Author" entry when using log[_accum].pl
> 
> 
> This might help to dig into it.
> 
> I wrote:
> 
> > Any ideas, then, why the following line in loginfo does not send out
> > any email?
> > 
> >   DEFAULT         $CVSROOT/CVSROOT/log_accum.pl -u $USER -m jesse %s
> 
> When performing a check in cvs (actually log_accum.pl does) complains
> after the last file with:
> 
>         Cannot open file /tmp/#cvs.lastdir.523.
> 
> The check in and all is successfull, but log_accum.pl fails to send
> out the email.
> 
> As the file really does not exist on the cvs server machine, the
> question might be now, why it is not created. Looks to me like either
> "append_names_to_file" or "read_line" might be responsible for
> that. But I still might be wrong with that.
> 
> Anybody around with some more insight?
> 
>         Roland
> 

Reply via email to