commit: do not look up committemplate in template paths (BC)
authorYuya Nishihara <yuya@tcha.org>
Sat, 22 Apr 2017 15:28:29 +0900
changeset 32877 388e1242ed9e
parent 32876 8da65da039c3
child 32878 a3a36bcf122e
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.
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'):