diff mercurial/revset.py @ 22728:bf5ff3686100

abstractsmartset: add default implementation for __and__
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 02 Oct 2014 19:21:40 -0500 (2014-10-03)
parents 0f3e240a1c35
children f7b0ebe6ad42
line wrap: on
line diff
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -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.