mercurial/subrepo.py
changeset 36139 b72c6ff4e4c0
parent 36009 55e8efa2451a
child 36205 976e1cfb2f64
equal deleted inserted replaced
36138:a991fcc48222 36139:b72c6ff4e4c0
   554         files = self.files()
   554         files = self.files()
   555         if match:
   555         if match:
   556             files = [f for f in files if match(f)]
   556             files = [f for f in files if match(f)]
   557         rev = self._state[1]
   557         rev = self._state[1]
   558         ctx = self._repo[rev]
   558         ctx = self._repo[rev]
   559         cmdutil._prefetchfiles(self._repo, ctx, files)
   559         scmutil.fileprefetchhooks(self._repo, ctx, files)
   560         total = abstractsubrepo.archive(self, archiver, prefix, match)
   560         total = abstractsubrepo.archive(self, archiver, prefix, match)
   561         for subpath in ctx.substate:
   561         for subpath in ctx.substate:
   562             s = subrepo(ctx, subpath, True)
   562             s = subrepo(ctx, subpath, True)
   563             submatch = matchmod.subdirmatcher(subpath, match)
   563             submatch = matchmod.subdirmatcher(subpath, match)
   564             total += s.archive(archiver, prefix + self._path + '/', submatch,
   564             total += s.archive(archiver, prefix + self._path + '/', submatch,