Using lscm to set component baselines on a stream with no stream reference
Here's the scenario: I created a snapshot on a workspace with baselines so now all the components of that stream have a baseline "baseline1". Then the snapshot is deleted. Now I want to reconfigure a stream using all these component baselines (all named "baseline1"). How would I go about using lscm set component for that? The arguments for set component:
target-workspace - The target workspace or stream to change. To specify the
workspace or stream, use its name[@repo], alias, or
UUID[@repo].
replace-type - Source item type. One of: "workspace", "stream",
"snapshot" or "historyRef"
replace-source - Source of the new components. This item must be of type
specified in replace-type. To specify an item, use its
name[@repo], alias or UUID[@repo].
components - Components to replace. To specify a component, use its
name, alias or UUID.
I have a target stream but replace-type is not a workspace, stream, or snapshot. It's just a baseline for the component. I'm not sure how to use historyRef - is that what I'm looking for?
I had to do this with the UI because I couldn't figure out the right syntax to do it from the command line but am still interested to know how I would set a component baseline into a stream when no other stream, snapshot, or workspace is using the baseline that I want to set.
Accepted answer
I don't think that is possible today. We may have to add "baseline" as one of the options to replace-type and the replace-source would be a baseline name. I have raised an enhancement request: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=467611