Mercurial > hg
changeset 18251:a6483f827512
revset: retrieve hidden from filteredrevs
This prepare the dropping of the `repo.hiddenrevs` property
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Thu, 03 Jan 2013 18:48:14 +0100 |
parents | f54898526aad |
children | 3f1552c6bf71 |
files | mercurial/revset.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)``