Patchwork [8,of,8] revset: added lazyset implementation to origin revset

login
register
mail settings
Submitter Lucas Moscovicz
Date Feb. 11, 2014, 8:55 p.m.
Message ID <49243ff8fb1fe7abfa72.1392152123@dev1037.prn2.facebook.com>
Download mbox | patch
Permalink /patch/3579/
State Deferred
Headers show

Comments

Lucas Moscovicz - Feb. 11, 2014, 8:55 p.m.
# HG changeset patch
# User Lucas Moscovicz <lmoscovicz@fb.com>
# Date 1391132003 28800
#      Thu Jan 30 17:33:23 2014 -0800
# Node ID 49243ff8fb1fe7abfa72f16eca12f55776031e88
# Parent  d066984274ccaaabbc324a5ed18972ca08df9aec
revset: added lazyset implementation to origin revset

Patch

diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -1086,7 +1086,7 @@ 
             src = prev
 
     o = set([_firstsrc(r) for r in args])
-    return baseset([r for r in subset if r in o])
+    return lazyset(subset, lambda r: r in o)
 
 def outgoing(repo, subset, x):
     """``outgoing([path])``