7.3 Creating a New Baseline

As developers deliver work to the integration stream or feature-specific development stream, it is important that you make new baselines frequently to record the changes. Developers can then rebase to the new baselines and stay current with each other's changes. Before you make the baseline, make sure that the stream is still locked so that developers cannot deliver work to the stream.

Making the New Baseline

To make new baselines for all components in the stream:

  1. In the Project Explorer, select the integration stream or feature-specific development stream where you want to make the baseline.

  2. Click Tools > Make Baseline. The Make Baseline dialog box opens, (Figure 31).

Figure 31 Make Baseline Dialog Box

  1. Enter a name in the Baseline Root Name box. By default, ClearCase names the baseline by appending the date to the project's name. If the baseline is a composite baseline, ClearCase uses the root name plus a unique suffix for each of the member baselines that contribute to the composite baseline.

  2. Choose the type of baseline to create.

  3. An incremental baseline is a baseline that ClearCase creates by recording the last full baseline and those versions that have changed since the last full baseline was created.

    A full baseline is a baseline that ClearCase creates by recording all versions below the component's root directory.

    Generally, incremental baselines are faster to create than full baselines; however, ClearCase can look up the contents of a full baseline faster than it can look up the contents of an incremental baseline.

  4. Specify a view in which to perform the operation. Choose a view that is attached to the stream where you want to make the baseline.

Making a Baseline for a Set of Activities

By default, all activities modified since the last baseline was made are included in the new baseline. There might be times when you want to create a baseline that includes only certain activities. To do so, click the Activities tab in the Make Baseline dialog box, and select the activities that you want to go into the baseline.

Making a Baseline of One Component

To make a baseline for one specific component rather than all components in the stream, perform the following steps:

  1. In the Project Explorer, select the stream in which you want to create a new baseline. Click File > Properties to display the stream's property sheet.

  2. Click the Baselines tab. Select a component, and click Make Baseline.

  3. Fill in the fields of the Make Baseline dialog box, then click OK.

Unlocking the Stream

After you create a new baseline, unlock the integration or feature-specific development stream so that developers can resume delivering work to the stream. To unlock the stream:

  1. In the Project Explorer, select the stream.

  2. Click File > Properties to display the stream's property sheet.

  3. Click the Lock tab.

  4. Click Unlocked and then click OK.