560 files = self.files() |
560 files = self.files() |
561 if match: |
561 if match: |
562 files = [f for f in files if match(f)] |
562 files = [f for f in files if match(f)] |
563 rev = self._state[1] |
563 rev = self._state[1] |
564 ctx = self._repo[rev] |
564 ctx = self._repo[rev] |
565 scmutil.fileprefetchhooks(self._repo, ctx, files) |
565 scmutil.prefetchfiles(self._repo, [ctx.rev()], |
|
566 scmutil.matchfiles(self._repo, files)) |
566 total = abstractsubrepo.archive(self, archiver, prefix, match) |
567 total = abstractsubrepo.archive(self, archiver, prefix, match) |
567 for subpath in ctx.substate: |
568 for subpath in ctx.substate: |
568 s = subrepo(ctx, subpath, True) |
569 s = subrepo(ctx, subpath, True) |
569 submatch = matchmod.subdirmatcher(subpath, match) |
570 submatch = matchmod.subdirmatcher(subpath, match) |
570 total += s.archive(archiver, prefix + self._path + '/', submatch, |
571 total += s.archive(archiver, prefix + self._path + '/', submatch, |