Clearcase UCM基准 [英] clearcase ucm baseline

查看:72
本文介绍了Clearcase UCM基准的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以从命令行的当前视图中获取组合基线信息。

Is there any way to get the composte baseline information from the current view in command line .

我在脚本中使用了命令。在我的视图中显示的是包含复合和ovverride组件基线的命令列表。

I am using the comand in my script. It's displaying the list of the commands which include composite and ovverride component baselines in my view .

cleartool lsstream -fmt%[found_bls] NXp\n -view $ VIEW_NAME

cleartool lsstream -fmt "%[found_bls]NXp\n" -view $VIEW_NAME

我只需要复合基线作为命令的输出。

I need only the composite baseline as output for my command.

是否有任何命令可以找到当前视图中的复合基线?请帮助。

Is there any command to findout the composite baseline in current view ? pls help .

推荐答案

A 复合基线可以列出其直接依赖项,如此脚本,您可以尝试列出每个基准的基准。

确实返回输出(无错误)的基准就是您的复合基准。

A composite baseline can list its immediate dependencies, so as described in this script, you can attempt to list those for each baselines.
the one that does return an output (without error) is your composite baseline.

cleartool describe -fmt "%[depends_on]Np\n" {baseline selector}

但是,以我先前关于 搜索输出行并保存在变量中,您可以做的是描述每个基线,询问其依赖性,并为该行进行grepping包含arobase' @ ':

仅复合基线将返回ful合格的基线名称(其中包含arobase),而不是非复合基线,该基线将返回...无)

However, building on my previous answer about "search the output line and save in variable", what you can do is describe each baseline, asking for its dependencies, and grepping for the line which contains an arobase '@':
Only composite baselines will return fully qualified baseline names, with arobase in it, as opposed to a non-composite baseline, which will return... nothing)

cleartool lsstream -fmt "%[found_bls]CXp" -view $VIEW_NAME | tr -s " " "\012" | xargs cleartool descr -fmt "%n %[depends_on]Cp" | grep "@" | sed -e "s/ .*//"

更多可见性:

cleartool lsstream -fmt "%[found_bls]CXp" -view $VIEW_NAME \
| tr -s " " "\012" 
| xargs cleartool descr -fmt "%n %[depends_on]Cp" 
| grep "@" | sed -e "s/ .*//"

这篇关于Clearcase UCM基准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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