##// END OF EJS Templates
localrepo: clear the filecache on _rollback() and destroyed()...
Idan Kamara -
r17324:9f94358f stable
parent child Browse files
Show More
@@ -1000,6 +1000,9 b' class localrepository(object):'
1000 self.sjoin('phaseroots'))
1000 self.sjoin('phaseroots'))
1001 self.invalidate()
1001 self.invalidate()
1002
1002
1003 # Discard all cache entries to force reloading everything.
1004 self._filecache.clear()
1005
1003 parentgone = (parents[0] not in self.changelog.nodemap or
1006 parentgone = (parents[0] not in self.changelog.nodemap or
1004 parents[1] not in self.changelog.nodemap)
1007 parents[1] not in self.changelog.nodemap)
1005 if parentgone:
1008 if parentgone:
@@ -1067,9 +1070,6 b' class localrepository(object):'
1067 pass
1070 pass
1068 self.invalidatecaches()
1071 self.invalidatecaches()
1069
1072
1070 # Discard all cache entries to force reloading everything.
1071 self._filecache.clear()
1072
1073 def _lock(self, lockname, wait, releasefn, acquirefn, desc):
1073 def _lock(self, lockname, wait, releasefn, acquirefn, desc):
1074 try:
1074 try:
1075 l = lock.lock(lockname, 0, releasefn, desc=desc)
1075 l = lock.lock(lockname, 0, releasefn, desc=desc)
@@ -1503,6 +1503,9 b' class localrepository(object):'
1503 # tag cache retrieval" case to work.
1503 # tag cache retrieval" case to work.
1504 self.invalidatecaches()
1504 self.invalidatecaches()
1505
1505
1506 # Discard all cache entries to force reloading everything.
1507 self._filecache.clear()
1508
1506 def walk(self, match, node=None):
1509 def walk(self, match, node=None):
1507 '''
1510 '''
1508 walk recursively through the directory tree or a given
1511 walk recursively through the directory tree or a given
General Comments 0
You need to be logged in to leave comments. Login now