|
Merging a Branch to the Trunk
|
Top Previous Next |
| 1. | Map the current work area to the trunk.
|
| 2. | Merge branch changes to the work area. Solve merge conflicts (if any exist).
|
| 3. | Perform manual merges (if any).
|
| 4. | Test the merged version.
|
| 5. | Commit the merged version to the Repository.
|
|
|
| 1. | Open the ComponentSoftware Administrator (refer to Using the ComponentSoftware Administrator in Branching and Merging).
|
| 2. | From the Project drop-down list, select the project that the branch is a part of.
|
| 3. | From the Branch drop-down list, select the desired branch.
|
| 4. | From the Project menu, click Set Work Area for Merge.
|
| 5. | A message appears confirming that the work area has been mapped to the trunk.
|
| 6. | Click OK.
|
|
|
|
|
| 1. | From the Project menu in the ComponentSoftware Administrator, click Merge Branch to Work Area. This command loops through all documents that need merging and lists those files which require special treatment.
|
| 2. | If any files require merging, the File Merge Dialog will appear. This dialog will allow you to analyze the merge results and to resolve any merge conflicts which may exist in the files which are to be merged. For more details, refer to File merging, later in this chapter.
|
| 3. | From the Project menu, click Launch Explorer.
|
| The Document Explorer appears.
|
| Note the files with the following status:
|
| · | Modified Files merged manually or automatically by CS-RCS.
|
| · | Added on Branch Files added on the branch.
|
| · | New Files removed by the branch. Merging removes the working file to assure the trunk is built correctly.
|
| Note: This command also locks the branch revision to avoid further revision updates before the merge result is committed to the trunk.
|
|
|
|
|
| 1. | Open the Revision Manager (refer to Using the Revision Manager Tool in CS-RCS Tools in the User Guide chapter).
|
| 2. | Select the branch head revision.
|
| 2. | Click View Revision to open the branch head revision with VISIO.
|
| 3. | Open the normal working file with VISIO. (This is the trunk head revision.)
|
| 4. | Visually analyze the changes on both drawings. You can use the revision history comments to determine the changes done on each revision.
|
| 5. | Copy changes from the branch revision and paste them to the working file (i.e., the trunk revision).
|
| 6. | Save the working file.
|
| 1. | Checks-in all Modified files within the work area to the trunk.
|
| 2. | Adds new files added by the branch.
|
| 3. | Removes files made obsolete by the branch.
|
| 4. | Releases the lock from all branch revisions used on this merge.
|
| 5. | Saves the current branch/trunk status to enable future merges. CS-RCS supports multiple branch merges.
|
| · | If you accidentally performed a normal check-in, you must still click Check-in Work Area to Trunk to perform all the required merge sequences.
|
| · | Merge from trunk to branch or from branch to non-parent branch is rarely used. Such a merge is supported by copying the desired files to the destination branch and rejecting unwanted changes by using the CSDiff tool. For more details, refer to the Branching and Merging section of the FAQ.
|