IBM Support

Cloning a ClearCase UCM baseline

Question & Answer


Question

How can I create a copy of baselines created prior to the latest baseline for a stream?

Answer

Introduction

The IBM® Rational® ClearCase ® mkbl command supports the -identical option to create a copy of an existing baseline, with the constraint that the baseline to be copied must be the latest baseline on the stream.

IBM Rational ClearCase release 7.0.1.07 introduces a new option to the mkbl command, -clone, that allows you to copy an earlier version of a baseline. This can be useful when one needs to rename an existing baseline to adhere to some standard, for example.

Syntax

The command syntax is:

mkbl -clone [-view view-tag] baseline-root-name new-baseline-name

The -view flag is optional. It allows you to create a clone of the baseline from another stream. The baseline is created on the stream attached to the view-tag.

Examples

Here is an example of how to use the command with a simple sequence of baselines. Consider the time line of a stream as follows:

    BL1
    BL2
    BL3
    BL4

Create a clone of baseline BL1 with the following command:

mkbl -clone BL1 BL1_CLONE

The resulting time line for the stream is:
    BL1
    BL1_CLONE
    BL2
    BL3
    BL4

The new label BL1_CLONE will be applied to all the versions on which BL1 was applied as a result of the clone operation.

In the case of a composite baseline, the mkbl -clone command does not act recursively and does not create a clone of each member baseline. It creates only the clone of the composite baseline whose clone was requested.

For example, in the case of:
    C1
    |___M1
    |
    |___M2

The clone is created as follows:
    C1_CLONE
    |___M1
    |
    |___M2

    In case of Multisite if mkbl -clone is used at one site then the other site where Multisite packets are replayed (the machine having Multisite server) should be on a version not lower than 7.0.1.7/7.1.1 otherwise it will result in unexpected behavior.

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"UCM","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.1.7;7.1.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21395663