I want to add components to a stream (development and integration) in clearcase. How do I add the components using commands (cleartool) ?
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.