1

I have just finish to read this IBM technote but I didn't understand: Additional examples of the cleartool find command

Martin
  • 77
  • 4

1 Answers1

5

Look at cleartool find man page and the query language

lbtype (label-type-name)

In all cases, TRUE if the object itself is labeled label-type-name. (Because elements and branches cannot have labels, this primitive can be true only for versions.)

lbtype_sub (label-type-name):

  • With elements:
    TRUE if the element has a version that is labeled label-type-name.
  • With branches:
    TRUE if the branch has a version that is labeled label-type-name.
  • With versions:
    TRUE if the version itself is labeled label-type-name.

So a cleartool find . -version would use lbtype(), whereas a search on elements (cleartool find -all -element) will have to use lbtype_sub().

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Note: I have been using both in the same `find` query before: https://stackoverflow.com/a/10527967/6309 – VonC Nov 22 '17 at 07:18