##// END OF EJS Templates
localrepo: move filecache clearing into invalidate...
Matt Mackall -
r16830:357e6bcf default
parent child Browse files
Show More
@@ -838,9 +838,6 b' class localrepository(repo.repository):'
838 838 self.sjoin('phaseroots'))
839 839 self.invalidate()
840 840
841 # Discard all cache entries to force reloading everything.
842 self._filecache.clear()
843
844 841 parentgone = (parents[0] not in self.changelog.nodemap or
845 842 parents[1] not in self.changelog.nodemap)
846 843 if parentgone:
@@ -905,6 +902,9 b' class localrepository(repo.repository):'
905 902 pass
906 903 self.invalidatecaches()
907 904
905 # Discard all cache entries to force reloading everything.
906 self._filecache.clear()
907
908 908 def _lock(self, lockname, wait, releasefn, acquirefn, desc):
909 909 try:
910 910 l = lock.lock(lockname, 0, releasefn, desc=desc)
General Comments 0
You need to be logged in to leave comments. Login now