[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to bring a branch back on a file when the tag has been moved
From: |
David Everly |
Subject: |
Re: How to bring a branch back on a file when the tag has been moved |
Date: |
Fri, 30 Nov 2001 10:19:24 -0700 |
User-agent: |
Mutt/1.2.5i |
I don't like moving or deleting tags, so I have the following taginfo
script:
#!/bin/sh
##
## do not allow anyone to move or delete tags
##
if [ $2 = "mov" ] ; then
echo "--->Please do not try to move or change existing tags."
exit 1
fi
if [ $2 = "del" ] ; then
echo "--->Please do not try to delete tags."
exit 1
fi
On Fri, Nov 30, 2001 at 12:03:22PM -0500, address@hidden wrote:
> Subject: Re: How to bring a branch back on a file when the tag has been moved
> To: address@hidden (Prabhu Ram)
> Date: Fri, 30 Nov 2001 11:01:52 -0500 (EST)
> Cc: address@hidden
> From: address@hidden (Larry Jones)
>
> Prabhu Ram writes:
> >
> > We have a branch on which dev. was taking place and someone accidentally
> > moved the tag (which is also the branch name) to the tip of the branch. Is
> > there a "nice" way of setting the branch back to the branch point ?
>
> No. CVS won't move an existing tag unless you force it to using the -F
> flag, so you may want to beat up any users that always use -F to prevent
> future mistakes of that sort. The current development version of CVS
> goes one step farther and refuses to convert a branch tag to a revision
> tag unless you also specify the -B flag, which should prevent such
> accidents completely.
>
> -Larry Jones
>
> Sometimes I think the surest sign that intelligent life exists elsewhere
> in the universe is that none of it has tried to contact us. -- Calvin