mercurial/localrepo.py
changeset 16830 357e6bcfb619
parent 16828 8abee656e14c
child 16866 91f3ac205816
--- a/mercurial/localrepo.py	Fri Jun 01 23:42:27 2012 -0500
+++ b/mercurial/localrepo.py	Fri Jun 01 23:44:10 2012 -0500
@@ -838,9 +838,6 @@
                         self.sjoin('phaseroots'))
         self.invalidate()
 
-        # Discard all cache entries to force reloading everything.
-        self._filecache.clear()
-
         parentgone = (parents[0] not in self.changelog.nodemap or
                       parents[1] not in self.changelog.nodemap)
         if parentgone:
@@ -905,6 +902,9 @@
                 pass
         self.invalidatecaches()
 
+        # Discard all cache entries to force reloading everything.
+        self._filecache.clear()
+
     def _lock(self, lockname, wait, releasefn, acquirefn, desc):
         try:
             l = lock.lock(lockname, 0, releasefn, desc=desc)