diff mercurial/subrepo.py @ 36139:b72c6ff4e4c0

archive: migrate to the fileprefetch callback mechanism
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 11 Feb 2018 00:49:43 -0500
parents 55e8efa2451a
children 976e1cfb2f64
line wrap: on
line diff
--- a/mercurial/subrepo.py	Sun Feb 11 00:30:15 2018 -0500
+++ b/mercurial/subrepo.py	Sun Feb 11 00:49:43 2018 -0500
@@ -556,7 +556,7 @@
             files = [f for f in files if match(f)]
         rev = self._state[1]
         ctx = self._repo[rev]
-        cmdutil._prefetchfiles(self._repo, ctx, files)
+        scmutil.fileprefetchhooks(self._repo, ctx, files)
         total = abstractsubrepo.archive(self, archiver, prefix, match)
         for subpath in ctx.substate:
             s = subrepo(ctx, subpath, True)