如何从流中获取以前的基准 [英] How to obtain previous baseline from stream
问题描述
我可以使用以下命令检索始终推荐的最新基线
I can retrieve latest baseline which is always recommended in my case using following command
"cleartool desc -fmt \"%[rec_bls]CXp\" stream:".$SourceStream."\@\\".$pvob
我想获取第二个最新的基线,是否可以使用cleartool命令从给定的流中获取先前的基线?以前在任何给定组件上应用的基线也将起作用。我需要此功能来获得来自不同项目的两个流之间的差异,这可以通过以下命令来完成。
I want to retrieve second latest baseline.Is it possible to obtain previous baseline from a given stream using cleartool command? previous applied baseline on any given component will also works.I need this to get difference between two streams from different projects which can be done by following command.
"cleartool diffbl -elements baseline:".$LastComponentBaseline." stream:".$CurrentStream;
推荐答案
您可以先查看 cleartool lsbl
:它确实列出了(针对给定的流和/或组件)。
与 fmt_ccase
,您可以grep您知道的推荐基准,及其前一行,因为 lsbl
列出了从最旧到最新的基线
You can start by looking at the output of cleartool lsbl
: it does list (for a given stream and/or component).
Combined with fmt_ccase
, you can grep the recommended baseline you know, and the line before, since lsbl
lists baselines from the oldest to the newest
cleartool lsbl -fmt "%[component]Xp %n" -stream aStream@\aVob | grep -B 1 -E "yourComponent.*yourBaseline"
您需要grep输入正确的组件名称(以%[component] Xp
格式显示),因为 lsbl
(在流中)将列出以下所有基线所有组件。
You need to grep for the right component name (displayed by the %[component]Xp
format), as lsbl
(on a stream) would list all baselines of all components.
这篇关于如何从流中获取以前的基准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!