# HG changeset patch # User Pierre-Yves David # Date 2014-10-10 21:27:05 # Node ID e02b16f496f28193253082aa4d40843a6a83afda # Parent 4584eec9aead432d5b66c5c85ecaf16609c31a38 match: 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 @@ -2064,7 +2064,7 @@ def match(ui, spec, repo=None): 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)