What's the best way to distinguish if a ClearCase element is part of UCM environment?

烂漫一生 提交于 2019-12-11 05:29:53

问题


I do some scripting and I have to support both Base and 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?

Thank you


回答1:


You can do a cleartool catcs, anywhere within your view.

The config spec of an UCM vie is quite distinct of a baseline ClearCase one:

It will begin with

ucm
identity UCM.Stream ...

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

You can consider than your element, selected by an UCM view, is part of an UCM environment.



来源:https://stackoverflow.com/questions/10614483/whats-the-best-way-to-distinguish-if-a-clearcase-element-is-part-of-ucm-environ

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!