comparison hgext/churn.py @ 24987:fd7287f0b43c

templater: remove noop calls of parsestring(s, quoted=False) (API) Since db7463aa080f, parsestring(s, quoted=False) just returns s.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 04 May 2015 10:01:03 +0900
parents 73b3218bb078
children 80c5b2666a96
comparison
equal deleted inserted replaced
24986:fb9b7b937b3e 24987:fd7287f0b43c
7 # GNU General Public License version 2 or any later version. 7 # GNU General Public License version 2 or any later version.
8 8
9 '''command to display statistics about repository history''' 9 '''command to display statistics about repository history'''
10 10
11 from mercurial.i18n import _ 11 from mercurial.i18n import _
12 from mercurial import patch, cmdutil, scmutil, util, templater, commands 12 from mercurial import patch, cmdutil, scmutil, util, commands
13 from mercurial import encoding 13 from mercurial import encoding
14 import os 14 import os
15 import time, datetime 15 import time, datetime
16 16
17 cmdtable = {} 17 cmdtable = {}
18 command = cmdutil.command(cmdtable) 18 command = cmdutil.command(cmdtable)
19 testedwith = 'internal' 19 testedwith = 'internal'
20 20
21 def maketemplater(ui, repo, tmpl): 21 def maketemplater(ui, repo, tmpl):
22 tmpl = templater.parsestring(tmpl, quoted=False)
23 try: 22 try:
24 t = cmdutil.changeset_templater(ui, repo, False, None, tmpl, 23 t = cmdutil.changeset_templater(ui, repo, False, None, tmpl,
25 None, False) 24 None, False)
26 except SyntaxError, inst: 25 except SyntaxError, inst:
27 raise util.Abort(inst.args[0]) 26 raise util.Abort(inst.args[0])