如何在某些流中列出ClearCase活动? [英] How to list ClearCase activities in certain streams?

查看:48
本文介绍了如何在某些流中列出ClearCase活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种方法可以指定在一个命令行调用中获取哪些活动列表的流?



现在我正在构建基于VOB或单个流的活动列表,使用以下任一方法:

  ct lsact -invob vob_name 

  ct lsact -in stream:stream_name 

但是,现在我试图对其进行过滤从锁定/过时项目上的流中删除活动。我已经有了未锁定项目中的流的列表,但是我不知道有什么方法可以将其传递给 cleartool lsact。



正在运行 ct lsact -invob,然后过滤输出会花费太长时间(最多30秒才能从cleartool获得输出),所以我希望可以通过某种方式将流传递给ct lsact或ct describe命令,或者



有什么想法吗?

解决方案

不是总是似乎永远无法让ClearCase以您想要的形式告诉您您想知道什么吗?



可能使用-fmt选项

  ct lsact -fmt%[stream] Xp%n\n -inv / vobs / my_pvob 

然后您可以通过grep(-v)或其他过滤器工具通过管道排除/获得感兴趣的项目。
因为不可能只列出活动流的活动,所以另一种方法是在锁定项目/流时也锁定活动,然后将过时的活动排除在外(使用-obsolete列出所有活动)。 / p>

或者,基于VonC建议,处理活动流(无-obs开关)-无需存储列表(unix):

 用于$中的流(ct lsstream%Xn -inv / vobs / my_pvob);做
echo ::: $ {stream}
ct lsact -in $ {stream}
完成


I'm wondering if there is a way to specify which streams to get a list of activitis for in one command line call?

Right now I'm building a list of activities based on either a vob or an individual stream, using either:

ct lsact -invob vob_name

or

ct lsact -in stream:stream_name

However, now I'm trying to filter it a little bit to remove activities from streams that are on locked/obsolete projects. I've got the list of streams that are on unlocked projects already, but I don't know of any way to pass this in to "cleartool lsact".

Running "ct lsact -invob", then filtering the output takes too long (upwards of 30 seconds to get output from cleartool), so I am hoping there is some way I can pass in the streams to a ct lsact or ct describe command, or something else, to do the filtering in the command instead of after.

Any ideas?

解决方案

Doesn't it always seem you can never quite get ClearCase to tell you what you want to know in the form you want?

An alternative may be to use the -fmt option

ct lsact -fmt "%[stream]Xp %n\n" -inv /vobs/my_pvob

You can then pipe through grep (-v) or other filter tool to exclude/get the projects of interest. Since it's not possible to list activities only for active streams, the alternative would be to also lock your activities when you lock the project/stream, then obsolete activities would be excluded (use -obsolete to list all activities).

Or, building on VonC suggestion, process the active streams (no -obs switch) - without the need to store the list (unix):

for stream in $(ct lsstream "%Xn" -inv /vobs/my_pvob); do
   echo ::: ${stream}
   ct lsact -in ${stream}
done

这篇关于如何在某些流中列出ClearCase活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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