逐一列出UCM流中组件的最新基线 [英] List the latest baseline of a component in a UCM stream one by one
问题描述
我需要逐一列出透明案例UCM流中每个组件的最新基线。我知道%[latest_bls] p
选项与 -fmt
一起使用。问题是它列出了所有组件的所有最新基线。
I need to list the latest baseline for each component in a clearcase UCM stream one by one. I am aware of the "%[latest_bls]p"
option used with -fmt
. The problem is that it lists all the latest baselines for all components together.
在给定组件名称C和流名称S的情况下,我需要显示的是组件的最新基线
What I need is, given component name C and stream name S, display the latest baseline for component C in the stream S.
谢谢您的帮助。
推荐答案
如果您考虑 fmt_ccase 选项,%[latest_bls] CXp
将始终列出给定Stream的所有组件的最新基线。
If you consider the fmt_ccase options, %[latest_bls]CXp
will always list the latest baseline for all components of a given Stream.
所以最好解析结果,并为每个基线名称显示其组件名称:
So it is best to parse the result, and for each baseline name, to display its component name:
cleartool describe -fmt "%[component]Xp" aBaselineName@/aPVob
也:
%[latest_bls] CXp
似乎是获取的唯一方法直接最新基线,并且始终是 all comp
您还可以做的是列出给定组件和流的所有基线:
%[latest_bls]CXp
seems to be the only way to get directly the latest baseline, and it is always for all components.
What you can also do is list all baselines for a given component and stream:
cleartool lsbl -comp C -stream S
,然后选择最后一个。
, and select the last one.
That should be more in line with what you want (ie use only your 6 component names instead of all that parsing/grep'ing)
这篇关于逐一列出UCM流中组件的最新基线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!