revset: retrieve hidden from filteredrevs
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 03 Jan 2013 18:48:14 +0100
changeset 18251 a6483f827512
parent 18250 f54898526aad
child 18252 3f1552c6bf71
revset: retrieve hidden from filteredrevs This prepare the dropping of the `repo.hiddenrevs` property
mercurial/revset.py
--- 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)``