info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Renaming a branch


From: Carel Fellinger
Subject: Re: Renaming a branch
Date: Sun, 2 Sep 2001 16:02:11 +0200
User-agent: Mutt/1.2.5i

On Thu, Aug 30, 2001 at 10:00:00PM +0400, Alexander Zhuckov wrote:

No one anwsered, so I'll try. But beware I'm known to do stupid things:)

...
> But now I need to rename a branch. Suppose I have a branch named
> release-1-0 created with the command:
> 
>   $ cd .../moduledir
>   $ cvs tag -b release-1-0
> 
> After some time and development on that branch I decided that old name
> is bad and I need a new name for the branch -- branch-1-0. Will the
> following commands do what I need?
> 
>   $ cvs rtag -r release-1-0 temp-branch-1-0 modulename

this will tag the *tip* of the release-1-0 branch, surely not what you ment.

>   $ cvs rtag -d release-1-0 modulename
>   $ cvs rtag -b -r temp-branch-1-0 branch-1-0 modulename

given the above, this won't work. But even if you chance it into:

   $ cvs rtag -b -r release-1-0 branch-1-0 modulename

it still won't fly, as again this would branch at the *tip*.

As far as I know, you have to use a lower level admin function here.
You really should check the docs before you try this out and don't rely
on me knowing how to do it, as I don't!

   $ cvs admin -nbranch-1-0:release-1-0  files...

You can omit the files... in a checked out directory of release-1-0,
but beware of files that have been deleted from that branch, as they
won't get updated then.

-- 
groetjes, carel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]