info-cvs
[Top][All Lists]
Advanced

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

Re: Is it possible to make CVS send email notification with changes intr


From: Jenn Vesperman
Subject: Re: Is it possible to make CVS send email notification with changes introduced into committed file version
Date: 06 Jun 2003 00:56:13 +1000

On Thu, 2003-06-05 at 22:38, Uri Abramov wrote:
> Hi, 
> 
> I have two questions :
> 
> 1. Is it possible to add new administrative file under CVSROOT in such way 
> that it would be treated by cvs as it treads it's native administrative 
> files. I mean always keep in repository  file,v and file. If it' possible how 
> can I do it ?

Yes. There's a file called .. I think it's called checkoutlist. One
moment...

... yes. Checkoutlist. Look for the node 'checkoutlist' in info cvs,
it's under 'administrative files'.

Simply add the filename (and maybe path from CVSROOT) in the
'checkoutlist' file in CVSROOT, and it will be treated as an
administrative file.


> 2. I'd like CVS send email to every developer who works on certain project 
> when someone from them remove, add or change file, and more than that I'd 
> like to send in the email the diff between old and new versions of a file. 
> Does anybody knows how it can be done?
> If yes How ?

You can use the cvs watch, or the 'loginfo' file, to do this during
commits. See the 'notify' administrative file and the 'watch' commands
in 'info cvs', or the 'loginfo' administrative file.

You would include 'cvs diff' as part of the command run from 'notify' or
'loginfo'. Pipe the results of the diff into an email, and send the
email. (Make sure you background the command, to prevent deadlocks.)




Jenn V.
-- 
    "Do you ever wonder if there's a whole section of geek culture 
                you miss out on by being a geek?" - Dancer.
   My book 'Essential CVS': published by O'Reilly in June 2003.
address@hidden     http://anthill.echidna.id.au/~jenn/






reply via email to

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