Merge Dialog Box
Introduction
With the Merge dialog you can merge changes from a branch line to the main line. For example, a fix that you applied in a maintenance branch line can be merged back to the main line so that you do not have to apply the fix by hand again. Also if you completed developing a large feature in a separate branch line you can use merge to incorporate that feature into the main line.
To access the Merge dialog box, open Version Control > Merge Changes Here:
Available scenarios are described in sections below.
Port Fix
This scenario allows you to move a fix from a maintenance branch line to the main line. If you just want to redo a small fix, a single commit is often enough.
Port fix transports the actual commit from one branch and directly applies it, including author and commit text to another branch. This means you do not need to explicitly commit your change.
Branch Line
Choose the branch line from which you want to merge the fix.
One Revision/Multiple Revisions
Choose whether you want to merge just a single commit or a whole range of commits from the maintenance branch line. In the latter case both the start and end revisions must be selected. The start revision is the revision with the lowest number and the end revision is the revision with the highest number. Note that all revisions that are contained within the specified range are merged.
Merge Feature Branch
This merge scenario allows you to merge a complete feature branch line to the main line.
To merge the whole branch back to the main line to integrate a new feature there, do the following:
- Open the main line.
- Choose Version Control > Merge Changes Here.
- Select Merge feature branch option.
- Click Merge.
- Resolve any conflicts and errors.
- Commit the new feature to the main line.
Branch Line
Choose the branch line that you want to merge. It is not necessary to select individual revisions in this case, because all revisions of the branch line are merged automatically.