hgext/churn.py
changeset 32855 50586a0a946f
parent 32414 04baab18d60a
child 35029 26ed66ab1e72
--- a/hgext/churn.py	Wed Jun 14 23:56:58 2017 -0400
+++ b/hgext/churn.py	Sat Apr 22 18:42:03 2017 +0900
@@ -32,9 +32,6 @@
 # leave the attribute unspecified.
 testedwith = 'ships-with-hg-core'
 
-def maketemplater(ui, repo, tmpl):
-    return cmdutil.changeset_templater(ui, repo, False, None, tmpl, None, False)
-
 def changedlines(ui, repo, ctx1, ctx2, fns):
     added, removed = 0, 0
     fmatch = scmutil.matchfiles(repo, fns)
@@ -55,7 +52,7 @@
             return date.strftime(opts['dateformat'])
     else:
         tmpl = opts.get('oldtemplate') or opts.get('template')
-        tmpl = maketemplater(ui, repo, tmpl)
+        tmpl = cmdutil.makelogtemplater(ui, repo, tmpl)
         def getkey(ctx):
             ui.pushbuffer()
             tmpl.show(ctx)