mercurial/subrepo.py
changeset 37762 7269b87f817c
parent 37756 e7bf5a73e4e1
child 37778 f10cb49951e1
--- a/mercurial/subrepo.py	Mon Apr 16 23:39:30 2018 -0400
+++ b/mercurial/subrepo.py	Sat Apr 14 18:50:45 2018 -0400
@@ -562,7 +562,8 @@
             files = [f for f in files if match(f)]
         rev = self._state[1]
         ctx = self._repo[rev]
-        scmutil.fileprefetchhooks(self._repo, ctx, files)
+        scmutil.prefetchfiles(self._repo, [ctx.rev()],
+                              scmutil.matchfiles(self._repo, files))
         total = abstractsubrepo.archive(self, archiver, prefix, match)
         for subpath in ctx.substate:
             s = subrepo(ctx, subpath, True)