Merging Trackers into Streams
|
|
You can merge to a tracker or branch only if you have the Working-Set - Administer permission on the target.
|
In some cases, it is useful to get the changes from a tracker branch in one stream to that tracker in either the parent or a child stream. For instance, consider a situation where the Quality team finds a bug in a release and verifies that the same bug exists in other releases too. Instead of fixing the bug in each release, it might be useful to fix it in only one release, and then apply the fix to the other releases. This can easily accomplished by merging streams trackers.
Every branched tracker included in a steam is associated with a branch of that tracker for that stream.
The merging process consists of the following steps:
• Selecting the branch to merge. This means selecting the source branch (in the previous example, this is the branch where the bug was fixed) and the target branch.
• Selecting the changes to apply to the target branch.
• Executing the merge.
Selecting a Branch to Merge
In Codebeamer, you can merge between any parent-child branches. There are two ways to start a merge:
• When in a stream, click

in the left pane. In the menu that appears, select from the following options:
◦ Merge to parent Branch: Uses the current branch as the source, and the parent branch as the target. If the parent branch is the Initial Stream, the option is Merge to Initial Stream.
◦ Merge from parent Branch: Uses the parent branch as the source and the current branch as the target. If the parent branch is the Initial Stream, the option is Merge from Initial Stream.
Alternative way to Merge Branches
You can also start a merge through the
Baselines and Branches dialog box, which can be opened using the

button in the action bar of a tracker page.
You can see the page when selecting the Branches tab:
On this page, you can see all the branches of the current tracker, even legacy branches not yet associated with a stream. You can select the Initial Stream and any other branch. Otherwise, the other branch must be an ancestor or a descendant of the selected branch. You can start the merge by clicking Merge branches.
Executing the Merge
On the Merge dialog box, you can see the differences between the selected branches:
The dialog box shows the different field values and the badges.
To see and merge only relevant changes, choose from the following Filters:
• Report: Select a single report to reduce the displayed merge items. Use this filter carefully because it is possible that the selected report might not contain items from one of the branches. Only the currently visible branches are merged.
• Apply to side: If you selected a report, the filter is locked to the right (source) if Created is selected under Difference type. Similarly, the filter is locked to the left (target) if Deleted is selected under Difference type.
• Difference type: Select from All, Updated, Created, or Deleted to filter based on the displayed items. If Updated or All are selected, the Apply to side filter is not restricted to either side.
• Field: Select from the available fields to filter the displayed items. This filter applies only to updated items. The filter is enabled only when All or Updated are selected under Difference type. The filter is not enabled when the Created or Deleted are selected under Difference type. By default, All fields are selected except the ones marked as Omit Merge. This means that by default, items with the changes only in the omitted fields are not shown.
After you made your filter selections, click GO.
◦ Mark all as merged: If you select this check box, badges are removed from all matching items, not only the ones that are shown on the current page. If you select a report and select this check box, only the items that match the selected report and the filter combination are merged. If you select a different report, any earlier check box selection is cleared.
◦ Copy all created: If you select this check box, all items that are created on the branch and are visible only on the current page, are copied to the target.
For items that were created on the stream, you have only one check box. Selecting it copies the item to the target branch and creates a hidden reference between the copy and branch item. After the operation is complete, you can track the field changes between the items. For updated items, you can select which fields to copy to the target item by clicking the Apply button for the field. If you want to copy all field values of an item, click the Apply button in the row of the name. This applies all changes.
If you do not want to merge any field changes between the branches but want to indicate that the change is not important for you, use Mark as merged for each updated tracker item. Clicking this option clears the badge on the document view without merging the changes.
The Swap Branches option changes the direction of the merge. The source branch becomes the target branch, and the target branch becomes the source branch. Clicking Swap Branches retains your filters.
Click Apply All for a bulk update on the current page, or click Apply to merge specific changes.
When you have selected the changes to apply, click the Merge button for the items on the current page. This applies the selected changes and redirects to the source stream branch. After the selected changes are applied, the badges of the merged items are cleared.
If there are items on subsequent pages, repeat the steps for the merge operation to merge the items on subsequent pages.
To adjust the page size, see the
"diffView" application configuration.
Skipping Fields During Merge
There are some fields that might change frequently but are not as important to be merged every time. For such fields, you can select omit on the field configuration page.
If this option is selected, then the fields are shown in a separate group. You can open this group and click the Apply button.