Search code examples
version-controlclearcasecleartool

Clearcase: list element labels in a view


Using ClearCase, I would like to retrieve all the elements of the VOB that do not have a particular label.

I am trying to do something similar to the following but it doesn't work. Any help ?

cleartool find . -elem '( ! (lbtype(MYLABEL)))' -print

Solution

  • It should be a query similar to:

    cleartool find . -elem '! lbtype_sub(MYLABEL)' -print
    

    From cleartool find and query_language:

    lbtype_sub (label-type-name)
    

    With elements: TRUE if the element has a version that is labeled label-type-name.

    More details in "ClearCase: How to find elements that do NOT have a particular label"