cleartool:如何按时间顺序列出流中的所有标签? [英] cleartool: How to list all labels in a stream chronologically?

查看:66
本文介绍了cleartool:如何按时间顺序列出流中的所有标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想按时间顺序列出应用于流的所有标签。理想情况下,我希望每个标签都像下面这样:

I want to list all the labels applied to a stream in a chronological order. Ideally, I would like one like the following for each label:

 <label> <timestamp> <userid>

我看了几个问题。命令

 ct lstype -kind lbtype -invob . -short

来自问题 Clearcase:与特定字符串匹配的列表标签看起来很有希望,但它列出了在祖先流中应用的标签。我不希望那样,我只希望应用到当前流中的标签。

from the question "Clearcase: List labels matching a particular string" appeared promising, but it lists the labels that were applied in the ancestor streams. I do not want that, I want only the labels that are applied to the current stream.

我觉得一定有办法,但是很遗憾,我找不到。如果您有任何建议,我可以尝试一下。

I feel that there must be some way, but unfortunately I could not find out. If you have suggestions, I can try it out.

推荐答案

如果您提到Stream,则表示ClearCase UCM(包括UCM)基线。

If you are mentioning Stream, that means ClearCase UCM, which includes UCM Baselines.

您需要使用基线而不是标签进行推理:基线可以是增量基线,这意味着您将找不到 all 给定组件的元素。

(请参阅 在Clearcase UCM中,完全基准和增量基准之间有什么区别?。)

带有Lb类型和标签(受保护的)(通过超链接)到基线,但实际对象(与userId和日期相关联)是基线。

You need to reason with baselines, not labels: a baseline can be an incremental one, which means you won't find a label for all elements of a given component.
(See "What is the difference between Full baseline and Incremental baseline in Clearcase UCM?" for more).
Lbtypes and labels are attached ("guarded") to baselines (through an hyperlink), but the actual object (associated with a userId and a date) are baselines.

cleartool lsbl -stream aStream@\aPVob

这将列出所有基线最旧到最新,应用于给定流。

(请参见 cleartool man lsbl

That will list all the baselines, from the oldest to the newest, applied on a given stream.
(see cleartool man lsbl)

(由 danger89 cleartool lsbl -s -stream aStream @ \aPVob 将在每行显示
a简短版本。

As commented by danger89, cleartool lsbl -s -stream aStream@\aPVob would display a short version per line.

danger89 中添加注释


要获得漂亮的表输出,请使用:

To get a nice table output use:



(printf "Baseline|Label Status|Promotion Level|Owner|Predecessor baseline\n" \ ; cleartool lsbl -lev BUILT -fmt "%n|%[label_status]p|%[plevel]p|%[owner]p|%[predecessor]p\n" ) | column -t -s '|'

出于可读性的考虑,多行显示:

In multiple lines for readability:

(printf "Baseline|Label Status|Promotion Level|Owner|Predecessor baseline\n" \ ; 
 cleartool lsbl -lev BUILT -fmt "%n|%[label_status]p|%[plevel]p|%[owner]p|%[predecessor]p\n" )
   | column -t -s '|'

这篇关于cleartool:如何按时间顺序列出流中的所有标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆