changeset 22885:e02b16f496f2

match: 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:27:05 -0700
parents 4584eec9aead
children c8afe69cc54f
files mercurial/revset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)