--- a/mercurial/revset.py Mon Feb 03 16:02:48 2014 -0800
+++ b/mercurial/revset.py Wed Jan 29 15:23:16 2014 -0800
@@ -391,7 +391,7 @@
if not bmrev:
raise util.Abort(_("bookmark '%s' does not exist") % bm)
bmrev = repo[bmrev].rev()
- return baseset([r for r in subset if r == bmrev])
+ return lazyset(subset, lambda r: r == bmrev)
else:
matchrevs = set()
for name, bmrev in repo._bookmarks.iteritems():
@@ -407,7 +407,7 @@
bms = set([repo[r].rev()
for r in repo._bookmarks.values()])
- return baseset([r for r in subset if r in bms])
+ return lazyset(subset, lambda r: r in bms)
def branch(repo, subset, x):
"""``branch(string or set)``