match: 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:27:05 -0700
changeset 22885 e02b16f496f2
parent 22884 4584eec9aead
child 22886 c8afe69cc54f
match: 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 14:22:23 2014 -0700
+++ b/mercurial/revset.py	Fri Oct 10 14:27:05 2014 -0700
@@ -2064,7 +2064,7 @@
         tree = findaliases(ui, tree)
     weight, tree = optimize(tree, True)
     def mfunc(repo, subset):
-        if util.safehasattr(subset, 'set'):
+        if util.safehasattr(subset, 'isascending'):
             result = getset(repo, subset, tree)
         else:
             result = getset(repo, baseset(subset), tree)