mercurial/subrepo.py
changeset 37762 7269b87f817c
parent 37756 e7bf5a73e4e1
child 37778 f10cb49951e1
equal deleted inserted replaced
37761:ff6b0a20849d 37762:7269b87f817c
   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,