context: retrieve hidden from filteredrevs
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 03 Jan 2013 18:51:16 +0100
changeset 18252 3f1552c6bf71
parent 18251 a6483f827512
child 18253 a32255dee859
context: retrieve hidden from filteredrevs This prepare the dropping of the repo.hiddenrevs property
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"""