# HG changeset patch # User Pierre-Yves David # Date 2014-10-10 21:22:23 # Node ID 4584eec9aead432d5b66c5c85ecaf16609c31a38 # Parent e7b8cf352614685ca8929fad17aec80f7023464f getset: check if an object is a baseset using `isascending` instead of `set` The `set()` method is going away. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -235,7 +235,7 @@ def getset(repo, subset, x): 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)