Submitter | Pierre-Yves David |
---|---|
Date | April 30, 2014, 11:10 p.m. |
Message ID | <cc12dff4f19ca264a491.1398899440@marginatus.alto.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/4459/ |
State | Accepted |
Commit | b9defeeb62e61f089a88e87b8a6705f3367ae256 |
Headers | show |
Comments
Patch
diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -2795,13 +2795,13 @@ class spanset(_orderedsetmixin): def __and__(self, x): if isinstance(x, baseset): x = x.set() if self._start <= self._end: - return orderedlazyset(self, lambda r: r in x) + return orderedlazyset(self, x.__contains__) else: - return orderedlazyset(self, lambda r: r in x, ascending=False) + return orderedlazyset(self, x.__contains__, ascending=False) def __sub__(self, x): if isinstance(x, baseset): x = x.set() if self._start <= self._end: