diff mercurial/revset.py @ 22834:9e316ea0bf52

fullreposet: use `isascending` instead of `ascending` to recognise smartsets `ascending` is going to be removed.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 07 Oct 2014 01:41:14 -0700
parents 6f4109aa6877
children 8376d76f77dd
line wrap: on
line diff
--- 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)