Mercurial > hg
comparison mercurial/revset.py @ 20479:c38e5556d87b
revset: added lazyset implementation to closed revset
author | Lucas Moscovicz <lmoscovicz@fb.com> |
---|---|
date | Thu, 06 Feb 2014 08:31:55 -0800 |
parents | abd8e56a1038 |
children | ada89e5b5b0c |
comparison
equal
deleted
inserted
replaced
20478:80628d4069be | 20479:c38e5556d87b |
---|---|
520 """``closed()`` | 520 """``closed()`` |
521 Changeset is closed. | 521 Changeset is closed. |
522 """ | 522 """ |
523 # i18n: "closed" is a keyword | 523 # i18n: "closed" is a keyword |
524 getargs(x, 0, 0, _("closed takes no arguments")) | 524 getargs(x, 0, 0, _("closed takes no arguments")) |
525 return baseset([r for r in subset if repo[r].closesbranch()]) | 525 return lazyset(subset, lambda r: repo[r].closesbranch()) |
526 | 526 |
527 def contains(repo, subset, x): | 527 def contains(repo, subset, x): |
528 """``contains(pattern)`` | 528 """``contains(pattern)`` |
529 Revision contains a file matching pattern. See :hg:`help patterns` | 529 Revision contains a file matching pattern. See :hg:`help patterns` |
530 for information about file patterns. | 530 for information about file patterns. |