getset: check if an object is a baseset using `isascending` instead of `set`
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 10 Oct 2014 14:22:23 -0700
changeset 22884 4584eec9aead
parent 22883 e7b8cf352614
child 22885 e02b16f496f2
getset: check if an object is a baseset using `isascending` instead of `set` The `set()` method is going away.
mercurial/revset.py
--- 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)