# HG changeset patch # User Matt Harbison # Date 1518328183 18000 # Node ID b72c6ff4e4c0ba90d72fab0e51da53d7931d96bd # Parent a991fcc482228215b44e966dacf86bc69a89b184 archive: migrate to the fileprefetch callback mechanism diff -r a991fcc48222 -r b72c6ff4e4c0 mercurial/archival.py --- a/mercurial/archival.py Sun Feb 11 00:30:15 2018 -0500 +++ b/mercurial/archival.py Sun Feb 11 00:49:43 2018 -0500 @@ -18,10 +18,10 @@ from .i18n import _ from . import ( - cmdutil, error, formatter, match as matchmod, + scmutil, util, vfs as vfsmod, ) @@ -338,7 +338,7 @@ total = len(files) if total: files.sort() - cmdutil._prefetchfiles(repo, ctx, files) + scmutil.fileprefetchhooks(repo, ctx, files) repo.ui.progress(_('archiving'), 0, unit=_('files'), total=total) for i, f in enumerate(files): ff = ctx.flags(f) diff -r a991fcc48222 -r b72c6ff4e4c0 mercurial/subrepo.py --- 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)