通过命令行创建复合基线 [英] Create composite baseline via command line

查看:73
本文介绍了通过命令行创建复合基线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须丢失一些东西,但不确定是什么。
尝试复制ClearProjExp步骤的功能,以使用命令行和脚本自动完成流程,从而使用组件和复合基线创建项目。 ClearCase 8.0.0.3 / AIX。

I must be missing something but not sure what. Trying to replicate the function of the ClearProjExp steps to create project with a component and a composite baseline using the command line and scripts to automate out processes. ClearCase 8.0.0.3 / AIX.

选择新项目...


  • 向导的第1步:y_project_1.0,my_project_1.0_int,传统并行开发,下一步

  • 第2步,从选定的主线基线(下一步)
  • $ b $播种项目b
  • 第3步,添加组件和组合,删除其他组件,下一步

  • 第4步,仅修改组件,下一步

  • 步骤5,没有完成ClearQuest集成,完成(我们实际上有CQ,int,但是为此,例如。)

  • 继续

  • Step 1 of the Wizard: y_project_1.0, my_project_1.0_int, Traditional Parallel Dev, Next
  • Step 2, seed the project from the selected mainline baseline, Next
  • Step 3, add the component and the composite, remove other components, Next
  • Step 4, make only component modifiable, Next
  • Step 5, No ClearQuest Integration, Finish (we actually have CQ, int, but for this eg.)
  • Continue

已创建项目

选择项目,编辑基准依赖项...

Select Project, Edit Baseline Dependencies ...


  • 将组件拖放到组合上,可以

  • 基本名称:BL0,可以

创建了复合基线。

我可以使用命令行创建一个项目和具有一个或多个组件的流,但是在添加复合对象时遇到了麻烦。我无法将不可修改的组件添加到项目中,也无法建立复合基线,因为复合项不在项目中。我想念什么?

I can create a project and a stream with one or more components using the command line, but am stumped adding the composite. I can't add a non-modifiable component to the project and I can't make the composite baseline because the composite is not in the project. What am I missing please?

cleartool mkproject
   -in myfolder@/vobs/Appplication_pvob
   -model DEFAULT
   -blname_template component,date,time,basename
   -policy ${POLICY}
   -npolicy ${NEG_POLCIY}
   -modcomp ComponentA, ComponentA_composite my_project_1.0@/vobs/Appplication_pvob

cleartool: Warning: Skipping component "ComponentA_composite".  This component stores only baselines, not file elements, and cannot be modified directly by users.

cleartool mkstream
   -integration
   -in my_project_1.0@/vobs/Appplication_pvob
   -baseline ComponentA_130626_011525_BL0.1 stream:my_project_1.0_int@/vobs/Appplication_pvob

cleartool mkbl
   -component ComponentA_composite@/vobs/Appplication_pvob
   -adep ComponentA@/vobs/Appplication_pvob
   -view ccadmin_my_project_1.0_int BL0

cleartool: Error: Cannot make baseline of component "ComponentA_composite" because it is not in the configuration of stream "my_project_1.0_int".
cleartool: Error: Unable to create baselines.


推荐答案

您应该:


  • 创建rooltess组件 Component_A 首先

    cleartool mkcomp -nroot ComponentA_composite @ / vobs / Appplication_pvob (您已经这样做了)

  • 直接在正确的流中添加复合(无根)组件的初始基线(这意味着您不需要将其添加到项目中:所说的项目仅记录可修改组件)
    cd /view/ccadmin_my_project_1.0_int
    cleartool rebase -bas ComponentA_composite_INITIAL

  • 建立一个复合基线:
    cleartool mkbl -comp ComponentA_composite @ / vobs / Appplication_pvob -adepends_on component:ComponentA @ / vobs / Appplication_pvob-查看ccadmin_my_project_1.0_int BL0

  • create a rooltess component "Component_A" first
    cleartool mkcomp -nroot ComponentA_composite@/vobs/Appplication_pvob (you did that already)
  • Add the initial baseline of the composite (rootless) component directly in the right stream (meaning you don't need to add it to the project: said project only records modifiable component) cd /view/ccadmin_my_project_1.0_int cleartool rebase -bas ComponentA_composite_INITIAL
  • make a composite baseline: cleartool mkbl -comp ComponentA_composite@/vobs/Appplication_pvob -adepends_on component:ComponentA@/vobs/Appplication_pvob -view ccadmin_my_project_1.0_int BL0

最后一部分自基础以来应该起作用流的基线确实包括无根组件 ComponentA_composite

That last part should work since the foundation baselines of the stream does include the rootless component ComponentA_composite.

这篇关于通过命令行创建复合基线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆