# HG changeset patch # User Pierre-Yves David # Date 1357235476 -3600 # Node ID 3f1552c6bf714aafc6cca56d6224ae638213da83 # Parent a6483f827512b022ebf02d5516c3558ab0f0f038 context: retrieve hidden from filteredrevs This prepare the dropping of the repo.hiddenrevs property diff -r a6483f827512 -r 3f1552c6bf71 mercurial/context.py --- a/mercurial/context.py Thu Jan 03 18:48:14 2013 +0100 +++ b/mercurial/context.py Thu Jan 03 18:51:16 2013 +0100 @@ -12,6 +12,7 @@ import match as matchmod import os, errno, stat import obsolete as obsmod +import repoview propertycache = util.propertycache @@ -211,7 +212,7 @@ def mutable(self): return self.phase() > phases.public def hidden(self): - return self._rev in self._repo.hiddenrevs + return self._rev in repoview.filteredrevs(self._repo, 'hidden') def parents(self): """return contexts for each parent changeset"""