fullreposet: use `isascending` instead of `ascending` to recognise smartsets
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 07 Oct 2014 01:41:14 -0700
changeset 22834 9e316ea0bf52
parent 22833 6f4109aa6877
child 22835 8376d76f77dd
fullreposet: use `isascending` instead of `ascending` to recognise smartsets `ascending` is going to be removed.
mercurial/revset.py
--- a/mercurial/revset.py	Tue Oct 07 01:41:26 2014 -0700
+++ b/mercurial/revset.py	Tue Oct 07 01:41:14 2014 -0700
@@ -3015,7 +3015,7 @@
             # `other` was used with "&", let's assume this is a set like
             # object.
             other = baseset(other - self._hiddenrevs)
-        elif not util.safehasattr(other, 'ascending'):
+        elif not util.safehasattr(other, 'isascending'):
             # "other" is generatorset not a real smart set
             # we fallback to the old way (sad kitten)
             return super(fullreposet, self).__and__(other)