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

Yuya Nishihara yuya at tcha.org
Sat Apr 14 00:21:16 EDT 2018


# HG changeset patch
# User Yuya Nishihara <yuya at 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.

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):


More information about the Mercurial-devel mailing list