templater: drop deprecated handling of KeyError from changeset_templater

It's been superseded by 50f9d20d4c27 and the previous patch. templater.mapfile
is no longer used and removed.
This commit is contained in:
Yuya Nishihara 2016-04-03 11:23:31 +09:00
parent edef054d1b
commit 72e05b7594
2 changed files with 17 additions and 22 deletions

View File

@ -1532,7 +1532,6 @@ class changeset_templater(changeset_printer):
props['revcache'] = {'copies': copies}
props['cache'] = self.cache
try:
# write header
if self._parts['header']:
h = templater.stringify(self.t(self._parts['header'], **props))
@ -1552,9 +1551,6 @@ class changeset_templater(changeset_printer):
if not self.footer:
self.footer = templater.stringify(
self.t(self._parts['footer'], **props))
except KeyError as inst:
msg = _("%s: no key named '%s'")
raise error.Abort(msg % (self.t.mapfile, inst.args[0]))
def gettemplate(ui, tmpl, style):
"""

View File

@ -956,7 +956,6 @@ class templater(object):
defaults = {}
if cache is None:
cache = {}
self.mapfile = mapfile or 'template'
self.cache = cache.copy()
self.map = {}
if mapfile: