clearcasecleartool

ClearCase - how to discard versions .../0 from find output


I would like to get a list of all versions since some date but excluding versions .../0

But this ...

cleartool find \frdcc_hyb_sw\ -version "{created_since(20190201) && !(version(.../0))}"  -print

gives me error:

cleartool: Error: Malformed branch pathname: "\...".

Am I doing somethig wrong or this is simply not possible? Thank you very much


Solution

  • version(.../0) should reference a branch version, not directly the version number itself, as part of version selector.
    The ... is an ellipsis wildcard.

    So:

    !(version(.../myBranch/0))
    

    Since there is not wildcard for the branch, you might as well remove the version selector, and grep the result to exlude any /0 version.

    ct find \frdcc_hyb_sw\ -version "{created_since(20190201)}" -print | grep -v "/0"