changeset 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 d955b02d8ec6
files mercurial/revset.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Sun Apr 02 22:01:32 2017 +0900
+++ b/mercurial/revset.py	Sun Apr 02 22:16:03 2017 +0900
@@ -2254,11 +2254,7 @@
     def mfunc(repo, subset=None):
         if subset is None:
             subset = fullreposet(repo)
-        if util.safehasattr(subset, 'isascending'):
-            result = getset(repo, subset, tree)
-        else:
-            result = getset(repo, baseset(subset), tree)
-        return result
+        return getset(repo, subset, tree)
     return mfunc
 
 def loadpredicate(ui, extname, registrarobj):