mercurial/commands.py
changeset 45648 3a024d7cd08e
parent 45565 c1d0f83d62c4
child 45649 bba730d7a6f4
--- a/mercurial/commands.py	Thu Sep 10 18:40:01 2020 +0900
+++ b/mercurial/commands.py	Thu Sep 10 16:14:48 2020 +0900
@@ -3606,7 +3606,7 @@
                     % {b'filename': fn, b'revnum': pycompat.bytestr(rev),}
                 )
 
-    def prep(ctx, fns):
+    def prep(ctx, fmatch):
         rev = ctx.rev()
         pctx = ctx.p1()
         matches.setdefault(rev, {})
@@ -3621,7 +3621,8 @@
         else:
             contextmanager = util.nullcontextmanager
         with contextmanager():
-            for fn in fns:
+            assert fmatch.isexact()
+            for fn in fmatch.files():
                 # fn might not exist in the revision (could be a file removed by
                 # the revision). We could check `fn not in ctx` even when rev is
                 # None, but it's less racy to protect againt that in readfile.