[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: restated questions about watch/notify
From: |
Matthew M. Ogilvie |
Subject: |
Re: restated questions about watch/notify |
Date: |
Mon, 16 Sep 2002 20:31:17 -0600 |
User-agent: |
Mutt/1.2.5i |
> Message: 1
> Date: Mon, 16 Sep 2002 10:03:15 +0100 (BST)
> From: Rob Clack <address@hidden>
> To: address@hidden
> Subject: restated questions about watch/notify
>
>
> OK, I understand better about CVS keywords now. However, I still have
> questions about CVS watch. I've left my original text attached to this.
>
> I don't want email whenever anyone edits any watched file, just the
> following: if I edit a file, then Fred edits it, I want to know and I
> want him to know that I'm already editing it. That's what my perl script
> was supposed to achieve.
>
> Ideally, someone can tell me how to set up CVS to do this, then I can
> throw the perl script away.
>
> If not, I assume I trigger the perl script via the notify file, so is
> there a way to pass the name of the relevant file in as a parameter?
>
> Rob
>
> ------------------------------------------------------------------------
> | Rob Clack Acedb Development, Informatics Group, |
> | Wellcome Trust Sanger Institute, |
> | Wellcome Trust Genome Campus, |
> | Hinxton, Cambridge, CB10 1SA UK |
> | |
> | email: address@hidden Tel: +44-1223-494780 Fax: +44-1223-494919 |
> ------------------------------------------------------------------------
I beleive the filename is in the message that is sent in via stdin
to the script. A quick regular expression could probably extract
it.
If you want an example of a working script you can customize, you
could look at doNotify, available at:
http://cvsenhancements.sourceforge.net/
You might also want accumMail (same location).
--
Matthew Ogilvie address@hidden