LivCool
LivCool

Reputation: 253

How to retrieve the list of files modified in same branch for different component in clear case

I need to retrieve the list of changes or activity in same branch for different component(or Project group). Say I am committing the changes for two components ABC & xyz in same branch. And whenever I create build I apply the label abc.00.date & xyz.00.date respectively. Now major CQ's are of abc so whenever I make build for xyz and apply lable, label attach to abc chnages and when I compare the baseline with comapre tool, it shows the chnages of abc project also.

My requirement is to get the changes between label of xyz.00.date group ONLY as there is numerous lables of two groups in same branch.

Upvotes: 1

Views: 163

Answers (1)

VonC
VonC

Reputation: 1323483

I need to retrieve the list of changes or activity in same branch for different component

The main command remains cleartool lsactivity, as illustrated here:

foreach act ( `cleartool lsact -in astream@/vobs/avob` )    
    set changeset = `cleartool lsact -fmt "%[versions]p" $act`
    echo $changeset | tr ' ' '\n' >> $tmpoutput
end

For the difference between baselines, use cleartool diffbl, as in "Why does Clearcase diffbl include activities from my development stream when I diff integration stream baselines?"

cleartool diffbl -nmerge -act bl1 bl2

That will give you a list of activities that you can feed to the foreach loop above, modified as:

foreach act ( `cleartool diffbl -nmerge -act bl1 bl2` ) 

On Windows, those unix commands are available with the installation of Gnu On Windows: uncompress, and add GoW\bin to your %PATH%.

Upvotes: 1

Related Questions