baseset: access `_set` directly for containment check
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 10 Oct 2014 12:31:22 -0700
changeset 22880 5b635b44af14
parent 22879 efe5062145c1
child 22881 057ebf7714e1
baseset: access `_set` directly for containment check The `.set()` method is going away.
mercurial/revset.py
--- a/mercurial/revset.py	Fri Oct 10 12:30:56 2014 -0700
+++ b/mercurial/revset.py	Fri Oct 10 12:31:22 2014 -0700
@@ -2352,7 +2352,7 @@
 
     @util.propertycache
     def __contains__(self):
-        return self.set().__contains__
+        return self._set.__contains__
 
     def __nonzero__(self):
         return bool(self._list)