문제

I want to list all objects (including files and directories) recursively with labels their have.
When I run the following command, it writes only Rule. It does not write all labels on any object.

cleartool ls -r -l /view/stable/MYVOB/MyProject

Result :

version /view/stable/MYVOB/Car.java@@/main/3 Rule: element * TO_TEST
version /view/stable/MYVOB/Driver.java@@/main/2 Rule: element * TO_TEST

How can I list the all labels?
In addition, listing modifiers and modification date will be plus for me.

Thanks in advance...

도움이 되었습니까?

해결책

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.

다른 팁

Here is my solution :

cleartool find . -exec 'cleartool descr -fmt "%En@@%Sn|%u|%Fu|%Sd|%l|\n" "$CLEARCASE_PN"' 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top