示例#1
0
 def __init__(self, opener, dir='', dirlogcache=None):
     '''The 'dir' and 'dirlogcache' arguments are for internal use by
     manifest.manifest only. External users should create a root manifest
     log with manifest.manifest(opener) and call dirlog() on it.
     '''
     # During normal operations, we expect to deal with not more than four
     # revs at a time (such as during commit --amend). When rebasing large
     # stacks of commits, the number can go up, hence the config knob below.
     cachesize = 4
     usetreemanifest = False
     usemanifestv2 = False
     opts = getattr(opener, 'options', None)
     if opts is not None:
         cachesize = opts.get('manifestcachesize', cachesize)
         usetreemanifest = opts.get('treemanifest', usetreemanifest)
         usemanifestv2 = opts.get('manifestv2', usemanifestv2)
     self._mancache = util.lrucachedict(cachesize)
     self._treeinmem = usetreemanifest
     self._treeondisk = usetreemanifest
     self._usemanifestv2 = usemanifestv2
     indexfile = "00manifest.i"
     if dir:
         assert self._treeondisk
         if not dir.endswith('/'):
             dir = dir + '/'
         indexfile = "meta/" + dir + "00manifest.i"
     revlog.revlog.__init__(self, opener, indexfile)
     self._dir = dir
     # The dirlogcache is kept on the root manifest log
     if dir:
         self._dirlogcache = dirlogcache
     else:
         self._dirlogcache = {'': self}
示例#2
0
 def __init__(self, opener, dir='', dirlogcache=None):
     '''The 'dir' and 'dirlogcache' arguments are for internal use by
     manifest.manifest only. External users should create a root manifest
     log with manifest.manifest(opener) and call dirlog() on it.
     '''
     # During normal operations, we expect to deal with not more than four
     # revs at a time (such as during commit --amend). When rebasing large
     # stacks of commits, the number can go up, hence the config knob below.
     cachesize = 4
     usetreemanifest = False
     usemanifestv2 = False
     opts = getattr(opener, 'options', None)
     if opts is not None:
         cachesize = opts.get('manifestcachesize', cachesize)
         usetreemanifest = opts.get('treemanifest', usetreemanifest)
         usemanifestv2 = opts.get('manifestv2', usemanifestv2)
     self._mancache = util.lrucachedict(cachesize)
     self._treeinmem = usetreemanifest
     self._treeondisk = usetreemanifest
     self._usemanifestv2 = usemanifestv2
     indexfile = "00manifest.i"
     if dir:
         assert self._treeondisk
         if not dir.endswith('/'):
             dir = dir + '/'
         indexfile = "meta/" + dir + "00manifest.i"
     revlog.revlog.__init__(self, opener, indexfile)
     self._dir = dir
     # The dirlogcache is kept on the root manifest log
     if dir:
         self._dirlogcache = dirlogcache
     else:
         self._dirlogcache = {'': self}
示例#3
0
 def __init__(self, opener):
     # During normal operations, we expect to deal with not more than four
     # revs at a time (such as during commit --amend). When rebasing large
     # stacks of commits, the number can go up, hence the config knob below.
     cachesize = 4
     usetreemanifest = False
     opts = getattr(opener, 'options', None)
     if opts is not None:
         cachesize = opts.get('manifestcachesize', cachesize)
         usetreemanifest = opts.get('usetreemanifest', usetreemanifest)
     self._mancache = util.lrucachedict(cachesize)
     revlog.revlog.__init__(self, opener, "00manifest.i")
     self._usetreemanifest = usetreemanifest
示例#4
0
 def __init__(self, opener):
     # During normal operations, we expect to deal with not more than four
     # revs at a time (such as during commit --amend). When rebasing large
     # stacks of commits, the number can go up, hence the config knob below.
     cachesize = 4
     usetreemanifest = False
     usemanifestv2 = False
     opts = getattr(opener, 'options', None)
     if opts is not None:
         cachesize = opts.get('manifestcachesize', cachesize)
         usetreemanifest = opts.get('usetreemanifest', usetreemanifest)
         usemanifestv2 = opts.get('manifestv2', usemanifestv2)
     self._mancache = util.lrucachedict(cachesize)
     revlog.revlog.__init__(self, opener, "00manifest.i")
     self._treeinmem = usetreemanifest
     self._treeondisk = usetreemanifest
     self._usemanifestv2 = usemanifestv2
示例#5
0
 def __init__(self, opener):
     # we expect to deal with not more than four revs at a time,
     # during a commit --amend
     self._mancache = util.lrucachedict(4)
     revlog.revlog.__init__(self, opener, "00manifest.i")
示例#6
0
 def __init__(self, opener):
     # we expect to deal with not more than three revs at a time in merge
     self._mancache = util.lrucachedict(3)
     revlog.revlog.__init__(self, opener, "00manifest.i")
示例#7
0
 def __init__(self, opener):
     # we expect to deal with not more than three revs at a time in merge
     self._mancache = util.lrucachedict(3)
     revlog.revlog.__init__(self, opener, "00manifest.i")