localrepo: delete _phaserev when invalidating caches stable
authorIdan Kamara <idankk86@gmail.com>
Thu, 26 Jan 2012 00:21:54 +0200
branchstable
changeset 15988 827e0126738d
parent 15987 b5f6a63b4ded
child 15989 6548a2e32285
localrepo: delete _phaserev when invalidating caches
mercurial/localrepo.py
--- 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