Comments
Patch
@@ -11,10 +11,11 @@ import node
import bookmarks as bookmarksmod
import match as matchmod
from i18n import _
import encoding
import obsolete as obsmod
+import repoview
def _revancestors(repo, revs, followfirst):
"""Like revlog.ancestors(), but supports followfirst."""
cut = followfirst and 1 or None
cl = repo.changelog
@@ -890,11 +891,12 @@ def hidden(repo, subset, x):
"""``hidden()``
Hidden changesets.
"""
# 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)``
Search commit message, user name, and names of changed files for
string. The match is case-insensitive.