Reputation: 235
I have used below command but it provides all foundation baselines.
cleartool descr -fmt "%[found_bls]CXp" stream:myStream@\myPVob
Is there any way to get foundation baseline of a single component?
Upvotes: 2
Views: 449
Reputation: 1073
Components don't have "foundation" baselines. The concept of a "foundation" baseline only applies to streams. So, you will need to check this on a per-stream basis.
Complicating this further is the concept of "composite baselines" which are themselves a collection of baselines (and these can be nested).
Off the top of my head, you would start by looking at either the foundation or recommended baselines of integration streams, and breaking that down by component (including by drilling down into composite baselines). Unless the integration streams are very new, the "recommended" baseline may be more useful than the foundations.
Upvotes: 0
Reputation: 1324537
I mentioned before how to get the foundation baselines for a stream.
But fmt_ccase
does not include foundation baselines for a component.
The only two directives appplied to an UCM component are:
%[initial_bl]Xp
: Initial baseline of the component%[root_dir]p
: The root directory for the componentSo you have two options:
%[component]Xp
(for an UCM baseline), for describing each baseline you get from %[found_bls]CX
, getting each component name that way.If the second option (%[components]CXp), applied to a stream, lists the component in the same order than it list baselines with %[found_bls]CXp
(for a stream), then it would be quicker (the baseline for the third component would be the third baseline listed by %[found_bls]CXp
)
But if the order is not the same, then you must loop on each baseline from %[found_bls]CXp
, and describe each of them with %[component]Xp
, until you get the component you are after.
Upvotes: 2