Merging
At some stage during the development process, you will want to merge the changes made on a branch back into the trunk, or vice-versa. The merge is accomplished by comparing two points (branches or revisions) in the repository and applying the obtained differences to your working copy. This process is closely related to the diff concept.
The Merge action is available in the Tools menu. The working copy item selected when you issued the command will be the one receiving the generated changes. If there is no item selected, the merge operation will be performed on the entire working copy.
The four types of merging are as follows:
- Merge revisions - Port changes from one branch to another. Note that the trunk can also be considered a branch, in this context.
- Synchronize branch - Fetch all the changes made on a parent branch (or the trunk) to a child branch.
- Reintegrate a branch - Merge a branch back to its parent branch (can also be the trunk).
- Merge two different trees - Integrate the changes done on a branch to a different branch.
It is recommended that you enable the following pre-merge check:
Perform pre-merge best practices checks of the working copy target - When selected, the SVN Client checks if the working copy target item is ready for the merge operation and displays the pre-merge checks wizard page.