commit: do not look up committemplate in template paths (BC)
From
5375ba75df40 and
de5cee8ba088, I don't think the current behavior is
intended. Commit templates should be processed as literal templates.
--- 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'):