【问题标题】:ClearCase command to deliver baselines from one stream to another streamClearCase 命令将基线从一个流传递到另一个流
【发布时间】:2017-09-18 13:13:34
【问题描述】:

有人可以帮助我使用 ClearCase 命令将基线从一个流传递到另一个流。

我有一个项目流xyz_1.1.0:我们通过使用版本 ID 1.1.0 创建了一个新流来提供修复。新的流可以1.1.0.17001.
现在,当流生成时,它包含来自 1.1.0 的基础基线,但我希望基线是超过 1.1.0 的最新修复,例如它可以是 1.1.0.17000 ...在这种情况下,我想应用基线1.1.0.17000。

我们使用公共流进行签入,因此我可以从公共流中获取最新的基线,这些基线可以在推荐的基线下找到。

【问题讨论】:

  • 项目内交付?还是在项目之外? (stackoverflow.com/a/10005469/6309)。在这两种情况下,您都需要cleartool deliveribm.com/support/knowledgecenter/en/SSSH27_9.0.0/…。我将在今天晚些时候发布答案。
  • 内部项目...以图形方式我可以使用项目资源管理器->右键单击流->将基线交付给替代目标...
  • 好的。你尝试了什么?什么不工作?
  • 我想通过 cmd...
  • 我找不到 cleartool 命令,我可以通过它获取和应用基线

标签: clearcase


【解决方案1】:

交付(内部或inter-project, which might need the right policy to be enabled first)需要使用cleartool deliver 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,您可以使用 source 流的推荐基线:

$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 

这是使用应用于cleartool describefmt_ccase 格式。

【讨论】:

  • 它有效....根据您对答案的描述,我能够想出另一种方法来实现我的目标。 // 获取需要在新流上应用的推荐基线 $baselines = "cleartool desc -fmt \"%[rec_bls]CXp\" stream:".$productStream."\@\\".$pvob //下面的命令应用基线 "cleartool rebase -f -baseline ".$baselines." -complete" //最后推荐新的基线 "cleartool chstream -recommended -default stream:".$StreamName."\@\\".$pvob
  • @A.Learn 这也行,干得好。我已将您的评论包含在答案中以提高知名度。
  • 更新了我的评论以获得完整的答案...对不起
  • @A.Learn 没问题。我已经相应地修改了答案。
猜你喜欢
  • 2010-12-24
  • 1970-01-01
  • 2021-05-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-01-24
  • 1970-01-01
  • 2011-06-03
相关资源
最近更新 更多