Comments
Patch
@@ -22,6 +22,7 @@
error,
formatter,
match as matchmod,
+ scmutil,
util,
vfs as vfsmod,
)
@@ -338,7 +339,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)
@@ -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)