changeset 18252:3f1552c6bf71

context: retrieve hidden from filteredrevs This prepare the dropping of the repo.hiddenrevs property
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 03 Jan 2013 18:51:16 +0100
parents a6483f827512
children a32255dee859
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"""