Search code examples
clearcasecleartool

Find elements on branch and with specific label


Using cleartool, how do I find elements (file or folder):

  • on a specific branch
    and
  • with a specific label?

Solution

  • I mentioned before how to search elements by label.

    You should be able to add a brtype selector (as in here) to restrict to a given branch:

    Unix:

    cleartool find -all -element '{lbtype_sub(REL1) && brtype(BRANCHNAME)}' -print
    

    Windows:

    cleartool find -all -element "{lbtype_sub(REL1) && brtype(BRANCHNAME)}" -print