changeset 22880:5b635b44af14

baseset: access `_set` directly for containment check The `.set()` method is going away.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 10 Oct 2014 12:31:22 -0700
parents efe5062145c1
children 057ebf7714e1
files mercurial/revset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)