# HG changeset patch # User Pierre-Yves David # Date 1412136599 18000 # Node ID cac9b359175381cb40768e38577ceeb2722d303f # Parent d9cc1be5aceccb762d7d2494b332de6fa26a49f4 revset: drop isinstance(baseset) from baseset.__and__ As baseset now has a fast __contains___ operator, this `baseset.set()` dance is no longer needed. No regressions are visible in the benchmark. diff -r d9cc1be5acec -r cac9b3591753 mercurial/revset.py --- a/mercurial/revset.py Wed Oct 01 15:53:42 2014 -0500 +++ b/mercurial/revset.py Tue Sep 30 23:09:59 2014 -0500 @@ -2255,8 +2255,6 @@ """Returns a new object with the intersection of the two collections. This is part of the mandatory API for smartset.""" - if isinstance(other, baseset): - other = other.set() return baseset([y for y in self if y in other]) def __add__(self, other):