Mercurial > hg-stable
changeset 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 | c60d09dc2164 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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