[Request] [+- ] D11886: simplemerge: avoid a call to `pycompat.strkwargs()`
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Wed Dec 8 05:56:37 UTC 2021
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11886
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
@@ -516,25 +516,23 @@
m3 = Merge3Text(basetext, localtext, othertext)
extrakwargs = {
- b"localorother": opts.get("localorother", None),
- b'minimize': True,
+ "localorother": opts.get("localorother", None),
+ 'minimize': True,
}
if mode == b'union':
- extrakwargs[b'start_marker'] = None
- extrakwargs[b'mid_marker'] = None
- extrakwargs[b'end_marker'] = None
+ extrakwargs['start_marker'] = None
+ extrakwargs['mid_marker'] = None
+ extrakwargs['end_marker'] = None
elif name_base is not None:
- extrakwargs[b'base_marker'] = b'|||||||'
- extrakwargs[b'name_base'] = name_base
- extrakwargs[b'minimize'] = False
+ extrakwargs['base_marker'] = b'|||||||'
+ extrakwargs['name_base'] = name_base
+ extrakwargs['minimize'] = False
if mode == b'mergediff':
lines, conflicts = _mergediff(m3, name_a, name_b, name_base)
else:
lines = list(
- m3.merge_lines(
- name_a=name_a, name_b=name_b, **pycompat.strkwargs(extrakwargs)
- )
+ m3.merge_lines(name_a=name_a, name_b=name_b, **extrakwargs)
)
conflicts = m3.conflicts and not mode == b'union'
To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20211208/bad35622/attachment-0001.html>
More information about the Mercurial-patches
mailing list