mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
getset: check if an object is a baseset using isascending
instead of set
The `set()` method is going away.
This commit is contained in:
parent
c249a728eb
commit
0de25934dc
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user