comparison mercurial/cmdutil.py @ 32046:5b630f2ccb4e

commit: optionally strip quotes from commit template (BC) For consistency with the other template options.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 25 Feb 2017 19:32:39 +0900
parents 3eceeede26e9
children 93155367a2a6 20bac46f7744
comparison
equal deleted inserted replaced
32045:3eceeede26e9 32046:5b630f2ccb4e
2766 forms.insert(0, 'changeset') 2766 forms.insert(0, 'changeset')
2767 templatetext = None 2767 templatetext = None
2768 while forms: 2768 while forms:
2769 tmpl = repo.ui.config('committemplate', '.'.join(forms)) 2769 tmpl = repo.ui.config('committemplate', '.'.join(forms))
2770 if tmpl: 2770 if tmpl:
2771 tmpl = templater.unquotestring(tmpl)
2771 templatetext = committext = buildcommittemplate( 2772 templatetext = committext = buildcommittemplate(
2772 repo, ctx, subs, extramsg, tmpl) 2773 repo, ctx, subs, extramsg, tmpl)
2773 break 2774 break
2774 forms.pop() 2775 forms.pop()
2775 else: 2776 else: