info-cvs
[Top][All Lists]
Advanced

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

Re: Get Branch name of a revision in cvs


From: Yaron Yogev
Subject: Re: Get Branch name of a revision in cvs
Date: Wed, 28 Mar 2012 18:29:21 -0000
User-agent: G2/1.0

A simple shell script to do that:
file=$1
rev=$2
br_num=`echo $rev | sed "s/[.]\([0-9]\+\)[.][0-9]\+$/.0.\\1/"`
cvs rlog -h $file | grep ": $br_num$" | sed "s/:.*//" | sed "s/^\s*//"

HTH
Yaron

On Jun 15, 1:10 pm, kapila <address@hidden> wrote:
> Hello Experts,
>    I require the branch & tag(if any)  name linked to a specific revision
> like file ab/fgp.java is committed in branch named RB1-0 then how to get
> that ??
> --
> View this message in 
> context:http://old.nabble.com/Get-Branch-name-of-a-revision-in-cvs-tp31850086...
> Sent from the Gnu - Cvs - Info mailing list archive at Nabble.com.



reply via email to

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