Thanks a lot for your responses guys.

Could you clarify How can I run "cvs diff" command from one of the scripts with I 
included into loginfo file. It seems to me that "cvs diff" command works only when it 
is executed from working directory. 
Is it right ?
If yes , Does anybody know any workaround ? 

Thanks.
Uri 

-----Original Message-----
From: Jenn Vesperman [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 10:56 AM
To: Uri Abramov
Cc: [EMAIL PROTECTED]
Subject: Re: Is it possible to make CVS send email notification
withchanges introduced into committed file version


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.
[EMAIL PROTECTED]     http://anthill.echidna.id.au/~jenn/




_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to