请有人帮助我使用ClearCase命令将基线从一个流传递到另一个流。
我有一个项目流xyz_1.1.0
:我们已经使用ID1.1.0版本创建了一个新的流来提供一个修复。新流可以1.1.0.17001
。
现在,当流生成时,它包含了1.1.0中的基础基线,但我想要基线--最近的修正超过1.1.0 --例如,它可以是1.1.0.17000.在这种情况下,我想应用1.1.0.17000的基线。
我们使用公共流进行检查,因此我可以从公共流中获得最新的基线,在推荐的基线下可以找到。
发布于 2017-09-18 17:55:24
交付(内部或inter-project, which might need the right policy to be enabled first)需要使用 command。
您需要目标流(要传递的流)上的UCM视图。
您需要在源流上生成最新的基础基线(否则,在默认情况下,它将交付流中自上一次从流传递操作以来更改的所有活动)。
这也意味着您知道要交付哪个UCM组件。
见"List the latest baseline of a component in a UCM stream one by one“。
对于给定的组件:
bl=cleartool lsbl -comp C -stream stream:aSourceStream@/aPVob|tail -1
cleartool deliver -baseline ${bl}@/apvob -to aViewOnDestinationStream@/apvob
或者,as commented由OP A.Learn提供,您可以使用建议的源流基线:
$baselines = "cleartool desc -fmt \"%[rec_bls]CXp\" stream:".$productStream."\@\\".$pvob
//Below command applies the baseline
cleartool rebase -f -baseline ".$baselines." -complete
//Finally recommend the new baselines
cleartool chstream -recommended -default stream:".$StreamName."\@\\".$pvob
这使用了应用于fmt_ccase
的cleartool describe
格式。
https://stackoverflow.com/questions/46280213
复制相似问题