[PATCH 2 of 5] formatter: drop filters argument from maketemplater()
Yuya Nishihara
yuya at tcha.org
Sat Feb 25 09:51:31 EST 2017
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1488027870 -32400
# Sat Feb 25 22:04:30 2017 +0900
# Node ID 67e5135769cfbe56bc9d943d6efcb9e347245427
# Parent c56e0c043a22646371f2828d75617ee51d12bb23
# EXP-Topic formatter
formatter: drop filters argument from maketemplater()
It's unused now. I want to keep the high-level API simple.
diff --git a/mercurial/formatter.py b/mercurial/formatter.py
--- a/mercurial/formatter.py
+++ b/mercurial/formatter.py
@@ -389,10 +389,10 @@ def gettemplater(ui, topic, spec):
return templater.templater.frommapfile(mapfile)
return maketemplater(ui, topic, tmpl)
-def maketemplater(ui, topic, tmpl, filters=None, cache=None):
+def maketemplater(ui, topic, tmpl, cache=None):
"""Create a templater from a string template 'tmpl'"""
aliases = ui.configitems('templatealias')
- t = templater.templater(filters=filters, cache=cache, aliases=aliases)
+ t = templater.templater(cache=cache, aliases=aliases)
if tmpl:
t.cache[topic] = tmpl
return t
More information about the Mercurial-devel
mailing list