revset: stop supporting plain list as input set (API)
authorYuya Nishihara <yuya@tcha.org>
Sun, 02 Apr 2017 22:16:03 +0900
changeset 31810 81abd0d12c86
parent 31809 35b8bb1ef02b
child 31811 d955b02d8ec6
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.
mercurial/revset.py
--- 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):