mercurial/revset.py
changeset 20451 ac7cebf45eb4
parent 20450 4f1aed2c7a7e
child 20452 a685d9870eb5
--- a/mercurial/revset.py	Wed Jan 29 15:23:16 2014 -0800
+++ b/mercurial/revset.py	Mon Feb 03 16:15:25 2014 -0800
@@ -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()``