info-cvs
[Top][All Lists]
Advanced

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

RE: enabling log.pl


From: Matt Doar
Subject: RE: enabling log.pl
Date: Fri, 11 Feb 2005 10:08:05 -0800

I recommend using activitymail from https://activitymail.cvshome.org/
instead of log.pl, since it has lots more options. I had to tweak it a
small amount for cvs 1.12.9 if you're that current.

Our local configuration is:

In commitinfo:
# Accumulate changes on a per-change basis for commit email
ALL /home/cvs/CVSROOT/activitymail -l %r/%p %s

In loginfo:
# By default, send all notifications to the cvscommitlog alias
DEFAULT /home/cvs/CVSROOT/activitymail -Q -c -f %1{sVv} -m "CVS Commit
by ${USER} in" -p -V -H -w http://eng.example.com/cgi-bin/viewcvs.cgi/
-u address@hidden -r address@hidden -t
address@hidden

Works very nicely for us.

~Matt 

> -----Original Message-----
> From: address@hidden 
> [mailto:address@hidden 
> On Behalf Of Parvinder Singh Arora
> Sent: Friday, February 11, 2005 7:37 AM
> To: Todd Denniston
> Cc: address@hidden
> Subject: Re: enabling log.pl
> 
> Also i need to get rid of the message "In directory........"
> 
> 
> On Fri, 11 Feb 2005 10:37:00 -0500, Parvinder Singh Arora
> <address@hidden> wrote:
> > This is the mail i am getting right now when someone does a commit
> > 
> > Date:   Friday February 11, 2005 @ 10:53
> > Author: rwhittle
> > 
> > Fri Feb 11 10:53:16 EST 2005
> > Update of 
> /usr/local/cvsroot/ds/src/java/com/scentric/destiny/application/login
> > In directory 
> scentral:/tmp/cvs-serv19221/src/java/com/scentric/destiny/appl
> ication/login
> > 
> > Modified Files:
> >       Tag: SC_20050114_January_Demo_Branch
> >         SCLoginDialog.java
> > Log Message:
> > Updated the Tomsawyer libraries so the january demo will run
> > 
> > I want the older and the new version also to be given. For 
> that i need
> > to modify my script. Is there any existing script to do that ?
> > 
> > ~Parvinder
> > 
> > 
> > On Fri, 11 Feb 2005 10:10:24 -0500, Parvinder Singh Arora
> > <address@hidden> wrote:
> > > ALL (echo ""; date; cat) | 
> \/usr/local/cvsroot/CVSROOT/log -u $USER -s
> > > \-m address@hidden
> > >
> > > I think what above stuff is doing is sending the date and the log
> > > message (cat) to the log.pl perl script. Dont i need to add 'cat'
> > > there to send the entire cvs message to log.pl ?
> > >
> > > BTW i figured out what was wrong. I was not passing the 
> the log file
> > > using -f option which is why it use kick me saying could 
> not open ():
> > > no such file or directory. I think it is mandatory to pass the log
> > > file using -f option
> > >
> > > Thanks
> > > ~Parvinder
> > >
> > >
> > > On Fri, 11 Feb 2005 09:30:04 -0500, Todd Denniston
> > > <address@hidden> wrote:
> > > > Parvinder Singh Arora wrote:
> > > > >
> > > > > This is what is the entry in my loginfo file
> > > > >
> > > > > ALL (echo ""; date; cat) | \
> > > > > /usr/local/cvsroot/CVSROOT/log -u $USER -s \
> > > > > -m address@hidden
> > > > >
> > > >
> > > > [ED. I broke the lines above with "\"s to make it clear 
> this is expected to
> > > > be one line in the file]
> > > >
> > > > What is it you intended the `(echo ""; date; cat)` to do?
> > > > I tried:
> > > > (echo ""; date; cat) |less
> > > > and found it annoying in an interactive environment, as 
> cat does not exit.
> > > > `(echo ""; date)` might be useful, though.
> > > >
> > > > also I am assuming that in your loginfo, the line you 
> sent is all on ONE
> > > > line.
> > > >
> > > > > And when i try to do some commit this is what i get :(
> > > > >
> > > > > address@hidden CVSROOT]$ cvs commit temp.txt
> > > > > Checking in temp.txt;
> > > > > /usr/local/cvsroot/CVSROOT/temp.txt,v  <--  temp.txt
> > > > > new revision: 1.10; previous revision: 1.9
> > > > > done
> > > > > Could not open(): No such file or directory
> > > > > sh: line 1: : command not found
> > > > > cvs server: Rebuilding administrative file database
> > > > >
> > > > > ~Parvinder
> > > > Is the /usr/local/cvsroot/CVSROOT/log script your own 
> or one of the ones on
> > > > the net? (a net one we might be able to look at the 
> source and guess what is
> > > > going wrong.)
> > > > Just from the name difference in your subject and here, 
> I would expect the
> > > > problem might be that sh is trying to interpret a perl 
> script and failing.
> > > > You might check the first line of 
> /usr/local/cvsroot/CVSROOT/log and verify
> > > > the first line is of the type "#! /something/bin/perl", 
> if it is then verify
> > > > that /something/bin/perl will execute (or change it to 
> point to the real
> > > > perl on your system).
> > > >
> > > > --
> > > > Todd Denniston
> > > > Crane Division, Naval Surface Warfare Center (NSWC Crane)
> > > > Harnessing the Power of Technology for the Warfighter
> > > >
> > >
> > > --
> > > Thanks & Regards
> > > ~Parvinder
> > >
> > 
> > --
> > Thanks & Regards
> > ~Parvinder
> > 
> 
> 
> -- 
> Thanks & Regards
> ~Parvinder
> 
> 
> _______________________________________________
> Info-cvs mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/info-cvs
> 




reply via email to

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