Merge text view
Use this view to merge files.
The Merge view is opened automatically when a rebase or deliver operation is started and that operation requires a manual merge before completion.
You can adjust display and behavior preferences for the Merge text view in the Compare/Merge Preferences page (
). These preferences include showing line numbers, hiding the base contributor pane and automatically scrolling to the first merge point.Difference and merge point markers
The following table provides a description of the difference markers used in the Compare/Merge view.
Difference type | Marker | Description |
---|---|---|
Changed | Indicates that this difference contains lines that are changed from the base contributor. | |
Default | Indicates that this section of text (if a file) or set of files (if a directory) is the same in all contributors. Note that there is no visual marker. However, a hover help is displayed when you hold the cursor over the beginning of the line. | |
Deleted | Indicates that this difference does not contain lines that are included in the base contributor. | |
DeleteMoved | Indicates that lines have been removed from this location and moved to a new location. Note that this marker does not apply to directories. | |
Different Object ID | (This marker applies to comparing or merging directories only and does not apply to text files.) Indicates that this difference contains at least one file or directory that has the same name in the base contributor, but that the file or directory was deleted and created again and is considered to be a different file or directory. | |
Inserted | Indicates that this difference contains lines that are not displayed in the base contributor. | |
InsertMoved | Indicates that this difference contains lines that were moved from another location to this location. Note that this marker does not apply to directories. | |
Padding | Indicates that Diff Merge has padded this difference with extra blank lines to align text with other contributors, which have insertions in this region. This padding is not displayed in the merge output. | |
Unchanged | Indicates that this contributor does not differ from the base contributor at this location, but that another contributor does contain differences at this location. Also appears in the base contributor to indicate that there is a difference at the marked point in another contributor. |
ClearCase Compare/Merge View Toolbar
The ClearCase® Compare/Merge view toolbar contains the following icons for the merge operation:
Icon name | Icon | Description |
---|---|---|
Save Merge Output | Save merge output and close Compare/Merge view. If you were merging as part of a rebase or delivery operation, the operation resumes. | |
Contributor 1 | Accept changes from contributor 1. When a merge
point is selected in a contributor, the button displays a "+" character
to right of the numeral. Note: There are an unlimited number of contributors.
A similar button with a unique number is displayed for each contributor.
Clicking the button that is associated with a contributor accepts
changes from that contributor. |
|
Resolve and Advance | Resolve the current unresolved difference with the specified output and advance to the next unresolved difference. | |
Go To First Difference | Highlight the first difference in both contributors. Note: Note that if you want
the Merge view to automatically scroll to the first unresolved difference, you can select the
Automatically scroll to the first difference or unresolved merge point option
on the page. |
|
Go To Previous Unresolved Difference | Highlight previous unresolved difference. | |
Go To Previous Difference | Highlight previous difference. Only available if there is a difference higher in the file than the currently selected difference. | |
Go To Next Difference | Highlight next difference. Only available if there is a difference lower in the file than the currently selected difference. | |
Go To Next Unresolved Difference | Highlight next unresolved difference. | |
Go To Last Difference | Highlight the last difference in both contributors. | |
Menu | Displays the Compare/Merge view options menu, which
contains the following options:.
|
|
Pin View | Click to pin the current Compare/Merge view to
your workspace. This allows you to run a new compare or merge operation
in a separate Compare/Merge view. Note: This option is ignored for
a Merge view and all Merge views are automatically pinned. |