Integration with Mercurial

 Table of Contents


This sample is provided to show DeltaXML DITA Merge integration with mercurial (hg) for merge and update operations.

The sample currently supports the command-line client usage on a unix system.

Please read the comments from the shell-script provided in the sample directory for detailed configuration steps.

Usage notes and tips

The DeltaXML DITA Merge merge results have deltaxml attributes at the root node which should be removed manually while resolving the conflcits.

DeltaXML DITA Merge can be used with DeltaXML-DITA-Merge.args=$base $local $other $output result-type=conflicting-changes word-by-word=true.

The parameter 'result-type' works well with one of the following settings available at commandline:

  • simplified-delta
  • simplified-rule-processed-delta
  • conflicting-changes
  • their-changes
  • all-changes

simplified-delta and simplified-rule-processed-delta

The simplfied result-types show three way merge and are easier to understand.

These results have deltaxml markups and attributes only for the changes. So it is easier to edit and resolve conflicts.

conflicting-changes, their-changes and all-changes

The result types conflicting-changes, their-changes and all-changes are three to two merge results. For more details, please visit three to two way merge use cases guide.

These results have deltaxml markups only at the change but deltaxml:deltaV2 atrributes are appear throughout xml hierarchy. Users should remove these attributes manually.

The oXygen track changes can also be applied to these output formats which will allow the user to accept and reject changes interactively. The result-format command-line option can be used to select this output format.

#content .code