Discussion:
Get Branch name of a revision in cvs
Yaron Yogev
2012-03-28 18:29:21 UTC
Permalink
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
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.
Loading...