mercurial/localrepo.py
changeset 16128 004982e5d782
parent 16073 b254f827b7a6
parent 16116 ce0ad184f489
child 16151 a01d2fb5ba65
--- a/mercurial/localrepo.py	Thu Feb 16 15:58:51 2012 -0600
+++ b/mercurial/localrepo.py	Thu Feb 16 16:40:29 2012 -0600
@@ -949,6 +949,7 @@
             self.store.write()
             if self._dirtyphases:
                 phases.writeroots(self)
+                self._dirtyphases = False
             for k, ce in self._filecache.items():
                 if k == 'dirstate':
                     continue
@@ -1323,6 +1324,9 @@
         # tag cache retrieval" case to work.
         self.invalidatecaches()
 
+        # Discard all cache entries to force reloading everything.
+        self._filecache.clear()
+
     def walk(self, match, node=None):
         '''
         walk recursively through the directory tree or a given