changeset 22687 | d9cc1be5acec |
parent 22686 | 2717dcff7be1 |
child 22688 | cac9b3591753 |
--- a/mercurial/revset.py Tue Sep 30 12:39:21 2014 -0500 +++ b/mercurial/revset.py Wed Oct 01 15:53:42 2014 -0500 @@ -2823,7 +2823,8 @@ def __sub__(self, x): if isinstance(x, baseset): x = x.set() - return orderedlazyset(self, lambda r: r not in x, + filterfunc = x.__contains__ + return orderedlazyset(self, lambda r: not filterfunc(r), ascending=self.isascending()) def __add__(self, x):