Mercurial > hg
changeset 43630:af9c73f26371
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.
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Thu, 14 Nov 2019 11:11:38 +0100 |
parents | ec53ea01c9e6 |
children | d3c4368099ed |
files | mercurial/logcmdutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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):