Show More
@@ -234,9 +234,9 b' class fncacheopener(object):' | |||||
234 | self.entries = None |
|
234 | self.entries = None | |
235 |
|
235 | |||
236 | def loadfncache(self): |
|
236 | def loadfncache(self): | |
237 |
self.entries = |
|
237 | self.entries = set() | |
238 | for f in fncache(self.opener): |
|
238 | for f in fncache(self.opener): | |
239 |
self.entries |
|
239 | self.entries.add(f) | |
240 |
|
240 | |||
241 | def __call__(self, path, mode='r', *args, **kw): |
|
241 | def __call__(self, path, mode='r', *args, **kw): | |
242 | if mode not in ('r', 'rb') and path.startswith('data/'): |
|
242 | if mode not in ('r', 'rb') and path.startswith('data/'): | |
@@ -245,7 +245,7 b' class fncacheopener(object):' | |||||
245 | if path not in self.entries: |
|
245 | if path not in self.entries: | |
246 | self.opener('fncache', 'ab').write(path + '\n') |
|
246 | self.opener('fncache', 'ab').write(path + '\n') | |
247 | # fncache may contain non-existent files after rollback / strip |
|
247 | # fncache may contain non-existent files after rollback / strip | |
248 |
self.entries |
|
248 | self.entries.add(path) | |
249 | return self.opener(hybridencode(path), mode, *args, **kw) |
|
249 | return self.opener(hybridencode(path), mode, *args, **kw) | |
250 |
|
250 | |||
251 | class fncachestore(basicstore): |
|
251 | class fncachestore(basicstore): |
General Comments 0
You need to be logged in to leave comments.
Login now