No, that will not work. In fact this will leave you with no branch tag at
all
since you didn't use "tag -b", and actually in a very bad place, with no
way to recover the lost branch tag.
Actually, within the confines of CVS, I do not think there is a way to
rename
a branch tag. (If I'm wrong, sorry Noel, but I wanted to reply before
somebody
tried this, in case I'm right, since, if I am, the consequences aren't too
cool.)
i..e for example,
cvs rtag -r branch_name new_branch_origin modulename
cvs rtag -b -r new_branch_origin new_branch_tag modulename
will give you a new branch tag that branches off the old branch,
but will not rename the old branch.
> I think the way to do this is:
> cvs tag -r branch-name tmp-name
> cvs tag -r tmp-name new-branch-name
> cvs tag -d branch-name
[smc] oops branch tag gone, not cool.
> cvs tag -d tmp-name
>
> It may be wise to use something like "branch-BASE" as your tmp-name and
> not to
> delete it (since you may need it in the future when doing merges).
>
> If you manually edit the files without creating CVS locks in the repo
> directories, you chance losing others' commits during your editing.
>
> Noel
>
>
>
>
> [EMAIL PROTECTED] on 05/10/2000 02:34:15 AM
>
> To: [EMAIL PROTECTED]
> cc: (bcc: Noel L Yap)
> Subject: Renaming branch?
>
>
>
>
> Hello,
>
> In CVC documentation I found out, that it is possible to rename tags.
> But I would like to rename branch.
> Is it possible at all? And if it is possible, how to do it?
> One possible solution could be to search for branch name in whole
> repository and then change branch name in every file where it is
> mentioned. Is this possible to do without damaging the repository?
>
> Best regards,
> Alain
>
>
>
>
>
>
> This communication is for informational purposes only. It is not intended
> as
> an offer or solicitation for the purchase or sale of any financial
> instrument
> or as an official confirmation of any transaction. All market prices, data
> and other information are not warranted as to completeness or accuracy and
> are subject to change without notice. Any comments or statements made
> herein
> do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its
> subsidiaries and affiliates.