mercurial/localrepo.py
branchstable
changeset 15988 827e0126738d
parent 15987 b5f6a63b4ded
child 15993 0b05e0bfdc1c
--- a/mercurial/localrepo.py	Thu Jan 26 00:21:53 2012 +0200
+++ b/mercurial/localrepo.py	Thu Jan 26 00:21:54 2012 +0200
@@ -879,10 +879,14 @@
         return 0
 
     def invalidatecaches(self):
-        try:
-            delattr(self, '_tagscache')
-        except AttributeError:
-            pass
+        def delcache(name):
+            try:
+                delattr(self, name)
+            except AttributeError:
+                pass
+
+        delcache('_tagscache')
+        delcache('_phaserev')
 
         self._branchcache = None # in UTF-8
         self._branchcachetip = None