How to associate a clearcase view with stream or vob?

本秂侑毒 提交于 2019-12-06 14:50:05

问题


Below command is to make a view:
ct mkview -tag myview /var/tmp/your-username_dynview.vws

However, how do we know that [myview] is a view to certain stream ? There's no specified arguments on above command indicating which stream a view is for.

Please read this:
https://publib.boulder.ibm.com/infocenter/cchelp/v7r1m0/index.jsp?topic=/com.ibm.rational.clearcase.tutorial.doc/topics/a_crview_ux.htm

Is it because that above command is for base clearcase view, not for UCM view ? If so, how it is possible for a view to work with stream or vob in base clearcase ? I'm confused.


回答1:


You need to add the -stream parameter (following cleartool mkview man page).

ct mkview -tag myview -stream MyStream@/vobs:MyPVob /var/tmp/your-username_dynview.vws

See for instance "How do I create a snapshot view of some project or stream in ClearCase?".

-str/eam stream-selector

Specifies a UCM stream. The view being created is attached to this stream. (Cannot be used with –reg/ion.)

stream-selector is of the form [stream:]stream-name[@vob-selector], where vob-selector specifies the stream's project VOB.

So the -stream is the only difference between a base ClearCase view, and an UCM view.



来源:https://stackoverflow.com/questions/13363399/how-to-associate-a-clearcase-view-with-stream-or-vob

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