[Request] [+ ] D8515: filemerge: add a hacktastic version of internal:merge3 for merge diffs

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Mon May 11 22:48:39 UTC 2020


durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This is a version of merge3 that always reports success, so that
  conflict markers get preserved without us having to implement conflict
  storage for in-memory merge. Credit to martinvonz for the idea.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8515

AFFECTED FILES
  mercurial/filemerge.py

CHANGE DETAILS

diff --git a/mercurial/filemerge.py b/mercurial/filemerge.py
--- a/mercurial/filemerge.py
+++ b/mercurial/filemerge.py
@@ -528,6 +528,16 @@
         labels.append(b'base')
     return _imerge(repo, mynode, orig, fcd, fco, fca, toolconf, files, labels)
 
+ at internaltool(
+    b'merge3-lie-about-conflicts',
+    fullmerge,
+    b'',
+    precheck=_mergecheck,
+)
+def _imerge3alwaysgood(*args, **kwargs):
+    b1, junk, b2 = _imerge3(*args, **kwargs)
+    return b1, False, b2
+
 
 def _imergeauto(
     repo,



To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200511/fca437b0/attachment.html>


More information about the Mercurial-patches mailing list