Mercurial > hg
diff mercurial/logcmdutil.py @ 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 | 8ff1ecfadcd1 |
children | 4093fc1777c2 |
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):