Cleartool-列出带有标签的对象 [英] Cleartool - List Objects with Their Labels
问题描述
我想用其拥有的标签递归列出所有对象(包括文件和目录).
当我运行以下命令时,它只写规则.它不会在所有对象上写所有标签.
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
cleartool ls -r -l /view/stable/MYVOB/MyProject
结果:
version/view/stable/MYVOB/Car.java@@/main/3规则:元素* TO_TEST
版本/view/stable/MYVOB/Driver.java@@/main/2规则:元素* TO_TEST
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.
预先感谢...
推荐答案
您可以使用 fmt_ccase 选项以显示关联的标签
You can use a cleartool find
, using fmt_ccase options to display the associated labels
Windows语法:
Windows Syntax:
cleartool find . -type f -ele "brtype(mybranch)" -exec "cleartool descr -fmt \"%n labels:%l\n\" \"%CLEARCASE_PN%\""
Unix语法:
cleartool find . -type f -ele "brtype(mybranch)" -exec 'cleartool descr -fmt "%n labels:%l\n" "$CLEARCASE_PN"'
这个想法是要描述通过使用fmt_ccase指令的%l
选项找到的每个元素($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.
这篇关于Cleartool-列出带有标签的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!