1

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.

LivCool
  • 253
  • 1
  • 12

1 Answers1

1

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%.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • thanks @vonc, but where I supposed to write the above code or this is a one line command ? – LivCool Aug 26 '15 at 05:38
  • @R.Sha it is a bash script. – VonC Aug 26 '15 at 05:47
  • ok @vonc, but I am unable to find where would I put two baselines into which i have to see the difference like xyz.00.0101 and xyz.00.0102. – LivCool Aug 26 '15 at 07:05
  • @R.Sha I have edited the answer to ad the diffbl part. – VonC Aug 26 '15 at 07:09
  • Thanks @vonc, I am about to reach at my goal, but a little confusion here in 2nd line of code above, what this "%[versions]p" versions refer here. – LivCool Aug 26 '15 at 07:22
  • @R.Sha it refers to `fmt_ccase`: https://www-01.ibm.com/support/knowledgecenter/SSSH27_8.0.1/com.ibm.rational.clearcase.cc_ref.doc/topics/fmt_ccase.htm?cp=SSSH27_8.0.1%2F4-0-0-0-6-6 – VonC Aug 26 '15 at 07:23
  • @R.Sha Don't forget to revisit your previous question and accet the ones that are resolved: http://stackoverflow.com/help/accepted-answer – VonC Aug 26 '15 at 07:24
  • can we achieve the same in batch file instead of bash as I am on windows platform – LivCool Aug 27 '15 at 06:41
  • @R.Sha First, don't forget to revisit your previous question and accet the ones that are resolved: http://stackoverflow.com/help/accepted-answer – VonC Aug 27 '15 at 06:42