Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is deleting a branch in CVS not recommended?

Tags:

cvs

Under what circumstances would this or would this not be safe? I have a branch that has a four changes (no file add or deletes). Would this be safe to delete?

Edit: The reason for wanting to delete it is that it was misnamed and is going to lead to confusion.

like image 653
Ed Thomas Avatar asked Sep 26 '08 18:09

Ed Thomas


People also ask

How do I delete a CVS branch?

Deleting or moving a branch is done with the -d or -F command options to cvs tag and cvs rtag , in the same way you delete or move any other tag. CVS also requires the -B option in the command as a way of indicating that you know the tag denotes a branch and you really mean to move or delete it.

How do I create a new branch in CVS?

Making a Branch You can make a branch with the -b option to the cvs tag or cvs rtag commands. This option can be combined with any of the other tag-creation options of those commands. You can use a date, existing tag, or revision number to specify the revision to be branched from.

How do I merge a head to a branch in CVS Eclipse?

To do this, select the project and choose Team > Replace With > Another Branch or Version from the context menu. Then select the branch to replace with. From this point, choose Team > Merge and then select the branch you want to merge into HEAD.

How do I transfer tags in CVS?

Moving a tag To move a tag from one revision to another revision in the same file or set of files, use the -F option to cvs tag and cvs rtag . Use -r to designate the revision to move the tag to and -F to designate the tag to move.


2 Answers

People landing here looking for the answer to "How to delete a branch in cvs"

cvs tag -dB branchname

The -d will delete, the -B will override and let it know to delete the branch (not a tag)

like image 54
Shaun Avatar answered Sep 21 '22 23:09

Shaun


I believe that CVS won't actually delete the branch, it will just remove the tag from the branch -- so the branch is still present in each ",v" file that is affected, it just won't be trivially accessible any more. The result is weird, but probably not dangerous.

like image 30
Curt Hagenlocher Avatar answered Sep 20 '22 23:09

Curt Hagenlocher