changeset 31486:06d3c40fc3e7

graphlog: pass function arguments without expansion It's annoying on Python 3 because keys must be unicode type. Let's stop using **opts expansion when not necessary.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 14 Mar 2017 18:16:13 +0900
parents cad95575dc46
children a992caaf0e22
files mercurial/cmdutil.py mercurial/commands.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Fri Mar 17 23:48:22 2017 +0900
+++ b/mercurial/cmdutil.py	Tue Mar 14 18:16:13 2017 +0900
@@ -2212,7 +2212,7 @@
             graphmod.ascii(ui, state, type, char, lines, coldata)
     displayer.close()
 
-def graphlog(ui, repo, *pats, **opts):
+def graphlog(ui, repo, pats, opts):
     # Parameters are identical to log command ones
     revs, expr, filematcher = getgraphlogrevs(repo, pats, opts)
     revdag = graphmod.dagwalker(repo, revs)
--- a/mercurial/commands.py	Fri Mar 17 23:48:22 2017 +0900
+++ b/mercurial/commands.py	Tue Mar 14 18:16:13 2017 +0900
@@ -3398,7 +3398,7 @@
         del opts['follow']
 
     if opts.get('graph'):
-        return cmdutil.graphlog(ui, repo, *pats, **opts)
+        return cmdutil.graphlog(ui, repo, pats, opts)
 
     revs, expr, filematcher = cmdutil.getlogrevs(repo, pats, opts)
     limit = cmdutil.loglimit(opts)