info-cvs
[Top][All Lists]
Advanced

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

matching a tag to a branch


From: Jim Perrier
Subject: matching a tag to a branch
Date: Fri, 17 Feb 2012 14:45:11 -0500
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1

I was wondering if anyone could tell me how to match a tag to a branch?
I've inherited this working environment, so understand that I didn't design the tagging naming system. What I'm trying to do is create a shell script that I could supply the build tag "DSC_4_0_I675" and
have it return the branch it belongs to.

*DSC_4_0_I420 belongs to DSC40*
> cvs history -a -T | grep -w tpapps | grep DSC_4_0_I420
T 2011-11-02 05:29 +0000 nmsbuilder tpapps       [DSC_4_0_I420:DSC40]

>  cvs history -a -T | grep -w tpapps | grep DSC_4_0_I669
T 2011-10-27 07:43 +0000 nmsbuilder tpapps       [DSC_4_0_I669:A]

>  cvs history -a -T | grep -w tpapps | grep DSC_4_0_I675
T 2011-11-02 16:23 +0000 nmsbuilder tpapps       [DSC_4_0_I675:A]
T 2011-11-02 19:31 +0000 nmsbuilder tpapps       [DSC40MAIN:DSC_4_0_I675]

> cvs history -a -T | grep -w tpapps | grep DSC_4_0_I681
T 2011-11-08 06:31 +0000 nmsbuilder tpapps       [DSC_4_0_I681:DSC40MAIN]

I'm not sure what "A" stands for? HEAD maybe? I know DSC40MAIN was created from the HEAD It's also awkward when the reply returns the branch name before and sometimes after the tag.

I'd appreciate any help you could give me.


reply via email to

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