How to obtain Changeset of an activity?

依然范特西╮ 提交于 2019-12-01 13:09:19
Tamir Gefen

You should specify activity ID instead of activity name (headline). "PBI#503# to Model" seems like the activity name .

"PBI#503# to Model" is what is called the headline of the activity.

See cleartool chactivity for instance:

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

You can list all the activities of a stream and then format each changeset, as in this thread (extract of the code):

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

Whatever your script language, the idea remains to list all activities within a stream:

cleartool lsact -in aStream@\aPVob -fmt "%n\n"

(That list the names only of the activities, not the headlines)

And then, do your lsact -l for each activity name found.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!