diff -r 41a9edc5d00f -r 48a8b2e5fe31 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Mon Feb 13 00:05:55 2017 -0800 +++ b/mercurial/cmdutil.py Sat Feb 25 16:26:58 2017 +0900 @@ -1442,8 +1442,6 @@ def __init__(self, ui, repo, matchfn, diffopts, tmpl, mapfile, buffered): changeset_printer.__init__(self, ui, repo, matchfn, diffopts, buffered) - formatnode = ui.debugflag and (lambda x: x) or (lambda x: x[:12]) - filters = {'formatnode': formatnode} defaulttempl = { 'parent': '{rev}:{node|formatnode} ', 'manifest': '{rev}:{node|formatnode}', @@ -1455,11 +1453,10 @@ defaulttempl['filecopy'] = defaulttempl['file_copy'] assert not (tmpl and mapfile) if mapfile: - self.t = templater.templater.frommapfile(mapfile, filters=filters, + self.t = templater.templater.frommapfile(mapfile, cache=defaulttempl) else: self.t = formatter.maketemplater(ui, 'changeset', tmpl, - filters=filters, cache=defaulttempl) self.cache = {}