Question & Answer
Question
How do you undo (remove and recreate) an IBM® Rational® ClearCase® UCM baseline that may have been created inadvertently or if it is found to be unstable after testing?
Answer
To undo a baseline, the baseline must be removed and then a new one can be created.
Here are some considerations before proceeding:
- The baseline cannot have already been modified in any UCM stream of any project, or removing the baseline will fail. You will not be able to remove the baseline, but rather, you will need to make any necessary changes to correct the baseline, then make a new baseline, recommend it, and rebase all streams.
- If the component is read-only in the project, but there is an error that changes have already been made in the stream, then refer to technote 1150870 to address that error.
- An error will occur if the baseline has been rebased to any development or child streams. To remove the baseline from the foundation of a UCM stream, using cleartool rebase -dbaseline baseline@\ProjectVOB. This must be run against each stream reported in the error to remove the baseline from the foundation of the stream.
- If this is a recommended baseline, then you should first remove it from the recommended list:
- Reset the recommended baseline list by specifying all the baselines, except the one you are going to remove:
cleartool chstream -recommended BL1@\ProjectVOB,BL2@\ProjectVOB
stream:stream-name@\ProjectVOB
OR
- Clear all the recommended baselines that are currently set for the stream:
cleartool chstream -nc -nrecommended stream:stream-name@\ProjectVOB
- Note: If you are seeing errors because you have removed a recommended baseline refer to technote 1226431.
- Find the baseline, cleartool lsbl -component component_name@\ProjectVOB
C:\>cleartool lsbl -component chowchow@\BigDog
....
08-Jan-03.13:42:31 Cust_Test_01_08_03 UserName "Cust_Test_01_08_03"
stream: Cust_Test_Integration@\BigDog
component: chowchow@\BigDog
....
- Remove the baseline, cleartool rmbl baseline_name\@ProjectVOB
Note: After removing the baseline, all the activities that were in this baseline will be available to be added in a new baseline.
C:\>cleartool rmbl Cust_Test_01_08_03@\BigDog
Remove baseline "Cust_Test_01_08_03@\BigDog"? [no] y
cleartool: Warning: Searching PVOB "\BigDog" for baselines that depend
upon baseline "Cust_Test_01_08_03". This may take a few minutes...
Removed baseline "Cust_Test_01_08_03@\BigDog".
C:\>
- Make a new baseline,
CLI: cleartool mkbl -view integration_view activity_name
C:\>cleartool mkbl -view UserName_Cust_Test_integration Cust_Test_01_08_03
No changes in component "removecomp" since last baseline;
no baseline created.
No changes in component "disappear" since last baseline;
no baseline created.
No changes in component "smalltalk" since last baseline;
no baseline created.
Created baseline "Cust_Test_01_08_03" in component "chowchow".
Begin incrementally labeling baseline "Cust_Test_01_08_03".
Done incrementally labeling baseline "Cust_Test_01_08_03".
C:\>
Note: By default this will pick up all the activities to be baselined. There are additional options for use with the cleartool mkbl command, see the IBM Rational ClearCase Command Reference, or run cleartool man mkbl.
From the graphical user interface (GUI):
- Start Project Explorer
- Right-click the integration stream
- Select Make Baseline.
Note: There is a Help button on the Make Baseline applet for additional information.
Removing the UCM Baseline:
The baseline can only be removed from the command line interface (CLI), see the below example:
Related Information
[{"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":"PF015","label":"IRIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Documentation","Platform":[{"code":"","label":""}],"Version":"","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"}}]
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21147318