[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: branch/tag question
From: |
Russ Sherk |
Subject: |
Re: branch/tag question |
Date: |
Tue, 23 Aug 2005 10:09:17 -0400 |
On 8/23/05, Richard Boehme <address@hidden> wrote:
> Hi there. A small question: I've looked through the manual and am
> confused about how to rename a branch, and how to change a copy of the
> repository to the main branch.
>
> I have a branch, branch1 that I want to rename to branch1-newname,
> because calling it tag1 is misleading.
>
> According to the manual, I think that the command for this is:
>
> cvs tag -R branch1-newname
According to previous threads in this group:
cvs co -r<old_branch_tag>
cd <checked out module dir>
cvs admin -N<new_branch_tag>:<old_branch_tag> .
cvs tag -d <old_branch_tag> .
>
> when I'm in a directory that I have checked out branch1 to.
>
> Also, I'm unclear on how to revert to the main branch. For a particular
> branch, I can do:
>
> cvs -r branch2 update
If you mean revert your working copy to HEAD (or main trunk):
cd <working copy dir>
cvs up -A
The '-A' will change all file revisions to the tip of the main trunk
as well as rmove any sticky options.
Note: -r<branch_name> always comes after the CVS command (e.g. 'cvs
update -r branch2'). For more info type 'cvs -H update'.
>
> to get that branch. However, I don't think there's a name for the main
> branch that I can do -r on.
>
> Thanks.
>
> Richard
>
>
> _______________________________________________
> Info-cvs mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/info-cvs
>