revset: retrieve hidden from filteredrevs
This prepare the dropping of the `repo.hiddenrevs` property
--- a/mercurial/revset.py Tue Jan 08 17:31:00 2013 +0100
+++ b/mercurial/revset.py Thu Jan 03 18:48:14 2013 +0100
@@ -13,6 +13,7 @@
from i18n import _
import encoding
import obsolete as obsmod
+import repoview
def _revancestors(repo, revs, followfirst):
"""Like revlog.ancestors(), but supports followfirst."""
@@ -892,7 +893,8 @@
"""
# i18n: "hidden" is a keyword
getargs(x, 0, 0, _("hidden takes no arguments"))
- return [r for r in subset if r in repo.hiddenrevs]
+ hiddenrevs = repoview.filteredrevs(repo, 'hidden')
+ return [r for r in subset if r in hiddenrevs]
def keyword(repo, subset, x):
"""``keyword(string)``