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.
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.
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.
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.
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.
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)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With