Submitter | Pierre-Yves David |
---|---|
Date | May 1, 2014, 7:20 p.m. |
Message ID | <c753a48e8bf3557856fb.1398972025@marginatus.alto.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/4463/ |
State | Superseded |
Commit | 0952904dc1e5fbd2632fdd577712ffde075b8d3b |
Headers | show |
Comments
Patch
diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -2354,11 +2354,11 @@ class lazyset(object): for x in self._subset: if cond(x): yield x def __and__(self, x): - return lazyset(self, lambda r: r in x) + return lazyset(self, x.__contains__) def __sub__(self, x): return lazyset(self, lambda r: r not in x) def __add__(self, x):