##// END OF EJS Templates
store: use set instead of dict
Benoit Boissinot -
r8467:9890151a default
parent child Browse files
Show More
@@ -234,9 +234,9 b' class fncacheopener(object):'
234 234 self.entries = None
235 235
236 236 def loadfncache(self):
237 self.entries = {}
237 self.entries = set()
238 238 for f in fncache(self.opener):
239 self.entries[f] = True
239 self.entries.add(f)
240 240
241 241 def __call__(self, path, mode='r', *args, **kw):
242 242 if mode not in ('r', 'rb') and path.startswith('data/'):
@@ -245,7 +245,7 b' class fncacheopener(object):'
245 245 if path not in self.entries:
246 246 self.opener('fncache', 'ab').write(path + '\n')
247 247 # fncache may contain non-existent files after rollback / strip
248 self.entries[path] = True
248 self.entries.add(path)
249 249 return self.opener(hybridencode(path), mode, *args, **kw)
250 250
251 251 class fncachestore(basicstore):
General Comments 0
You need to be logged in to leave comments. Login now