Mercurial > hg
changeset 15988:827e0126738d stable
localrepo: delete _phaserev when invalidating caches
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Thu, 26 Jan 2012 00:21:54 +0200 |
parents | b5f6a63b4ded |
children | 6548a2e32285 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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