# HG changeset patch # User Pierre-Yves David # Date 2014-10-03 00:42:06 # Node ID 3ed3ca4dfd313fbbc395a6cf2a450aa9da3158f8 # Parent eccf9907b8449a6c2bfd95539e6b583c99c50782 addset: promote to real smartset Better revset performance are also achieved with less overlay. There is no good reason for addset to not be a smartset. We can replace the `_orderedsetmixin` inheritance since `abstractsmartset` has efficient min and max too. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -2554,7 +2554,7 @@ class orderedlazyset(_orderedsetmixin, f self._subset.reverse() self._ascending = not self._ascending -class _addset(_orderedsetmixin): +class _addset(abstractsmartset): """Represent the addition of two sets Wrapper structure for lazily adding two structures without losing much