Search code examples
viewclearcaseclearcase-ucm

How to retrieve stream name by a given view name in ClearCase UCM?


I'm trying to figure out how to retrieve the stream which a given view is belong to. When I use "ClearCase Explorer" and right-click for view's properties, I get its stream name, but I can't find how to retrieve that with scripts. The stream information does not appear on view .vws files nor registry.

I know I can do some manipulation to get it from view's config-spec, but I'm still looking for the easiest way to find it our.


Solution

  • By script:

    cleartool lsstream -view view_tag
    

    See cleartool lsstream man page:

    –vie/w view-tag
    

    Displays information for the stream connected to the specified view.