mercurial/cmdutil.py
changeset 32837 50586a0a946f
parent 32835 9d76812f9b0b
child 32838 615ec3f14aa9
--- a/mercurial/cmdutil.py	Wed Jun 14 23:56:58 2017 -0400
+++ b/mercurial/cmdutil.py	Sat Apr 22 18:42:03 2017 +0900
@@ -1674,6 +1674,11 @@
 
     return formatter.lookuptemplate(ui, 'changeset', tmpl)
 
+def makelogtemplater(ui, repo, tmpl, buffered=False):
+    """Create a changeset_templater from a literal template 'tmpl'"""
+    return changeset_templater(ui, repo, matchfn=None, diffopts={},
+                               tmpl=tmpl, mapfile=None, buffered=buffered)
+
 def show_changeset(ui, repo, opts, buffered=False):
     """show one changeset using template or regular display.