Patchwork [2,of,4] logcmdutil: remove unused attribute 'cache' from jsonchangeset printer

login
register
mail settings
Submitter Yuya Nishihara
Date April 14, 2018, 4:21 a.m.
Message ID <7a8009978a8f5f0a0b34.1523679676@mimosa>
Download mbox | patch
Permalink /patch/30962/
State Accepted
Headers show

Comments

Yuya Nishihara - April 14, 2018, 4:21 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1523625613 -32400
#      Fri Apr 13 22:20:13 2018 +0900
# Node ID 7a8009978a8f5f0a0b34d356fa4f506065f572f8
# Parent  356d01cf53f693c0ff8dd9de49ba85037f57a048
logcmdutil: remove unused attribute 'cache' from jsonchangeset printer

Perhaps it's a copy-pasta of changeset_templater at bd15932846a4.

Patch

diff --git a/mercurial/logcmdutil.py b/mercurial/logcmdutil.py
--- a/mercurial/logcmdutil.py
+++ b/mercurial/logcmdutil.py
@@ -317,7 +317,6 @@  class jsonchangeset(changesetprinter):
 
     def __init__(self, ui, repo, differ=None, diffopts=None, buffered=False):
         changesetprinter.__init__(self, ui, repo, differ, diffopts, buffered)
-        self.cache = {}
         self._first = True
 
     def close(self):