Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
22833:6f4109aa6877 | 22834:9e316ea0bf52 |
---|---|
3013 # (this boldly assumes all smartset are pure) | 3013 # (this boldly assumes all smartset are pure) |
3014 # | 3014 # |
3015 # `other` was used with "&", let's assume this is a set like | 3015 # `other` was used with "&", let's assume this is a set like |
3016 # object. | 3016 # object. |
3017 other = baseset(other - self._hiddenrevs) | 3017 other = baseset(other - self._hiddenrevs) |
3018 elif not util.safehasattr(other, 'ascending'): | 3018 elif not util.safehasattr(other, 'isascending'): |
3019 # "other" is generatorset not a real smart set | 3019 # "other" is generatorset not a real smart set |
3020 # we fallback to the old way (sad kitten) | 3020 # we fallback to the old way (sad kitten) |
3021 return super(fullreposet, self).__and__(other) | 3021 return super(fullreposet, self).__and__(other) |
3022 | 3022 |
3023 if self.isascending(): | 3023 if self.isascending(): |