×

back Merge Label Trees

View and resolve differences between label trees.

BIIGLE allows you to compare two label trees and resolve the differences between them. This is called a "merge". If the changes of a label tree B should be applied to a "base" label tree A, the label tree B is "merged into" label tree A.

To perform a merge, you must be a member of the base label tree, i.e. you must be able to modify the labels of the tree. Click in the dropdown menu at the top of the label tree overview to start a new merge. The next view asks you to select a label tree that should be merged into the base label tree. Type the name of the label tree and select it from the list, then click .

The merge view visualizes the differences between the two label trees. The left column shows the relevant labels of the base label tree (A). The right column shows the relevant labels of the label tree to merge (B). Only those labels are shown that are relevant for the merge. Most labels that both label trees have in common are hidden from the merge view.

There are two types of differences:

  • A label exists in label tree A but not in label tree B. This is called a "deletion".
  • A label exists in label tree B but not in label tree A. This is called an "addition".

A deletion is displayed as a red row in the merge view. To accept a deletion for the merge, click the button to the left of the row. When a deletion is accepted and the merge is performed, the label will be deleted from the base label tree.

An addition is displayed as a green row in the merge view. To accept an addition for the merge, click the button to the left of the row. When an addition is accepted and the merge is performed, the label will be added at the appropriate position to the base label tree.

You can also use the and buttons to toggle all merge items at once.

Once you are satisfied with the changes that should be applied to the base label tree on the left, click . The changes will be applied and you can go to the base label tree.

Caveats

There are a few special cases that the merge view handles for you:

  • Labels are compared solely based on their names. If you have multiple labels with the same name on the same level in both label trees, the merge view might not be displayed correctly.
  • If you want to delete a label that has child labels, the child labels must be deleted, too. The merge view will accept the deletion of the child labels automatically in this case. Equally, if you unselect an accepted deletion, all parent labels that are accepted deletions will be unselected, too.
  • If you want to add a label that has a parent label which is also an addition, the parent label must be added, too. The merge view will accept the addition of the parent label(s) automatically in this case. Equally, if you unselect an accepted addition, all child labels that are accepted additions will be unselected, too.
  • Labels which are used or which have child labels that are used cannot be deleted.