我看不出使用 lbtype_sub 相对于 lbtype 的附加值?

I can't see the added value of using lbtype_sub versus lbtype?

我刚刚读完这篇 IBM 技术说明,但我不明白: Additional examples of the cleartool find command

看看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.

因此 cleartool find . -version 将使用 lbtype(),而对元素 (cleartool find -all -element) 的搜索将不得不使用 lbtype_sub().