This is an archive of the discontinued Mercurial Phabricator instance.

filemerge: support passing labels to external merge tools
ClosedPublic

Authored by spectral on Feb 2 2018, 5:10 PM.

Details

Summary

This adds $labellocal, $labelother, and $labelbase to the replacement set for
merge-tools.<tool>.args config variables, and to the environment as HG_MY_LABEL,
HG_OTHER_LABEL, and HG_BASE_LABEL, respectively.

We also add merge-tools.<tool>.mergemarkers and
merge-tools.<tool>.mergemarkertemplate config variables as counterparts of
the variables available in [ui]. We are intentionally *not* respecting
ui.mergemarkers when calling out to external merge programs; too often the
default template will be too wide to display comfortably in most GUIs.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

spectral created this revision.Feb 2 2018, 5:10 PM
yuja accepted this revision.Feb 3 2018, 9:36 PM
This revision is now accepted and ready to land.Feb 3 2018, 9:36 PM
This revision was automatically updated to reflect the committed changes.