diff -r 8da65da039c3 -r 388e1242ed9e mercurial/cmdutil.py --- a/mercurial/cmdutil.py Sat May 06 17:03:59 2017 +0900 +++ b/mercurial/cmdutil.py Sat Apr 22 15:28:29 2017 +0900 @@ -2959,7 +2959,7 @@ def buildcommittemplate(repo, ctx, subs, extramsg, tmpl): ui = repo.ui - spec = _lookuplogtemplate(ui, tmpl, None) + spec = logtemplatespec(tmpl, None) t = changeset_templater(ui, repo, spec, None, {}, False) for k, v in repo.ui.configitems('committemplate'):