IBM Support

How to find and remove unwanted baseline dependencies

Question & Answer


Question

How do you find and remove unwanted IBM Rational ClearCase UCM baseline dependencies?

Answer

When maintaining baseline dependencies in a stream,

    • A dependency of component A on component B may be added by one of the following methods:
          • cleartool mkbl -component A -adepends_on B  basename_for_new_baseline
          • Rebasing the stream onto a new foundation of component A, which has a dependency on Component B
          • On a ClearCase Windows host, using the "Edit Baseline Dependencies" dialog
    • A dependency of component A on component B may be removed by one of the following methods:
          • cleartool mkbl -component A -ddepends_on B  basename_for_new_baseline
          • On a ClearCase Windows host, using the "Edit Baseline Dependencies" dialog
In particular, rebasing to a new foundation of component A, which does NOT have a dependency on component B, will NOT cause "A depends on B" to be dropped from the dependency hierarchy of the stream that is being rebased. This could result in a stream with dependencies that the stream owner does not want or expect.

The script findUnwantedDependency.pl attempts to detect this situation:

    Perl findUnwantedDependency.pl [stream-selector]

If the script suspects that there is a dependency that is not wanted, it prints the mkbl ... -ddepends_on ... command  that you would run to remove that dependency.

[{"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":"8.0.1.7","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
08 August 2018

UID

swg21697253