comparison mercurial/localrepo.py @ 18106:2cf01eb74842

hidden: invalidate hiddenrevs when needed The `hiddenrevs` cache is volatile too (It use content from `obscache`). When unsure it is invalidated when necessary. In a near future, the cache will probably be moved to `revsfiltercache`
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 18 Dec 2012 01:51:08 +0100
parents 312262ebc223
children 569091b938a9
comparison
equal deleted inserted replaced
18105:312262ebc223 18106:2cf01eb74842
1104 self.invalidatevolatilesets() 1104 self.invalidatevolatilesets()
1105 1105
1106 def invalidatevolatilesets(self): 1106 def invalidatevolatilesets(self):
1107 self.filteredrevcache.clear() 1107 self.filteredrevcache.clear()
1108 obsolete.clearobscaches(self) 1108 obsolete.clearobscaches(self)
1109 if 'hiddenrevs' in vars(self):
1110 del self.hiddenrevs
1109 1111
1110 def invalidatedirstate(self): 1112 def invalidatedirstate(self):
1111 '''Invalidates the dirstate, causing the next call to dirstate 1113 '''Invalidates the dirstate, causing the next call to dirstate
1112 to check if it was modified since the last time it was read, 1114 to check if it was modified since the last time it was read,
1113 rereading it if it has. 1115 rereading it if it has.