You can use a cleartool find
, using fmt_ccase options to display the associated labels
Windows Syntax:
cleartool find . -type f -ele "brtype(mybranch)" -exec "cleartool descr -fmt \"%n labels:%l\n\" \"%CLEARCASE_PN%\""
Unix Syntax:
cleartool find . -type f -ele "brtype(mybranch)" -exec 'cleartool descr -fmt "%n labels:%l\n" "$CLEARCASE_PN"'
The idea is to described each element found ($CLEARCASE_PN
) by using the %l
option of the fmt_ccase directives in order to print labels associated with it.