comparison mercurial/manifest.py @ 1678:b345cc4c22c0

reverting 11d12bd6e1dcd9610fa26e97d25e7ad553e8ffa5 passing local everywhere violate the layering
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Thu, 15 Dec 2005 18:04:05 +0100
parents 11d12bd6e1dc
children c21b54f7f7b8
comparison
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]