context: retrieve hidden from filteredrevs
This prepare the dropping of the repo.hiddenrevs property
--- 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"""