comparison mercurial/subrepo.py @ 36177:b72c6ff4e4c0

archive: migrate to the fileprefetch callback mechanism
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 11 Feb 2018 00:49:43 -0500
parents 55e8efa2451a
children 976e1cfb2f64
comparison
equal deleted inserted replaced
36176:a991fcc48222 36177: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,