Mercurial > hg
comparison mercurial/merge.py @ 45290:d70c972cec74
sparse: pass mergeresult obj in sparse.filterupdatesactions() (API)
Not able to see much which can be improved in this function by passing in
mergeresult object but for API consistency and no function directly touching
actions dict, it sounds like a good idea.
Differential Revision: https://phab.mercurial-scm.org/D8828
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 24 Jul 2020 19:19:47 +0530 |
parents | 1d1f112da75c |
children | 26fa2eebc291 |
comparison
equal
deleted
inserted
replaced
45289:1d1f112da75c | 45290:d70c972cec74 |
---|---|
1128 | 1128 |
1129 if wctx.rev() is None: | 1129 if wctx.rev() is None: |
1130 fractions = _forgetremoved(wctx, mctx, branchmerge) | 1130 fractions = _forgetremoved(wctx, mctx, branchmerge) |
1131 mresult.updateactions(fractions) | 1131 mresult.updateactions(fractions) |
1132 | 1132 |
1133 prunedactions = sparse.filterupdatesactions( | 1133 sparse.filterupdatesactions(repo, wctx, mctx, branchmerge, mresult) |
1134 repo, wctx, mctx, branchmerge, mresult.actions | |
1135 ) | |
1136 mresult.setactions(prunedactions) | |
1137 _resolvetrivial(repo, wctx, mctx, ancestors[0], mresult) | 1134 _resolvetrivial(repo, wctx, mctx, ancestors[0], mresult) |
1138 | 1135 |
1139 return mresult | 1136 return mresult |
1140 | 1137 |
1141 | 1138 |