Mercurial > hg
diff mercurial/revset.py @ 20460:3a88d0d0c6b6
revset: added lazyset implementation to secret revset
author | Lucas Moscovicz <lmoscovicz@fb.com> |
---|---|
date | Tue, 04 Feb 2014 09:29:19 -0800 |
parents | 51890507c6b3 |
children | abd8e56a1038 |
line wrap: on
line diff
--- a/mercurial/revset.py Tue Feb 04 09:14:45 2014 -0800 +++ b/mercurial/revset.py Tue Feb 04 09:29:19 2014 -0800 @@ -1401,7 +1401,7 @@ # i18n: "secret" is a keyword getargs(x, 0, 0, _("secret takes no arguments")) pc = repo._phasecache - return baseset([r for r in subset if pc.phase(repo, r) == phases.secret]) + return lazyset(subset, lambda x: pc.phase(repo, x) == phases.secret) def sort(repo, subset, x): """``sort(set[, [-]key...])``