mercurial/revset.py
branchstable
changeset 21214 0952904dc1e5
parent 21207 b9defeeb62e6
child 21215 717ba2c3c9da
--- a/mercurial/revset.py	Thu May 01 13:42:12 2014 -0500
+++ b/mercurial/revset.py	Thu May 01 12:15:00 2014 -0700
@@ -2356,7 +2356,7 @@
                 yield x
 
     def __and__(self, x):
-        return lazyset(self, lambda r: r in x)
+        return lazyset(self, x.__contains__)
 
     def __sub__(self, x):
         return lazyset(self, lambda r: r not in x)