A separate question covers How do you rename a branch in CVS? assuming you have access to cvs admin commands.
Is it possible to do this without using cvs admin commands?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you mean “rename” or “renumber?”.
Branch tags are a bit weird in CVS. The tag name is sort of special in that it labels a branch revision as opposed to a version revision.
You can create a new branch at the same point you created the last branch (so long as you have a tag there), and then delete the old branch tag name. (The branch never actually disappears, but that doesn’t matter). But that loses any changes that have already been made to the branch.
Otherwise you can just rebranch from the branch which achieves much the same effect as renaming it except that all your revision numbers become 2 levels longer and any branch graphing tool shows a more complex structure.
It’s been a couple of years since I played around with this but I think CVS lets you create a new name for an existing branch if you create a tag to the special branch revision number (which has an odd number of levels, or has the second-to-last level == 0).
The trouble is, every file in your repository will have been branched at a different revision so you’ll have to retag every file individually at the appropriate revision.
Once you’ve created your new branch, it’s a simple matter to delete the old branch tag which just removes that name from the branch but leaves the branch intact.