[Ilugc] CVS unix triggers

Duraisamy, Kavitha (Cognizant) Kavitha.Duraisamy at cognizant.com
Wed Nov 15 10:53:08 IST 2006


I want to create triggers for naming conventions to be followed during
tag and branch creation. In taginfo I couldn't trace whether tag is
being created or branch is being created.

These are the values which we can access in taginfo file
%p Directory name relative to the current root.
%m Message supplied on the command line.
%s List of files being tagged
%v List of versions being tagged
%b tag type
%o tag operation
%t tag name

My taginfo file's content :
ALL /netapp/home/s3428/umacvs/CVSROOT/loggit %t %b %o %p %{sVv} %c

Loggit's content
#!/bin/sh
echo "$@" >>/netapp/home/s3428/umacvs/CVSROOT/taglog

And taglog's content
%t %b %o %p %{sVv} %c tag11 add /netapp/home/s3428/umacvs/trunk test1.c
1.1.1.1 test2.c 1.1.1.1 test3.c 1.1.1.1

%b and %c doesn't have any content .... Is it any configuration issue???
%c - is supposed to hold the current command being executed 

Thanks 
Kavitha




-----Original Message-----
From: ilugc-bounces at ae.iitm.ac.in [mailto:ilugc-bounces at ae.iitm.ac.in]
On Behalf Of Suresh Ramasubramanian
Sent: Wednesday, November 15, 2006 9:55 AM
To: ILUG-C
Subject: Re: [Ilugc] CVS unix triggers


Duraisamy, Kavitha (Cognizant) wrote:
> 
> I have a query in CVS -unix.I couldn't trace to variables(%c - current

> command being executed and %b - tag or branch) in taginfo file of
CVSROOT folder -Concurrent Versions System (CVS) 1.11.1p1
(client/server)
>  

Can you be more specific?  Where are you invoking %c etc?  These are
context sensitive .. if you run one of those in a hook from cvs up,
you'd get %c as "update"

	srs
_______________________________________________
To unsubscribe, email ilugc-request at ae.iitm.ac.in with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com


More information about the ilugc mailing list