mercurial/merge.py
branchstable
changeset 38757 d49e490a9e85
parent 38732 be4984261611
child 39463 7fea205fd5dc
--- a/mercurial/merge.py	Fri Jul 27 14:53:28 2018 +0300
+++ b/mercurial/merge.py	Fri Jul 27 14:56:10 2018 +0300
@@ -1424,14 +1424,13 @@
                 del actions[f]
         repo.ui.note(_('end of auction\n\n'))
 
-    _resolvetrivial(repo, wctx, mctx, ancestors[0], actions)
-
     if wctx.rev() is None:
         fractions = _forgetremoved(wctx, mctx, branchmerge)
         actions.update(fractions)
 
     prunedactions = sparse.filterupdatesactions(repo, wctx, mctx, branchmerge,
                                                 actions)
+    _resolvetrivial(repo, wctx, mctx, ancestors[0], actions)
 
     return prunedactions, diverge, renamedelete