mercurial/subrepo.py
changeset 45072 a56ba57c837d
parent 44823 3b7aabd02e11
child 45375 8c466bcb0879
equal deleted inserted replaced
45071:196ba4d4eb86 45072:a56ba57c837d
   637         if match:
   637         if match:
   638             files = [f for f in files if match(f)]
   638             files = [f for f in files if match(f)]
   639         rev = self._state[1]
   639         rev = self._state[1]
   640         ctx = self._repo[rev]
   640         ctx = self._repo[rev]
   641         scmutil.prefetchfiles(
   641         scmutil.prefetchfiles(
   642             self._repo, [ctx.rev()], scmutil.matchfiles(self._repo, files)
   642             self._repo, [(ctx.rev(), scmutil.matchfiles(self._repo, files))]
   643         )
   643         )
   644         total = abstractsubrepo.archive(self, archiver, prefix, match)
   644         total = abstractsubrepo.archive(self, archiver, prefix, match)
   645         for subpath in ctx.substate:
   645         for subpath in ctx.substate:
   646             s = subrepo(ctx, subpath, True)
   646             s = subrepo(ctx, subpath, True)
   647             submatch = matchmod.subdirmatcher(subpath, match)
   647             submatch = matchmod.subdirmatcher(subpath, match)