# HG changeset patch # User Pierre-Yves David # Date 1412296926 18000 # 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 -r eccf9907b844 -r 3ed3ca4dfd31 mercurial/revset.py --- a/mercurial/revset.py Fri Oct 03 00:12:22 2014 -0500 +++ b/mercurial/revset.py Thu Oct 02 19:42:06 2014 -0500 @@ -2554,7 +2554,7 @@ 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