mercurial/sparse.py
changeset 39544 9db856446298
parent 38901 1ff45c518e6f
child 41042 54c3b4bd01f2
--- a/mercurial/sparse.py	Tue Aug 21 15:09:22 2018 +0300
+++ b/mercurial/sparse.py	Tue Aug 21 16:11:17 2018 +0300
@@ -361,6 +361,11 @@
         elif file in wctx:
             prunedactions[file] = ('r', args, msg)
 
+        if branchmerge and type == mergemod.ACTION_MERGE:
+            f1, f2, fa, move, anc = args
+            if not sparsematch(f1):
+                temporaryfiles.append(f1)
+
     if len(temporaryfiles) > 0:
         repo.ui.status(_('temporarily included %d file(s) in the sparse '
                          'checkout for merging\n') % len(temporaryfiles))