Submitter | Pierre-Yves David |
---|---|
Date | Sept. 19, 2014, 10:33 p.m. |
Message ID | <a38a9240a0c57afe2f49.1411166035@marginatus.alto.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/5886/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -2334,11 +2334,12 @@ class lazyset(object): return max(self) def __contains__(self, x): c = self._cache if x not in c: - c[x] = x in self._subset and self._condition(x) + v = c[x] = x in self._subset and self._condition(x) + return v return c[x] def __iter__(self): cond = self._condition for x in self._subset: