Mercurial > hg
comparison mercurial/revset.py @ 31810:81abd0d12c86
revset: stop supporting plain list as input set (API)
There was no deprecwarn(), but this is the same kind of API compatibility
as the one removed by the previous patch.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 02 Apr 2017 22:16:03 +0900 |
parents | 35b8bb1ef02b |
children | 5e3b49defbff |
comparison
equal
deleted
inserted
replaced
31809:35b8bb1ef02b | 31810:81abd0d12c86 |
---|---|
2252 def makematcher(tree): | 2252 def makematcher(tree): |
2253 """Create a matcher from an evaluatable tree""" | 2253 """Create a matcher from an evaluatable tree""" |
2254 def mfunc(repo, subset=None): | 2254 def mfunc(repo, subset=None): |
2255 if subset is None: | 2255 if subset is None: |
2256 subset = fullreposet(repo) | 2256 subset = fullreposet(repo) |
2257 if util.safehasattr(subset, 'isascending'): | 2257 return getset(repo, subset, tree) |
2258 result = getset(repo, subset, tree) | |
2259 else: | |
2260 result = getset(repo, baseset(subset), tree) | |
2261 return result | |
2262 return mfunc | 2258 return mfunc |
2263 | 2259 |
2264 def loadpredicate(ui, extname, registrarobj): | 2260 def loadpredicate(ui, extname, registrarobj): |
2265 """Load revset predicates from specified registrarobj | 2261 """Load revset predicates from specified registrarobj |
2266 """ | 2262 """ |