Re: Get Branch name of a revision in cvs

Yaron Yogev <[email protected]> Mon, 20 Jun 2011 00:38:35 -0700 (PDT)
Newsgroups gmane.comp.version-control.cvs.general
Organization http://groups.google.com
Message-ID <61adb295-876b-48a1-bbb4-cd688d5157b4@u19g2000vbi.googlegroups.com>
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 <[email protected]> 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.