Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 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 | 0b05e0bfdc1c |
comparison
equal
deleted
inserted
replaced
15987:b5f6a63b4ded | 15988:827e0126738d |
---|---|
877 'revision %d\n') % parents) | 877 'revision %d\n') % parents) |
878 self.destroyed() | 878 self.destroyed() |
879 return 0 | 879 return 0 |
880 | 880 |
881 def invalidatecaches(self): | 881 def invalidatecaches(self): |
882 try: | 882 def delcache(name): |
883 delattr(self, '_tagscache') | 883 try: |
884 except AttributeError: | 884 delattr(self, name) |
885 pass | 885 except AttributeError: |
886 pass | |
887 | |
888 delcache('_tagscache') | |
889 delcache('_phaserev') | |
886 | 890 |
887 self._branchcache = None # in UTF-8 | 891 self._branchcache = None # in UTF-8 |
888 self._branchcachetip = None | 892 self._branchcachetip = None |
889 | 893 |
890 def invalidatedirstate(self): | 894 def invalidatedirstate(self): |