revset: added lazyset implementation to extra revset
authorLucas Moscovicz <lmoscovicz@fb.com>
Thu, 06 Feb 2014 08:36:11 -0800
changeset 20481 a5d7081a4c34
parent 20480 ada89e5b5b0c
child 20482 a979078bd788
revset: added lazyset implementation to extra revset
mercurial/revset.py
--- a/mercurial/revset.py	Thu Feb 06 08:32:40 2014 -0800
+++ b/mercurial/revset.py	Thu Feb 06 08:36:11 2014 -0800
@@ -708,7 +708,7 @@
         extra = repo[r].extra()
         return label in extra and (value is None or matcher(extra[label]))
 
-    return baseset([r for r in subset if _matchvalue(r)])
+    return lazyset(subset, lambda r: _matchvalue(r))
 
 def filelog(repo, subset, x):
     """``filelog(pattern)``