diff --git a/mercurial/copies.py b/mercurial/copies.py
index d049ee8eee00c545f5ac373d7823a7062ceddfd4_bWVyY3VyaWFsL2NvcGllcy5weQ==..07a66c1387d171d3532526c1aa85eeee83763b46_bWVyY3VyaWFsL2NvcGllcy5weQ== 100644
--- a/mercurial/copies.py
+++ b/mercurial/copies.py
@@ -511,8 +511,9 @@
         # unmatched file from topological common ancestors (no DAG rotation)
         # need to recompute this for directory move handling when grafting
         mta = tca.manifest()
-        u1u, u2u = _computenonoverlap(repo, c1, c2, m1.filesnotin(mta),
-                                                    m2.filesnotin(mta),
+        u1u, u2u = _computenonoverlap(repo, c1, c2,
+                                      m1.filesnotin(mta, repo.narrowmatch()),
+                                      m2.filesnotin(mta, repo.narrowmatch()),
                                       baselabel='topological common ancestor')
 
     for f in u1u:
diff --git a/tests/test-narrow-copies.t b/tests/test-narrow-copies.t
index d049ee8eee00c545f5ac373d7823a7062ceddfd4_dGVzdHMvdGVzdC1uYXJyb3ctY29waWVzLnQ=..07a66c1387d171d3532526c1aa85eeee83763b46_dGVzdHMvdGVzdC1uYXJyb3ctY29waWVzLnQ= 100644
--- a/tests/test-narrow-copies.t
+++ b/tests/test-narrow-copies.t
@@ -71,5 +71,4 @@
   $ hg ci -Aqm 'add inside/f5'
   $ hg --config extensions.rebase= rebase -d 'public()' -r .
   rebasing 6:610b60178c28 "add inside/f5" (tip)
-  abort: data/outside/f3.i@54e53435331b: no match found!
-  [255]
+  saved backup bundle to $TESTTMP/narrow/.hg/strip-backup/610b60178c28-65716a78-rebase.hg