comparison mercurial/localrepo.py @ 29825:426d931e5db2

manifest: introduce manifestlog and manifestctx classes This is the start of a large refactoring of the manifest class. It introduces the new manifestlog and manifestctx classes which will represent the collection of all manifests and individual instances, respectively. Future patches will begin to convert usages of repo.manifest to repo.manifestlog, adding the necessary functionality to manifestlog and instance as they are needed.
author Durham Goode <durham@fb.com>
date Wed, 17 Aug 2016 13:25:13 -0700
parents b9ee2a1c4e9c
children 93b44aa17691
comparison
equal deleted inserted replaced
29824:58d4ecdc531e 29825:426d931e5db2
502 502
503 @storecache('00manifest.i') 503 @storecache('00manifest.i')
504 def manifest(self): 504 def manifest(self):
505 return manifest.manifest(self.svfs) 505 return manifest.manifest(self.svfs)
506 506
507 @storecache('00manifest.i')
508 def manifestlog(self):
509 return manifest.manifestlog(self.svfs, self.manifest)
510
507 @repofilecache('dirstate') 511 @repofilecache('dirstate')
508 def dirstate(self): 512 def dirstate(self):
509 return dirstate.dirstate(self.vfs, self.ui, self.root, 513 return dirstate.dirstate(self.vfs, self.ui, self.root,
510 self._dirstatevalidate) 514 self._dirstatevalidate)
511 515