Shivani
Shivani

Reputation: 235

How to add components in a stream using cleartool commands?

I want to add components to a stream (development and integration) in clearcase. How do I add the components using commands (cleartool) ?

Upvotes: 1

Views: 232

Answers (1)

VonC
VonC

Reputation: 1324407

A simple cleartool rebase should be enough: by rebasing a component baseline, that would add the component automatically to the stream.
Execute that in a dynamic view (faster than a snapshot view)

The related commands are:

cleartool chstream, that you can use to:

And cleartool chproject, used to to convert non modifiable baseline to modifiable.


To add multiple baselines, assuming you don't have a composite baseline through a rootless component (which could group all those baselines under one), you would have to loop over your different baselines, ad rebase them one by one on your stream.


Note that with one command, you can list all existing foundation baselines of a stream, as I did here:

cleartool lsstream -fmt %[found_bls]p -cview

That means you can then double-check which baselines are already present (and would not need to be rebased again), and which baselines would have to be rebased.

Upvotes: 1

Related Questions