##// END OF EJS Templates
caches: invalidate store caches when lock is taken...
Durham Goode -
r20884:2efdd186 default
parent child Browse files
Show More
@@ -996,6 +996,7 b' class localrepository(object):'
996 except AttributeError:
996 except AttributeError:
997 pass
997 pass
998 self.invalidatecaches()
998 self.invalidatecaches()
999 self.store.invalidatecaches()
999
1000
1000 def invalidateall(self):
1001 def invalidateall(self):
1001 '''Fully invalidates both store and non-store parts, causing the
1002 '''Fully invalidates both store and non-store parts, causing the
@@ -340,6 +340,9 b' class basicstore(object):'
340 def write(self, tr):
340 def write(self, tr):
341 pass
341 pass
342
342
343 def invalidatecaches(self):
344 pass
345
343 def __contains__(self, path):
346 def __contains__(self, path):
344 '''Checks if the store contains path'''
347 '''Checks if the store contains path'''
345 path = "/".join(("data", path))
348 path = "/".join(("data", path))
@@ -489,6 +492,9 b' class fncachestore(basicstore):'
489 def write(self, tr):
492 def write(self, tr):
490 self.fncache.write(tr)
493 self.fncache.write(tr)
491
494
495 def invalidatecaches(self):
496 self.fncache.entries = None
497
492 def _exists(self, f):
498 def _exists(self, f):
493 ef = self.encode(f)
499 ef = self.encode(f)
494 try:
500 try:
General Comments 0
You need to be logged in to leave comments. Login now