gpt4 book ai didi

clearcase - cleartool:如何按时间顺序列出流中的所有标签?

转载 作者:行者123 更新时间:2023-12-02 18:05:18 26 4
gpt4 key购买 nike

我想按时间顺序列出应用于流的所有标签。理想情况下,我希望每个标签都具有如下所示的内容:

 <label> <timestamp> <userid>

我看了几个问题。命令

 ct lstype -kind lbtype -invob . -short

问题“Clearcase: List labels matching a particular string”看起来很有希望,但它列出了祖先流中应用的标签。我不希望这样,我只想要应用于当前流的标签。

我觉得一定有什么办法,可惜我没找到。如果您有建议,我可以尝试一下。

最佳答案

如果您提到 Stream,则指的是 ClearCase UCM,其中包括 UCM 基线。

您需要使用基线而不是标签进行推理:基线可以是增量基线,这意味着您找不到给定组件的所有元素的标签。
(更多信息请参见“What is the difference between Full baseline and Incremental baseline in Clearcase UCM?”)。
Lbtype 和标签附加(“ protected ”)到基线(通过超链接),但实际对象(与 userId 和日期关联)是基线。

cleartool lsbl -stream aStream@\aPVob

这将列出应用于给定流的所有基线,从最旧到最新。
(参见cleartool man lsbl)

commented通过 danger89 , cleartool lsbl -s -stream aStream@\aPVob 将显示每行一个简短版本。

<小时/>

danger89添加in the comments :

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 '|'

为了便于阅读,多行:

(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 '|'

关于clearcase - cleartool:如何按时间顺序列出流中的所有标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13035841/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com