# HG changeset patch # User Pierre-Yves David # Date 1412295700 18000 # Node ID bf5ff3686100e565ba9eebe505e9b125da1a8581 # Parent 0f3e240a1c35bb5fbb91244d48aad452005b0ef4 abstractsmartset: add default implementation for __and__ diff -r 0f3e240a1c35 -r bf5ff3686100 mercurial/revset.py --- a/mercurial/revset.py Wed Oct 01 00:26:50 2014 -0500 +++ b/mercurial/revset.py Thu Oct 02 19:21:40 2014 -0500 @@ -2274,7 +2274,7 @@ """Returns a new object with the intersection of the two collections. This is part of the mandatory API for smartset.""" - raise NotImplementedError() + return self.filter(other.__contains__) def __add__(self, other): """Returns a new object with the union of the two collections.