IBM Support

Creating an identical baseline in UCM

Question & Answer


Question

How can you create an identical baseline in IBM® Rational® ClearCase® UCM when no changes have been delivered since the last baseline and are there any cautions to be aware of when using this functionality against non-modifiable components?

Answer

CAUTION:

There is functionality available for creating identical baselines in ClearCase UCM, but this should be used with discretion against read-only (non-modifiable) components as per the following technotes:

  • 1150870 - Unable to remove a non-modifiable component from a stream's configuration

  • 1145335 - Cannot rebase a non-modifiable component after creating a new baseline with the -identical option

A more appropriate option may be to Remove and recreate UCM baselines. Review technote 1147318 for more information.



Behavior of mkbl


By default running mkbl will create a new baseline if changes have been made to the previous baseline. If no changes have been made, ClearCase will refuse to create a new baseline.

mkbl -identical will create an identical baseline to the previous baseline even if no changes have been made to the previous baseline.

mkbl -identical will not create an "identical" baseline to the previous baseline if changes have been made to that previous baseline. It will create new a baseline that includes all changes since the previous baseline,


Creating Identical Baselines

Creating a duplicate (identical) baseline can be achieved by using cleartool mkbl -identical.

The new baseline will contain all the same change set versions as the previous baseline, but you can supply a new baseline name.

A new baseline can be applied across one or more components depending on the switches you use with the mkbl command.

Note: After creating a new baseline, you need to rebase your streams to the newly created baseline.

Option 1


    To create a baseline with a custom name across all components in a stream, use the following command syntax:
    • To create an Incremental Baseline:

      cleartool mkbl -identical <baseline-name>

    • To create a Full Baseline:

      cleartool mkbl -identical -full <baseline-name>


    Example:
    M:\repro_dev\ucmcvob\reprocomp>cleartool mkbl -identical new_baseline_name
    Created baseline "new_baseline_name.202" in component "ucmcomp_b".
    Created baseline "new_baseline_name.9093" in component "reprocomp".
    Created baseline "new_baseline_name" in component "ucmcomp".
    Begin incrementally labeling baseline "new_baseline_name.9093".
    Done incrementally labeling baseline "new_baseline_name.9093".
    Begin incrementally labeling baseline "new_baseline_name".
    Done incrementally labeling baseline "new_baseline_name".

    Note: Each baseline created under a single PVOB requires a unique name, regardless of which component it is attached to.


Option 2

    To create a baseline with a custom name across one component in a stream, use the following command:
    • To Create an Incremental Baseline:

      cleartool mkbl -component component:<component-name>@\<pvob-tag> -identical <baseline-name>

    • To Create a Full Baseline:

      cleartool mkbl -component component:<component-name>@\<pvob-tag> -identical -full <baseline-name>


    Example:

    M:\repro_dev\ucmcvob\reprocomp>cleartool mkbl -component component:ucmcomp@\ucmpvob -identical single_baseline_name
    Created baseline "single_baseline_name" in component "ucmcomp".
    Begin incrementally labeling baseline "single_baseline_name".
    Done incrementally labeling baseline "single_baseline_name".

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"UCM: Baseline","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.1;7.0.1.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"UCM: Baseline","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21257603