[Updated] D12605: diff: add help text to highlight the ability to do "merge diffs"
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Mon May 9 15:53:14 UTC 2022
Closed by commit rHGa6cfc09dcb81: diff: add help text to highlight the ability to do "merge diffs" (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12605?vs=33355&id=33380
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12605/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12605
AFFECTED FILES
mercurial/commands.py
tests/test-help.t
CHANGE DETAILS
diff --git a/tests/test-help.t b/tests/test-help.t
--- a/tests/test-help.t
+++ b/tests/test-help.t
@@ -644,7 +644,8 @@
Note:
'hg diff' may generate unexpected results for merges, as it will
default to comparing against the working directory's first parent
- changeset if no revisions are specified.
+ changeset if no revisions are specified. To diff against the conflict
+ regions, you can use '--config diff.merge=yes'.
By default, the working directory files are compared to its first parent.
To see the differences from another revision, use --from. To see the
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2536,7 +2536,8 @@
:hg:`diff` may generate unexpected results for merges, as it will
default to comparing against the working directory's first
- parent changeset if no revisions are specified.
+ parent changeset if no revisions are specified. To diff against the
+ conflict regions, you can use `--config diff.merge=yes`.
By default, the working directory files are compared to its first parent. To
see the differences from another revision, use --from. To see the difference
To: mharbison72, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220509/38486d6a/attachment-0002.html>
More information about the Mercurial-patches
mailing list