info-cvs
[Top][All Lists]
Advanced

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

restated questions about watch/notify


From: Rob Clack
Subject: restated questions about watch/notify
Date: Mon, 16 Sep 2002 10:03:15 +0100 (BST)

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    |
 ------------------------------------------------------------------------


---------- Forwarded message ----------
Date: Fri, 13 Sep 2002 09:59:18 +0100 (BST)
From: Rob Clack <address@hidden>
To: address@hidden
Subject: questions about watch/notify


I want to have CVS notify me when someone else edits a file I'm editing,
but also to notify the other editor that I am already doing so.  I can't
find a way to do this, so the first question is, have I missed something?

Assuming I hadn't, I wrote a little perl script to do it for me, but now
I can't manage to implement it.

When I commit the notify file, CVS inserts extra text into my line, so

ALL myscript $RCSfile$ %s

becomes

ALL myscript $RCSfile: notify,v$ %s

and this generates an error as $RCSfile: doesn't exist.

So my second question is, is this the right way to be doing this, and if
so how do I prevent CVS from corrupting my command line?  It changes all
occurrences of $RCSfile$ in the file.

Thanks in advance
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    |
 ------------------------------------------------------------------------








reply via email to

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