##// END OF EJS Templates
manifest: delete manifest.manifest class...
Durham Goode -
r30377:2019fbda default
parent child Browse files
Show More
@@ -508,7 +508,7 b' class localrepository(object):'
508 # This is a temporary function while we migrate from manifest to
508 # This is a temporary function while we migrate from manifest to
509 # manifestlog. It allows bundlerepo and unionrepo to intercept the
509 # manifestlog. It allows bundlerepo and unionrepo to intercept the
510 # manifest creation.
510 # manifest creation.
511 return manifest.manifest(self.svfs)
511 return manifest.manifestrevlog(self.svfs)
512
512
513 @storecache('00manifest.i')
513 @storecache('00manifest.i')
514 def manifestlog(self):
514 def manifestlog(self):
@@ -1558,22 +1558,3 b' class treemanifestctx(object):'
1558
1558
1559 def find(self, key):
1559 def find(self, key):
1560 return self.read().find(key)
1560 return self.read().find(key)
1561
1562 class manifest(manifestrevlog):
1563 def __init__(self, opener, dir='', dirlogcache=None):
1564 '''The 'dir' and 'dirlogcache' arguments are for internal use by
1565 manifest.manifest only. External users should create a root manifest
1566 log with manifest.manifest(opener) and call dirlog() on it.
1567 '''
1568 # During normal operations, we expect to deal with not more than four
1569 # revs at a time (such as during commit --amend). When rebasing large
1570 # stacks of commits, the number can go up, hence the config knob below.
1571 cachesize = 4
1572 usetreemanifest = False
1573 opts = getattr(opener, 'options', None)
1574 if opts is not None:
1575 cachesize = opts.get('manifestcachesize', cachesize)
1576 usetreemanifest = opts.get('treemanifest', usetreemanifest)
1577 self._mancache = util.lrucachedict(cachesize)
1578 self._treeinmem = usetreemanifest
1579 super(manifest, self).__init__(opener, dir=dir, dirlogcache=dirlogcache)
General Comments 0
You need to be logged in to leave comments. Login now