Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ClearCase: change branch type name?

Tags:

unix

clearcase

I used mkbrtype BRANCH_NAME, checked out a few files, had some check-ins, etc. Now I discovered I had a typo in the branch name, and it looks pretty ugly. Is there a way I can change the branch name and still have all the versions/checkouts under it? I'm the only one using it.

like image 327
Amir Rachum Avatar asked Jan 19 '11 09:01

Amir Rachum


People also ask

How do I rename a branch in ClearCase?

You can rename a brtype with the ct rename command. But you will need to: change the config spec of your view (non-UCM): no side-effect on checked out files. or change the name of the stream, remove and recreate your view no the new Stream name (UCM).

How do I delete a branch type in ClearCase?

cleartool rmtype -rmall brtype:branch-name If you remove the branch type from a ClearCase GUI, such as CTE, the associations will not be removed from the CQ records or RTC work items.

What is a branch in ClearCase?

Branches are used in base ClearCase® to enable parallel development. A branch is an object that specifies a linear sequence of versions of an element.


2 Answers

You can rename a brtype with the ct rename command.

cleartool rename brtype:oldname@\vob newname

But you will need to:

  • change the config spec of your view (non-UCM): no side-effect on checked out files
  • or change the name of the stream, remove and recreate your view no the new Stream name (UCM). Your checked-out files still have their checked-out status, but you have to save their local modified content first to re-apply that content to the new view.
like image 158
VonC Avatar answered Sep 28 '22 18:09

VonC


Following command may be useful

$ cleartool rename brtype:OLD brtype:NEW
like image 41
Neera Avatar answered Sep 28 '22 18:09

Neera