mercurial/bundlerepo.py
changeset 39763 5ccd791344f3
parent 39604 335ae4d0a552
child 39818 24e493ec2229
equal deleted inserted replaced
39762:edaa40dc5fe5 39763:5ccd791344f3
   362         self._cgunpacker.changelogheader()
   362         self._cgunpacker.changelogheader()
   363         c = bundlechangelog(self.svfs, self._cgunpacker)
   363         c = bundlechangelog(self.svfs, self._cgunpacker)
   364         self.manstart = self._cgunpacker.tell()
   364         self.manstart = self._cgunpacker.tell()
   365         return c
   365         return c
   366 
   366 
   367     def _constructmanifest(self):
   367     @localrepo.unfilteredpropertycache
       
   368     def manifestlog(self):
   368         self._cgunpacker.seek(self.manstart)
   369         self._cgunpacker.seek(self.manstart)
   369         # consume the header if it exists
   370         # consume the header if it exists
   370         self._cgunpacker.manifestheader()
   371         self._cgunpacker.manifestheader()
   371         linkmapper = self.unfiltered().changelog.rev
   372         linkmapper = self.unfiltered().changelog.rev
   372         m = bundlemanifest(self.svfs, self._cgunpacker, linkmapper)
   373         rootstore = bundlemanifest(self.svfs, self._cgunpacker, linkmapper)
   373         self.filestart = self._cgunpacker.tell()
   374         self.filestart = self._cgunpacker.tell()
   374         return m
   375 
       
   376         return manifest.manifestlog(self.svfs, self, rootstore)
   375 
   377 
   376     def _consumemanifest(self):
   378     def _consumemanifest(self):
   377         """Consumes the manifest portion of the bundle, setting filestart so the
   379         """Consumes the manifest portion of the bundle, setting filestart so the
   378         file portion can be read."""
   380         file portion can be read."""
   379         self._cgunpacker.seek(self.manstart)
   381         self._cgunpacker.seek(self.manstart)