Submitter | Lucas Moscovicz |
---|---|
Date | Feb. 11, 2014, 8:55 p.m. |
Message ID | <59c42d99bcfdd22636b4.1392152118@dev1037.prn2.facebook.com> |
Download | mbox | patch |
Permalink | /patch/3575/ |
State | Accepted |
Commit | ac7cebf45eb46a8da6c4ccd73cc75efb211820a1 |
Headers | show |
Comments
Patch
diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -674,7 +674,7 @@ # i18n: "draft" is a keyword getargs(x, 0, 0, _("draft takes no arguments")) pc = repo._phasecache - return baseset([r for r in subset if pc.phase(repo, r) == phases.draft]) + return lazyset(subset, lambda r: pc.phase(repo, r) == phases.draft) def extinct(repo, subset, x): """``extinct()``