[PATCH 8 of 8] revset: added lazyset implementation to origin revset
Lucas Moscovicz
lmoscovicz at fb.com
Tue Feb 11 20:55:23 UTC 2014
# HG changeset patch
# User Lucas Moscovicz <lmoscovicz at 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
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])``
More information about the Mercurial-devel
mailing list