2012-01-19 36 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名稱找到。