Merging Item Revisions and Files

Purpose

Merge item revisions to combine the updates made to each of them in parallel into a single new revision.

Once you have specified details for the new item revision, Dimensions CM invokes either the Serena Merge Tool or, in the case of UNIX platforms, the mgdiff tool, to enable you to perform the merging of the contents of the item files.

For items in a stream this operation can only be performed in the context of an Update operation.

PRIVILEGES  Revise Item Content

To merge item revisions:

  1. Do one of the following:

    If you want to start the merge from...

    Do the following...

    An item revision

    In an Items list, select the required item revision, and select Item | Merge.

    An item that has conflicting revisions

    Select the item and select Item | Resolve Merge Conflicts.

    On the first page of the Merge wizard, select the revision that you want to use as the starting revision from the list.

    A file in your project work area

    Expand the Work Areas node in the My Current Project window, and select the My Area icon.

    Navigate to the required file, right-click, and select Merge.

    If the selected file is under Dimensions CM control, the Merge Wizard is opened with Item-based merge selected and the appropriate revision displayed, otherwise it is opened with File-based merge selected.

    Any local workfile

    Select an item and select Item | Merge.

    On the first page of the Merge wizard, select File-based merge and use the browse button to select a file.

  2.  

  3. Verify your selection and click Next >.

  4. On the Merge Target page, select the option for the output/target, to contain the contents of the merge:

  5. Note that if you selected File-based merge on the first page, you will only see the option Merge to a file.

  6. Click Next >

  7. If you have selected a revision as the starting revision/file, select the other revision(s) that you want to be included in the merge in the Merge with these revisions list.

  8. Select any workfiles you want to include in the merge by clicking Add... and browsing for the file. Repeat this for any additional files. If you want to remove a file from the list, select it and click Remove. Use Ctrl + Click to select and remove multiple files.

  9. To continue completing the options for the merge, click Next >.

  10. If you want to complete the merge at this point by ending the Merge wizard and launching the merge tool, click Finish. (Note, however, that if you have selected a new revision as the target, the next two pages determine some options and attributes for the new item revision that you may need to supply. For example, there may be mandatory attributes for the item type.)

    Follow the instructions in the online help for the Serena Merge Tool, or see Chapter , "Using the Serena Merge Tool" on page 521 in the Serena® Dimensions® CM User's Guide for more details.

    If you selected an item revision on the first page of the Merge wizard, the Options page is displayed

  11. Enter the details you require:

  12. If you want to dismiss the Merge wizard and start the merge process, click Finish, otherwise click Next >.

  13. On the Attributes tab, type or select any values you want to enter.

  14. If you want to dismiss the Merge wizard and start the merge process, click Finish, otherwise, click Next >

  15. Verify the details you have selected for the merge. You can return to change the details on previous pages by clicking < Back.

  16. Click Finish. The Serena Merge Tool opens, unless you chose Automatic Merge and there were no conflicts, or you selected Mark revisions as already merged with selected item.

  17. Follow the instructions in the online help for the Serena Merge Tool, or see Chapter , "Using the Serena Merge Tool" on page 521 in the Serena® Dimensions® CM User's Guide for more details.

Related Topics

Selecting Items

About Comparing and Merging Item Files

Merge Item Wizard