addset: drop the leading underscore from the class name
This class is now a real smartset.
--- a/mercurial/revset.py Fri Oct 03 20:17:12 2014 -0700
+++ b/mercurial/revset.py Fri Oct 03 20:18:48 2014 -0700
@@ -668,7 +668,7 @@
result = (filteredset(s, subset.__contains__, ascending=True) +
filteredset(args, subset.__contains__, ascending=True))
- # Wrap result in a filteredset since it's an _addset, which doesn't
+ # Wrap result in a filteredset since it's an addset, which doesn't
# implement all the necessary functions to be consumed by callers.
return filteredset(result, lambda r: True, ascending=True)
@@ -2285,7 +2285,7 @@
kwargs['ascending'] = True
if self.isdescending() and other.isdescending():
kwargs['ascending'] = False
- return _addset(self, other, **kwargs)
+ return addset(self, other, **kwargs)
def __sub__(self, other):
"""Returns a new object with the substraction of the two collections.
@@ -2460,7 +2460,7 @@
def isdescending(self):
return self._ascending is not None and not self._ascending
-class _addset(abstractsmartset):
+class addset(abstractsmartset):
"""Represent the addition of two sets
Wrapper structure for lazily adding two structures without losing much