changeset 22793:ff6689b47e48

addset: drop the leading underscore from the class name This class is now a real smartset.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 03 Oct 2014 20:18:48 -0700
parents bec4365a0707
children 4aa1bfb54f43
files mercurial/revset.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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