comparison mercurial/cmdutil.py @ 32877: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 c8f2cf18b82e
children a3a36bcf122e
comparison
equal deleted inserted replaced
32876:8da65da039c3 32877:388e1242ed9e
2957 2957
2958 return text 2958 return text
2959 2959
2960 def buildcommittemplate(repo, ctx, subs, extramsg, tmpl): 2960 def buildcommittemplate(repo, ctx, subs, extramsg, tmpl):
2961 ui = repo.ui 2961 ui = repo.ui
2962 spec = _lookuplogtemplate(ui, tmpl, None) 2962 spec = logtemplatespec(tmpl, None)
2963 t = changeset_templater(ui, repo, spec, None, {}, False) 2963 t = changeset_templater(ui, repo, spec, None, {}, False)
2964 2964
2965 for k, v in repo.ui.configitems('committemplate'): 2965 for k, v in repo.ui.configitems('committemplate'):
2966 if k != 'changeset': 2966 if k != 'changeset':
2967 t.t.cache[k] = v 2967 t.t.cache[k] = v