[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Freezing CVS tags
From: |
terryh |
Subject: |
Re: Freezing CVS tags |
Date: |
Fri, 12 Oct 2001 15:39:39 -0700 (PDT) |
Hi,
Thanks for all the suggestions! Since I do not want the users to touch
an existing tag at all, I will add code in tagrules.sh to reject any
tagging request (tag, delete, etc) that involves an existing tag. My
version or David's tagrules.sh will be:
tag=$1 [tag]
op=$2 [operation]
repo=$3 [repository]
filelist=$4 [file list]
module=`expr $repo : "$CVSROOT/\(.*\)"`
topdir=`echo $module | awk -F/ '{print $1}'` [top directory]
file=`ls -1 $CVSROOT/$topdir/GNUmakefile,v` [check GNUmakefile only]
if [ "$file" != "" -a "`grep $tag: $file`" != "" ]; then
echo "Error: $tag is existing tag, request is rejected."
exit 1
fi
Many thanks!
-- Terry Hung
> I'm thinking that what I do works to not allow tag changes:
>
> First, I define a 'cvsadmin' group.
>
> Second, I place this line in $CVSROOT/CVSROOT/taginfo:
> ALL $CVSROOT/CVSROOT/tagrules.sh
>
> Third, I place tagrules.sh in my $CVSROOT/CVSROOT/checkoutlist
>
> Fourth, my tagrules.sh looks like this:
>
> #!/bin/sh
>
> if [ $2 = "mov" ] ; then
> echo "--->Please do not try to move or change tags."
> exit 1
> fi
> if [ $2 = "del" ] ; then
> echo "--->Please do not try to delete tags."
> exit 1
> fi
> exit 0
>
> On Fri, Oct 12, 2001 at 04:51:18PM -0400, Larry Jones wrote:
> > address@hidden writes:
> > >
> > > Is there a way to freeze the CVS tag? After we create a CVS tag, we
> > > would
> > > like to freeze it so that no one can change it and causes problem, is this
> > > possible?
> >
> > No, but note that CVS won't move an existing tag unless you force it to
> > by using the -F flag -- simply threaten to break the fingers of any user
> > who uses it. :-)
> >
> > -Larry Jones
> >
> > What this games needs are negotiated settlements. -- Calvin
> >
> > _______________________________________________
> > Info-cvs mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/info-cvs
>
> --
> address@hidden
> V-Net: 622-3286
> Phone: 1-719-535-3286
> Pager: 1-800-724-3624 # 140-1311
>