[Updated] D8904: merge: drop commitinfo argument to applyupdates (API)
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sat Aug 8 16:57:54 UTC 2020
Closed by commit rHG442823f66889: merge: drop commitinfo argument to applyupdates (API) (authored by pulkit).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D8904?vs=22312&id=22349
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D8904/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D8904
AFFECTED FILES
mercurial/merge.py
CHANGE DETAILS
diff --git a/mercurial/merge.py b/mercurial/merge.py
--- a/mercurial/merge.py
+++ b/mercurial/merge.py
@@ -1339,22 +1339,13 @@
def applyupdates(
- repo,
- mresult,
- wctx,
- mctx,
- overwrite,
- wantfiledata,
- labels=None,
- commitinfo=None,
+ repo, mresult, wctx, mctx, overwrite, wantfiledata, labels=None,
):
"""apply the merge action list to the working directory
mresult is a mergeresult object representing result of the merge
wctx is the working copy context
mctx is the context to be merged into the working copy
- commitinfo is a mapping of information which needs to be stored somewhere
- (probably mergestate) so that it can be used at commit time.
Return a tuple of (counts, filedata), where counts is a tuple
(updated, merged, removed, unresolved) that describes how many
@@ -1369,10 +1360,7 @@
repo, wctx.p1().node(), mctx.node(), labels
)
- if commitinfo is None:
- commitinfo = {}
-
- for f, op in pycompat.iteritems(commitinfo):
+ for f, op in pycompat.iteritems(mresult.commitinfo):
# the other side of filenode was choosen while merging, store this in
# mergestate so that it can be reused on commit
if op == b'other':
@@ -2051,14 +2039,7 @@
wantfiledata = updatedirstate and not branchmerge
stats, getfiledata = applyupdates(
- repo,
- mresult,
- wc,
- p2,
- overwrite,
- wantfiledata,
- labels=labels,
- commitinfo=mresult.commitinfo,
+ repo, mresult, wc, p2, overwrite, wantfiledata, labels=labels,
)
if updatedirstate:
To: pulkit, #hg-reviewers, indygreg
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200808/81b89f6a/attachment-0002.html>
More information about the Mercurial-patches
mailing list