mercurial/localrepo.py
branchstable
changeset 15988 827e0126738d
parent 15987 b5f6a63b4ded
child 15993 0b05e0bfdc1c
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):