List last component baseline in UCM stream one by one

I need to list the last baseline for each component in a pure UCM stream one by one. I know the parameter "%[latest_bls]p"

used with -fmt

. The problem is that it lists all the latest baselines for all components.

I need the C component name and S stream name to display the last baseline for the C component in the S stream.

Thank you for your help.

+2


source to share


2 answers


If you are considering options fmt_ccase , %[latest_bls]CXp

will always display the latest baseline for all components of this stream.

So, your best bet is to parse the result and for each base name to display its component name:

cleartool describe -fmt "%[component]Xp" aBaselineName@/aPVob

      

also:



%[latest_bls]CXp

it seems like the only way to get the last baseline directly, and this is always for all components.
You can also specify all baselines for a given component and flow:

 cleartool lsbl -comp C -stream S

      

and select the last one.
This should be more in line with what you want (i.e. only use your 6 component names instead of all this parsing / grep'ing)

+7


source


Check it:

cleartool lsbl -fmt "%[latest_bls]p" -component C -stream S

      



Also, do you know the " R&D Reporter "? It helps you generate a report based on all changes made between the last baseline and the previous baseline for each component. Moreover, it allows you to determine what your "last baseline" is: you can use regular expressions, streams, or promotion levels to filter out nonessential baselines. If you have further questions, please let me know.

+1


source







All Articles