2012-01-19 41 views
1

我们可以复制到我们活动的剪贴板变更集。如何获取活动的更改集?

但我们经常需要获得团队成员活动的变更。

我们可以通过GUI看到它。但我们想将变更集列表复制到某个文本文件中。

是否可以使用cleartool获得变更集?

我用下面的命令尝试,但仍然失败

V:\>cleartool lsactivity -l "PBI#503# to Model"\@My_PVOB 

这是我得到的错误:

cleartool: Error: Unable to determine VOB for pathname "My_PVOB".

五:是我的集成流映射驱动

回答

2

您应该指定活动ID而不是活动名称(标题)。 “PBI#503#to Model”看起来像活动名称。

+0

感谢哥们。是的,我用过这个名字。 – Samselvaprabu

2

“PBI#503#to Model”是所谓的标题的活动。

例如见cleartool chactivity

Changing the headline for an activity does not affect its name (its unique identifier).
For information about changing the activity's name, see rename.

example of an activity

您可以列出流的所有活动,然后格式化每个变更,如this thread(代码摘录):

my $istream = $ENV{CLEARCASE_STREAM}; 

my ($branch_name) = ($istream =~ /(.+)\@/); 
my $change_set = join "\n", 
sort map {/{4}(m:\[^\]+|.+\/vobs)?(.+)\@\@/i; $_ = $2 } 
grep { /$branch_name[\/\]0-9+$/o } 
qx{cleartool lsactivity -long $activity}; 

The $change_set scalar will have the changed elements list without the @@ extension or the M: , /vobs/ prefix

无论您的脚本lan瓜哥,这个想法仍然列出流中的所有活动:

cleartool lsact -in [email protected]\aPVob -fmt "%n\n" 

(该名单上只的活动,而不是头条新闻)

,然后为每个活动做你lsact -l名称找到。