Search code examples
clearcase

Merging changes from one branch to other in Clearcase


I have some 100 files to be merged from one branch to the other. Here is the set up that I have.

There are two branches Branch A and Branch B. I have to merge elements pointed to by a particular label (say Label X ) on Branch A to Branch B.

What is the fastest way of doing this?


Solution

  • You can use the Merge manager, but I would suggest:

    • use a dynamic view as destination for the merge (even if you are usually working with a snapshot view). You will ensure:

      • a quicker merge (no problem of updates)
      • a merge not blocked by files currently checked out in your working view
    • set the merge manager with a label (and not just from a branch A, because it would select the LATEST element found in that branch, and not just the ones selected by LabelX)

    • preview it if you want in command line with the "cleartool findmerge" command.