[PATCH 2 of 4] revset: added lazyset implementation to converted revset

Lucas Moscovicz lmoscovicz at fb.com
Wed Feb 12 12:02:33 CST 2014


# HG changeset patch
# User Lucas Moscovicz <lmoscovicz at fb.com>
# Date 1391704360 28800
#      Thu Feb 06 08:32:40 2014 -0800
# Node ID 4b2319544ef21281d14548b0c8303cfcd219d836
# Parent  cfebd662efcdc61deee15507d2bed238d417c519
revset: added lazyset implementation to converted revset

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -571,7 +571,7 @@
         source = repo[r].extra().get('convert_revision', None)
         return source is not None and (rev is None or source.startswith(rev))
 
-    return baseset([r for r in subset if _matchvalue(r)])
+    return lazyset(subset, lambda r: _matchvalue(r))
 
 def date(repo, subset, x):
     """``date(interval)``


More information about the Mercurial-devel mailing list