How can I find all the elements in a branch with a version of LATEST that has no label?

As the title says: I would like to find all the elements that are on the branch (for example DEV_BRANCH) with the version LATEST, but the label has not yet been put on it.

I know how to find elements that do not have a specific label (as in:

But I do not know how to find elements that have not received any label.

Thanks in advance Michael

+3
source share
2 answers

The easiest way:

cleartool find . -type f -ele "version(.../myBranch/LATEST)" -print
  • lsvtree grep ( , )
cleartool find . -type f -ele "version(.../DEV_BRANCH/LATEST)" \
-exec "cleartool lsvtree \"%CLEARCASE_PN%\"" | findstr "DEV_BRANCH\\[0-9]* ("

( grep Unix), :

  • DEV_BRANCH
  • a '\'
  • , '(' ( )

.
, , , ( ), ( ).

, ...

+2

VonC,

patter, , lsvtree, , :

cleartool find . -type f -ele 'version(/main/DEV_BRANCH/LATEST)'
-exec 'cleartool describe -fmt "%n labels:%l\n" $CLEARCASE_PN' | grep labels:\w*$

, . grep , , "label:".

, , . , ...

+1

Source: https://habr.com/ru/post/1796285/


All Articles