logcmdutil: let getlinerangerevs() return "revs" as a smartset
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 14 Nov 2019 11:11:38 +0100
changeset 43630 af9c73f26371
parent 43629 ec53ea01c9e6
child 43631 d3c4368099ed
logcmdutil: let getlinerangerevs() return "revs" as a smartset This makes it consistent in "hg log" command where 'revs' can come from logcmdutil.getrevs() as a smartset or from getlinerangerevs(), previously as a list. This will help type hinting as noticed in https://phab.mercurial-scm.org/D7377.
mercurial/logcmdutil.py
--- a/mercurial/logcmdutil.py	Wed Nov 13 17:06:05 2019 +0100
+++ b/mercurial/logcmdutil.py	Thu Nov 14 11:11:38 2019 +0100
@@ -968,7 +968,7 @@
     differ = changesetdiffer()
     differ._makefilematcher = filematcher
     differ._makehunksfilter = hunksfilter
-    return revs, differ
+    return smartset.baseset(revs), differ
 
 
 def _graphnodeformatter(ui, displayer):