如何仅列出基线名称和UCM ClearCase中特定组件的流名称
问题描述:
有什么办法可以列出来自特定组件的所有基线的所有基线名称和流名称?
Is there any way that I can list all baselines' name and stream name for those baselines from a particular component?
答
基本命令为 cleartool lsbl
:
The basic command would be cleartool lsbl
:
cleartool lsbl -comp aComponent@\aPVob
然后可以使用 fmt_ccase
显示流以及基线。
You can then use fmt_ccase
to display the stream as well as the baseline.
cleartool lsbl -fmt "%n %[bl_stream]Xp\n" -comp aComponent@\aPVob
类似的命令将是:
cleartool lsbl -tree -comp aComponent@\aPVob
(以查看流及其在UCM项目中的位置。)
(to see the stream, and its location within the UCM project).
如果这不起作用,则可以针对第一个命令返回的每个基线执行以下操作:
If that doesn't work, you can, for each baseline returned by the first command, do a:
cleartool descr -fmt "%n %[bl_stream]Xp\n" aBaseline@\aPVob