# HG changeset patch # User Yuya Nishihara # Date 2017-03-14 09:16:13 # Node ID 06d3c40fc3e700c22d4f039f18b15bd9e51a9e7a # Parent cad95575dc4694dc5eaa6b83bcfca476e09c65aa 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. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2212,7 +2212,7 @@ def displaygraph(ui, repo, dag, displaye 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) diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3398,7 +3398,7 @@ def log(ui, repo, *pats, **opts): 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)