1

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

Shivani
  • 219
  • 1
  • 14

1 Answers1

1

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.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I tried cleartool rebase, but it only adds one component...not all. How do I add all those components in the stream which is provided as baseline to that which I am creating? – Shivani Dec 09 '19 at 12:26
  • @Shivani You would need to rebase those baselines one by one: see my edited answer. – VonC Dec 09 '19 at 12:53
  • ohh! Isn't there any way wherein we can get all the list of components to be added via a command instead of manually checking all the components present in the baseline stream? – Shivani Dec 09 '19 at 13:30
  • @Shivani There is one command to get existing baselines already on the stream: see my edited answer. – VonC Dec 09 '19 at 13:37
  • Thanks a lot for all your help! Been really useful! :) – Shivani Dec 09 '19 at 14:13