hidden: invalidate hiddenrevs when needed
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Tue, 18 Dec 2012 01:51:08 +0100
changeset 18106 2cf01eb74842
parent 18105 312262ebc223
child 18107 c60d09dc2164
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`
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Tue Dec 18 02:04:37 2012 +0100
+++ b/mercurial/localrepo.py	Tue Dec 18 01:51:08 2012 +0100
@@ -1106,6 +1106,8 @@
     def invalidatevolatilesets(self):
         self.filteredrevcache.clear()
         obsolete.clearobscaches(self)
+        if 'hiddenrevs' in vars(self):
+            del self.hiddenrevs
 
     def invalidatedirstate(self):
         '''Invalidates the dirstate, causing the next call to dirstate