comparison hgext/churn.py @ 20667:e96e9f805c19

changeset_templater: remove use_template method
author Matt Mackall <mpm@selenic.com>
date Sat, 08 Mar 2014 16:14:08 -0600
parents 9ef92384415c
children 9846b40d01e7
comparison
equal deleted inserted replaced
20666:e3eb480a9391 20667:e96e9f805c19
16 testedwith = 'internal' 16 testedwith = 'internal'
17 17
18 def maketemplater(ui, repo, tmpl): 18 def maketemplater(ui, repo, tmpl):
19 tmpl = templater.parsestring(tmpl, quoted=False) 19 tmpl = templater.parsestring(tmpl, quoted=False)
20 try: 20 try:
21 t = cmdutil.changeset_templater(ui, repo, False, None, None, False) 21 t = cmdutil.changeset_templater(ui, repo, False, None, tmpl,
22 None, False)
22 except SyntaxError, inst: 23 except SyntaxError, inst:
23 raise util.Abort(inst.args[0]) 24 raise util.Abort(inst.args[0])
24 t.use_template(tmpl)
25 return t 25 return t
26 26
27 def changedlines(ui, repo, ctx1, ctx2, fns): 27 def changedlines(ui, repo, ctx1, ctx2, fns):
28 added, removed = 0, 0 28 added, removed = 0, 0
29 fmatch = scmutil.matchfiles(repo, fns) 29 fmatch = scmutil.matchfiles(repo, fns)