In an integration stream Int , A1,A2,A3 are activities,B1 is baseline that includes A1,A2,A3 activities.
(Int Stream)—–A1——A2——————A3——[B1]—————->
We are going to deploy new version of software and our project manager said that he did not want to include A2 activity changeset in this version of software.
Can we create new baseline B2 that only includes A1 and A3 activities in ClearCase?
(Int Stream)—–A1————————A3——[B2]—————-> ?
No: Since B1 exists, all activities are ‘linked’ by a common ‘timeline’, and ClearCase will ask you to also include A2.
A possible solution would be to create a sub-stream, and to make a
findmergewith only A1 and A3(a
findmergeis a non-UCM merge that can still take a list of UCM activities as an input)The fundation baseline of the sub-stream should be the last baseline (produced on IntStream) not including A1, A2 and A3.
Then:
That sub-stream plays the role of a ‘release stream’, or ‘consolidation stream’, that is a stream which will include all you need to build a final release.
The parent stream (IntStream) goes on in its role of integrating all development effort (coming from other sub-streams)
Note:
ct‘ stands for ‘cleartool’: it is analias(Unix) or adoskey(Windows version of an alias:doskey ct=cleartool $*)Activity dependency: A3 could in this case have some versions based on A2 versions.
findmergecommand only uses activities for theirchangeset(list of versions) to be merged:A3 including changes made in A2, the final result will include A1, A2 and A3 changes, except if A1 and A3 changes are ‘concurrent’ (changes on similar lines): in this case, a non-trivial merge will need to be performed.
Since you do not want A2 changes, you need, as you mention in the comments, to complete that
findmergeoperation with a perl utility scriptcset.pl:It will perform a ‘negative merge’ (or ‘substractive merge’), removing any changes for A2.