如何在ClearCase中列出推荐的基准线 [英] How can i list the recommended base line in ClearCase

查看:59
本文介绍了如何在ClearCase中列出推荐的基准线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我我目前正在编写一个脚本,该脚本必须检查Integration流的推荐基线,所以我知道的唯一参数是流名称,我想知道是否有办法在Linux上使用cleartool(bash脚本)来做到这一点。

I'm currently writing a script that has to check the recommended baseline of the Integration stream, so the only parameters that I know is the stream name, I'm wondering if there is a way to do that using cleartool on linux (bash script).

这是我的Vob:

这是流:

And this is the Stream:

推荐答案

您可以使用 fmt_ccase选项 %[rec_bls] CXp

打开Windows:

cleartool descr -fmt "%[rec_bls]CXp" stream:streamName@\aPVob

在Unix上:

cleartool descr -fmt "%[rec_bls]CXp" stream:streamName@/vobs/aPVob

您可以看到 < a href = https://stackoverflow.com/q/8757144/6309>如何使用管道描述推荐基准。


此流中有一些组件,我该怎么提及我想要的那个组件?

I have a few components in this stream, how should I mention which one I want?

推荐的基准与UCM项目或UCM流相关联,并且包含一个或多个组件。

因此您需要首先列出这些基准,然后针对每个基准,检查是否包含您的组件。

Recommended baselines are associated to an UCM project or UCM stream, and include one or several components.
So you need to list those baselines first, then, for each one, check if your component(s) is included.

对于找到的每个基准,您都可以列出其组成,如 如何使用<$为每个组件找到 root [文件夹] c $ c> cleartool ?

For each baseline found, you can list its component, as shown in "how to find root[folder] for each component using cleartool?"

cleartool lsbl -fmt "%[component]p" baseline:baselineName@\aPVob

(照常,替换为' streamName baselineName aPVob ,并在您的情况)

(as usual, replace 'streamName', 'baselineName' or 'aPVob' with the appropriate names in your case)

这篇关于如何在ClearCase中列出推荐的基准线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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