mercurial/copies.py
changeset 41936 a791623458ef
parent 41932 7694b685bb10
child 42115 27475ae67676
--- a/mercurial/copies.py	Mon Mar 11 09:35:36 2019 -0700
+++ b/mercurial/copies.py	Mon Mar 11 09:20:26 2019 -0700
@@ -17,7 +17,6 @@
     match as matchmod,
     node,
     pathutil,
-    scmutil,
     util,
 )
 from .utils import (
@@ -193,7 +192,7 @@
     # this comparison.
     forwardmissingmatch = match
     if b.p1() == a and b.p2().node() == node.nullid:
-        filesmatcher = scmutil.matchfiles(a._repo, b.files())
+        filesmatcher = matchmod.exact(b.files())
         forwardmissingmatch = matchmod.intersectmatchers(match, filesmatcher)
     missing = _computeforwardmissing(a, b, match=forwardmissingmatch)