diff -r b5f6a63b4ded -r 827e0126738d 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