changeset 32895:388e1242ed9e

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.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 22 Apr 2017 15:28:29 +0900
parents 8da65da039c3
children a3a36bcf122e
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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'):