Mercurial > hg-stable
changeset 18249:e3504d7ff760
hidden: drop cache on hiddenrevs property
The `filteredrevs` function already have a cache mechanism. And this cache in
invalidated at the same time than the current property cache. So we drop the
cache on the property.
The property itself is going to be dropped soon.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Tue, 08 Jan 2013 14:16:49 +0100 |
parents | 378a025ff269 |
children | f54898526aad |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Tue Jan 08 14:10:29 2013 +0100 +++ b/mercurial/localrepo.py Tue Jan 08 14:16:49 2013 +0100 @@ -350,7 +350,8 @@ self.ui.warn(msg % len(list(store))) return store - @unfilteredpropertycache + @property + @unfiltered def hiddenrevs(self): """hiddenrevs: revs that should be hidden by command and tools @@ -961,8 +962,6 @@ 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