mercurial/revset.py
changeset 22729 f7b0ebe6ad42
parent 22728 bf5ff3686100
child 22730 aeacc2055f0d
--- a/mercurial/revset.py	Thu Oct 02 19:21:40 2014 -0500
+++ b/mercurial/revset.py	Thu Oct 02 19:22:03 2014 -0500
@@ -2280,7 +2280,12 @@
         """Returns a new object with the union of the two collections.
 
         This is part of the mandatory API for smartset."""
-        raise NotImplementedError()
+        kwargs = {}
+        if self.isascending() and other.isascending():
+            kwargs['ascending'] = True
+        if self.isdescending() and other.isdescending():
+            kwargs['ascending'] = False
+        return _addset(self, other, **kwargs)
 
     def __sub__(self, other):
         """Returns a new object with the substraction of the two collections.