[Updated] D11902: simplemerge: remove now-unused `localorother` argument from `merge_lines()`
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Dec 21 15:05:27 UTC 2021
Closed by commit rHGbd27dad294b7: simplemerge: remove now-unused `localorother` argument from `merge_lines()` (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11902?vs=31437&id=31558
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11902/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11902
AFFECTED FILES
mercurial/simplemerge.py
CHANGE DETAILS
diff --git a/mercurial/simplemerge.py b/mercurial/simplemerge.py
--- a/mercurial/simplemerge.py
+++ b/mercurial/simplemerge.py
@@ -96,7 +96,6 @@
mid_marker=b'=======',
end_marker=b'>>>>>>>',
base_marker=None,
- localorother=None,
minimize=False,
):
"""Return merge in cvs-like form."""
@@ -128,28 +127,21 @@
for i in range(t[1], t[2]):
yield self.b[i]
elif what == b'conflict':
- if localorother == b'local':
- for i in range(t[3], t[4]):
- yield self.a[i]
- elif localorother == b'other':
- for i in range(t[5], t[6]):
- yield self.b[i]
- else:
- self.conflicts = True
- if start_marker is not None:
- yield start_marker + newline
- for i in range(t[3], t[4]):
- yield self.a[i]
- if base_marker is not None:
- yield base_marker + newline
- for i in range(t[1], t[2]):
- yield self.base[i]
- if mid_marker is not None:
- yield mid_marker + newline
- for i in range(t[5], t[6]):
- yield self.b[i]
- if end_marker is not None:
- yield end_marker + newline
+ self.conflicts = True
+ if start_marker is not None:
+ yield start_marker + newline
+ for i in range(t[3], t[4]):
+ yield self.a[i]
+ if base_marker is not None:
+ yield base_marker + newline
+ for i in range(t[1], t[2]):
+ yield self.base[i]
+ if mid_marker is not None:
+ yield mid_marker + newline
+ for i in range(t[5], t[6]):
+ yield self.b[i]
+ if end_marker is not None:
+ yield end_marker + newline
else:
raise ValueError(what)
To: martinvonz, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211221/4b7ccf03/attachment-0002.html>
More information about the Mercurial-patches
mailing list