changeset 22689:372f507f6676

revset: drop isinstance(baseset) in spanset.__and__ As baseset now has a fast __contains___ operator, this `baseset.set()` dance is no longer needed. No regressions are visible in the benchmark.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 01 Oct 2014 15:50:40 -0500
parents cac9b3591753
children d7ab5684711f
files mercurial/revset.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Tue Sep 30 23:09:59 2014 -0500
+++ b/mercurial/revset.py	Wed Oct 01 15:50:40 2014 -0500
@@ -2813,8 +2813,6 @@
         return False
 
     def __and__(self, x):
-        if isinstance(x, baseset):
-            x = x.set()
         return orderedlazyset(self, x.__contains__,
                               ascending=self.isascending())