问题描述
我做了一些脚本编写工作,我必须同时支持Base和UCM。
I do some scripting and I have to support both Base and UCM.
我得到了一个元素名称,我必须弄清楚这是否是UCM环境的一部分或不。
这样做最有效的方法是什么?
例如
检查UCM语句的视图配置规范吗?
I get an element name and I have to figure out if that's part of UCM environment or not.What's the most efficient way to do so?e.g.check the view config-spec for UCM statement?
谢谢
推荐答案
您可以在视图内的任何位置执行 cleartool catcs
。
You can do a cleartool catcs
, anywhere within your view.
UCM vie的配置规范与基线ClearCase截然不同:
The config spec of an UCM vie is quite distinct of a baseline ClearCase one:
它将以
ucm
identity UCM.Stream ...
因此,除非在配置规范的最后一部分中有特殊的基本ClearCase选择规则:
So unless you have special base ClearCase selection rules in the last part of the config spec:
#UCMCustomElemBegin - DO NOT REMOVE - ADD CUSTOM ELEMENT RULES AFTER THIS LINE
[... my base ClearCase selection rules ...]
#UCMCustomElemEnd - DO NOT REMOVE - END CUSTOM ELEMENT RULES
您可以考虑由元素选择的元素UCM视图是UCM环境的一部分。
You can consider than your element, selected by an UCM view, is part of an UCM environment.
这篇关于区分ClearCase元素是否属于UCM环境的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!