Mercurial > hg
changeset 22884:4584eec9aead
getset: check if an object is a baseset using `isascending` instead of `set`
The `set()` method is going away.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 10 Oct 2014 14:22:23 -0700 |
parents | e7b8cf352614 |
children | e02b16f496f2 |
files | mercurial/revset.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Fri Oct 10 13:24:57 2014 -0700 +++ b/mercurial/revset.py Fri Oct 10 14:22:23 2014 -0700 @@ -235,7 +235,7 @@ if not x: raise error.ParseError(_("missing argument")) s = methods[x[0]](repo, subset, *x[1:]) - if util.safehasattr(s, 'set'): + if util.safehasattr(s, 'isascending'): return s return baseset(s)