##// END OF EJS Templates
merge: drop commitinfo argument to applyupdates (API)...
Pulkit Goyal -
r45909:442823f6 default
parent child Browse files
Show More
@@ -1339,22 +1339,13 b' class updateresult(object):'
1339
1339
1340
1340
1341 def applyupdates(
1341 def applyupdates(
1342 repo,
1342 repo, mresult, wctx, mctx, overwrite, wantfiledata, labels=None,
1343 mresult,
1344 wctx,
1345 mctx,
1346 overwrite,
1347 wantfiledata,
1348 labels=None,
1349 commitinfo=None,
1350 ):
1343 ):
1351 """apply the merge action list to the working directory
1344 """apply the merge action list to the working directory
1352
1345
1353 mresult is a mergeresult object representing result of the merge
1346 mresult is a mergeresult object representing result of the merge
1354 wctx is the working copy context
1347 wctx is the working copy context
1355 mctx is the context to be merged into the working copy
1348 mctx is the context to be merged into the working copy
1356 commitinfo is a mapping of information which needs to be stored somewhere
1357 (probably mergestate) so that it can be used at commit time.
1358
1349
1359 Return a tuple of (counts, filedata), where counts is a tuple
1350 Return a tuple of (counts, filedata), where counts is a tuple
1360 (updated, merged, removed, unresolved) that describes how many
1351 (updated, merged, removed, unresolved) that describes how many
@@ -1369,10 +1360,7 b' def applyupdates('
1369 repo, wctx.p1().node(), mctx.node(), labels
1360 repo, wctx.p1().node(), mctx.node(), labels
1370 )
1361 )
1371
1362
1372 if commitinfo is None:
1363 for f, op in pycompat.iteritems(mresult.commitinfo):
1373 commitinfo = {}
1374
1375 for f, op in pycompat.iteritems(commitinfo):
1376 # the other side of filenode was choosen while merging, store this in
1364 # the other side of filenode was choosen while merging, store this in
1377 # mergestate so that it can be reused on commit
1365 # mergestate so that it can be reused on commit
1378 if op == b'other':
1366 if op == b'other':
@@ -2051,14 +2039,7 b' def update('
2051
2039
2052 wantfiledata = updatedirstate and not branchmerge
2040 wantfiledata = updatedirstate and not branchmerge
2053 stats, getfiledata = applyupdates(
2041 stats, getfiledata = applyupdates(
2054 repo,
2042 repo, mresult, wc, p2, overwrite, wantfiledata, labels=labels,
2055 mresult,
2056 wc,
2057 p2,
2058 overwrite,
2059 wantfiledata,
2060 labels=labels,
2061 commitinfo=mresult.commitinfo,
2062 )
2043 )
2063
2044
2064 if updatedirstate:
2045 if updatedirstate:
General Comments 0
You need to be logged in to leave comments. Login now