getset: check if an object is a baseset using isascending instead of set

The `set()` method is going away.
This commit is contained in:
Pierre-Yves David 2014-10-10 14:22:23 -07:00
parent c249a728eb
commit 0de25934dc

View File

@ -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)