Re: Bug in cvsmkbranch on devel.squid-cache.org

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 16 Mar 2002 00:55:19 +0100

Odd.. I must be having another version of the script somewhere.

Anyway, to correct the problem you only need to set the correct tags
using CVS..

  cvs rtag -r Z-nt-2_5_merge_ Z-nt-2_5_merge_s2_5 squid

  cvs rtag -r Z-nt-cygwin-svc-2_5_merge_ \
        Z-nt-cygwin-svc-2_5_merge_s2_5 squid

then delete the bad tags

  cvs rtag -d Z-nt-2_5_merge_ squid

  cvs rtag -d Z-nt-cygwin-svc-2_5_merge_s2_5 squid

And no, these tags are not temporary. These tags indicate the current
branchpoint for the branch. The temporary tags used while merging is
named differently (..._merge-new_... I think) and can be deleted at any
time if one likes (well.. not while performing a merge).

Regards
Henrik

Guido Serassio wrote:
>
> Hi,
>
> I the last days I have created two new Squid branches based on s2_5:
> cygwin-svc-2_5 and nt-2_5, but when I try to do a cvsmerge, it doesn't work.
>
> Looking at http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi I find
> the Z-nt-2_5_merge_ and Z-nt-cygwin-svc-2_5_merge_ temp branches instead of
> Z-nt-2_5_merge_s2_5 and Z-nt-cygwin-svc-2_5_merge_s2_5.
>
> Looking on cvsmkbranch:
>
> if [ -f CVS/Tag ]; then
> thistag=`cat CVS/Tag|cut -c2-`
> else
> thistag=HEAD
> fi
> if [ $# == 3 ]; then
> oldbase=$2
> newbase=$3
> moved=1
> else
> oldbase=$basetag <==== WRONG, it's not defined, must be thistag
> newbase=$basetag <==== WRONG, it's not defined, must be thistag
> moved=
> fi
> rootdir=`cat CVS/Root|sed -e 's/.*://'`
> module=`cat CVS/Repository|sed -e "s!^$rootdir!!"`
> branch=`echo $1|sed -e 's/\./_/g'`
> workdir="../$1"
> if [ -d $workdir ]; then
> echo "Error! $workdir already exists"
> exit 1
> fi
> cp -rp . $workdir &
> mergetag="Z-${branch}_merge_${newbase}"
> thismergetag="Z-${thistag}_merge_${oldbase}"
>
> Now, is possible to rename the two wrong Z_ branches to the correct name ?
>
> Regards
>
> Guido
>
> -
> =======================================================
> Serassio Guido
> Via Albenga, 11/4 10134 - Torino - ITALY
> E-mail: guido.serassio@serassio.it
> WWW: http://www.serassio.it
Received on Fri Mar 15 2002 - 18:55:05 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:51 MST