Activities delivered since the last baseline

When working in a UCM project, it is often useful to determine the activities delivered to an integration stream since the last baseline was applied. The cleartool diffbl command can accomplish this. However, cleartool diffbl must be run against each modifiable component that the project uses.

The command syntax is:

cleartool diffbl -activities baseline: stream:

For example:

1. First determine the most recent baseline created in the desired component.

%> cleartool lsbl -stream integration_stream -component user1_comp@/vobstore/pvob
25-Jul-01.11:12:59 REL1.1.117 user1 "REL1.1"
stream: integration_stream@/vobstore/pvob
component: user1_comp@/vobstore/pvob
23-Aug-01.16:09:43 REL1.2.117 user1 "REL1.2"
stream: integration_stream@/vobstore/pvob
component: user1_comp@/vobstore/pvob
23-Aug-01.16:22:29 REL1.3.117 user1 "REL1.3"
stream: integration_stream@/vobstore/pvob
component: user1_comp@/vobstore/pvob
31-Aug-01.12:20:21 REL1.4.117 user1 "REL1.4"
stream: integration_stream@/vobstore/pvob
component: user1_comp@/vobstore/pvob

2. Then run the following command to determine what activities have been delivered since the baselines creation:

%> cleartool diffbl -activities baseline:REL1.3.117 stream:integration_stream@/vobstore/pvob
>> deliver.development_steam.20010824.080503 "deliver development_steam on 08/24/01 08:05:03."
>> deliver.development_steam.20010824.080802 "deliver development_steam on 08/24/01 08:08:02."
>> deliver.development_steam.20010824.084755 "deliver development_steam on 08/24/01 08:47:55."
>> deliver.development_steam.20010828.102859 "deliver development_steam on 08/28/01 10:28:59.”
>> deliver.development_steam.20010831.121802 "deliver development_steam on 08/31/01 12:18:02."
-> trigger "trigger"

If you need to write a script to perform this operation, the following commands are useful...

1. To obtain the stream name the current view is associated with, run

cleartool lsstream -short -cview

2. To obtain the project the stream is associated with, run

cleartool describe -fmt "%[project]p\n" stream:

3. To obtain the modifiable components list, one component per line, run

cleartool describe -fmt "%[mod_comps]Np" project:

4. To list all the baselines for a given component in a given stream:

cleartool lsbl -comp -stream

No comments:

Post a Comment