mercurial/manifest.py
changeset 1678 b345cc4c22c0
parent 1677 11d12bd6e1dc
child 1680 c21b54f7f7b8
equal deleted inserted replaced
1677:11d12bd6e1dc 1678:b345cc4c22c0
    10 from i18n import gettext as _
    10 from i18n import gettext as _
    11 from demandload import *
    11 from demandload import *
    12 demandload(globals(), "bisect array")
    12 demandload(globals(), "bisect array")
    13 
    13 
    14 class manifest(revlog):
    14 class manifest(revlog):
    15     def __init__(self, opener, local=True):
    15     def __init__(self, opener):
    16         self.mapcache = None
    16         self.mapcache = None
    17         self.listcache = None
    17         self.listcache = None
    18         revlog.__init__(self, opener, "00manifest.i", "00manifest.d",
    18         revlog.__init__(self, opener, "00manifest.i", "00manifest.d")
    19                         local=local)
       
    20 
    19 
    21     def read(self, node):
    20     def read(self, node):
    22         if node == nullid: return {} # don't upset local cache
    21         if node == nullid: return {} # don't upset local cache
    23         if self.mapcache and self.mapcache[0] == node:
    22         if self.mapcache and self.mapcache[0] == node:
    24             return self.mapcache[1]
    23             return self.mapcache[1]