diff --git a/mercurial/copies.py b/mercurial/copies.py
index f1c1b4d0e695045a685655808716aedc91550473_bWVyY3VyaWFsL2NvcGllcy5weQ==..873f3682c8af2c4e62b0af810a6424db148ac386_bWVyY3VyaWFsL2NvcGllcy5weQ== 100644
--- a/mercurial/copies.py
+++ b/mercurial/copies.py
@@ -219,6 +219,7 @@
 def _forwardcopies(a, b, match=None):
     """find {dst@b: src@a} copy mapping where a is an ancestor of b"""
 
+    match = a.repo().narrowmatch(match)
     # check for working copy
     if b.rev() is None:
         if a == b.p1():
diff --git a/tests/test-narrow-copies.t b/tests/test-narrow-copies.t
index f1c1b4d0e695045a685655808716aedc91550473_dGVzdHMvdGVzdC1uYXJyb3ctY29waWVzLnQ=..873f3682c8af2c4e62b0af810a6424db148ac386_dGVzdHMvdGVzdC1uYXJyb3ctY29waWVzLnQ= 100644
--- a/tests/test-narrow-copies.t
+++ b/tests/test-narrow-copies.t
@@ -62,5 +62,4 @@
   $ hg pull -q
   $ hg --config extensions.rebase= rebase -d tip
   rebasing 3:4f84b666728c "add inside/f4"
-  abort: data/outside/f3.i@54e53435331b: no match found!
-  [255]
+  saved backup bundle to $TESTTMP/narrow/.hg/strip-backup/4f84b666728c-4269b76e-rebase.hg