Merge Result Formats and Types
Merge supports five result types that control the level of post-processing applied to the raw merge output.
|
Result Type |
Description |
concurrent |
concurrent3 |
sequential |
|---|---|---|---|---|
|
|
Raw result with no post-processing |
✓ |
✓ |
✓ |
|
|
Adds |
✓ |
✓ |
✓ |
|
|
Applies default rules to auto-resolve simple add and delete changes |
✓ |
✓ |
— |
|
|
A simplified form of the DeltaV2 format suitable for document editors |
✓ |
✓ |
✓ |
|
|
Simplified format with simple adds/deletes auto-resolved |
✓ |
✓ |
— |
Three-Way Merge Additional Result Types
When using the concurrent3 merge type, three additional result types are available:
|
Result Type |
Description |
|---|---|
|
|
Produces a merge result with oXygen Author track-change processing instructions |
|
|
Performs three-to-two simplification, showing as many changes as possible |
|
|
Three-to-two simplification, showing conflicts for further resolution; simple non-conflicting changes are auto-resolved |
|
|
Three-to-two simplification; changes in the third input are displayed; non-conflicting changes in the second input are auto-resolved |
TwoWayResultFormat
For ALL_CHANGES, CONFLICTING_CHANGES, and THEIR_CHANGES result types, the output format can be controlled with the TwoWayResultFormat parameter:
|
Format |
Description |
|---|---|
|
|
Produces either a DeltaV2 result or a simplified delta result |
|
|
Produces an XML file with oXygen accept/reject processing instructions |
Setting the Result Type
Java API
ConcurrentMerge merge = new ConcurrentMerge();
merge.setResultType(ConcurrentMergeResultType.ANALYZED_DELTAV2);
Command Line
java -jar deltaxml-merge-x.y.z.jar merge concurrent ResultType=ANALYZED_DELTAV2 \
ancestor ancestor.xml anna anna.xml ben ben.xml result.xml