From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 27 20:12:25 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA2801065678 for ; Wed, 27 Feb 2008 20:12:25 +0000 (UTC) (envelope-from amol@dharmadhikari.org) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.182]) by mx1.freebsd.org (Postfix) with ESMTP id 96AED8FC27 for ; Wed, 27 Feb 2008 20:12:20 +0000 (UTC) (envelope-from amol@dharmadhikari.org) Received: by el-out-1112.google.com with SMTP id r27so2689188ele.3 for ; Wed, 27 Feb 2008 12:12:19 -0800 (PST) Received: by 10.142.188.4 with SMTP id l4mr5698457wff.151.1204141659190; Wed, 27 Feb 2008 11:47:39 -0800 (PST) Received: by 10.142.11.15 with HTTP; Wed, 27 Feb 2008 11:47:39 -0800 (PST) Message-ID: <61ed81c80802271147t3346f52lcb85233fbd3b6884@mail.gmail.com> Date: Wed, 27 Feb 2008 11:47:39 -0800 From: "=?UTF-8?Q?Amol_Dharmadhikar?= =?UTF-8?Q?i_=E0=A4=85=E0=A4=AE=E0=A5=8B=E0=A4=B2_=E0=A4=A7=E0=A4=B0?= =?UTF-8?Q?=E0=A5=8D=E0=A4=AE=E0=A4=BE=E0=A4=A7?= =?UTF-8?Q?=E0=A5=80=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A5=80?=" To: "John Hein" In-Reply-To: <18373.47157.425456.583623@gromit.timing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <18373.33662.614583.231211@gromit.timing.com> <20080227190448.GA50031@kobe.laptop> <18373.47157.425456.583623@gromit.timing.com> Cc: Giorgos Keramidas , hackers@freebsd.org Subject: Re: cvs tag renaming after repo copy X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2008 20:12:26 -0000 On Wed, Feb 27, 2008 at 11:21 AM, John Hein wrote: > Giorgos Keramidas wrote at 21:04 +0200 on Feb 27, 2008: > > > On 2008-02-27 08:36, John Hein wrote: > > > Can someone point me at a script that does tag renaming > > > after a repo copy? > > > > You don't really need a `script' to do this. > > > > Tags in CVS are not versioned, so you can force-tag the repo-copied > > files and move the tag to its new place. > > > > For example if you have two files: > > > > foo.c,v > > bar.c,v > > > > and bar.c,v is a repo-copy of foo.c,v then you move the tag only for the > > bar.c file by checking it out, and running: > > > > cvs tag -f -r 1.2 bar.c > ------------------------^^^ you're missing the tag name in this example, but... > > > This should force/move the tag to point revision 1.2. > > I don't want to move the tag... I want to invalidate old tags by > renaming them to something else (like foo-1-2-3 -> old_foo-1-2-3). > > Note that just using cvs to rename a tag (by tagging with the new name > and then removing the former name) has issues when you try to do that > with branch tags. > > Anyway, I'm pretty sure the FreeBSD cvs-meisters run something to > invalidate tags after doing a repo copy. That's the information I was > looking for. > I dont think you can rename tags using a single command. What you can do instead is create a new tag at the same point as the old tag, and then delete the old tag. eg - cvs rtag -r old-foo-1-2-3 new-foo-1-2-3 cvs rtag -d old-foo-1-2-3 Amol