logcmdutil: mark changesetprinter.showpatch() as private
authorYuya Nishihara <yuya@tcha.org>
Sun, 21 Jan 2018 14:00:56 +0900
changeset 35994 218b77c4c87a
parent 35993 386c1e45e671
child 35995 fd54846e1f8e
logcmdutil: mark changesetprinter.showpatch() as private
mercurial/logcmdutil.py
--- a/mercurial/logcmdutil.py	Sun Jan 21 14:28:03 2018 +0900
+++ b/mercurial/logcmdutil.py	Sun Jan 21 14:00:56 2018 +0900
@@ -251,7 +251,7 @@
                               label='log.summary')
         self.ui.write("\n")
 
-        self.showpatch(ctx, matchfn, hunksfilterfn=hunksfilterfn)
+        self._showpatch(ctx, matchfn, hunksfilterfn=hunksfilterfn)
 
     def _showobsfate(self, ctx):
         obsfate = templatekw.showobsfate(repo=self.repo, ctx=ctx, ui=self.ui)
@@ -265,7 +265,7 @@
         '''empty method used by extension as a hook point
         '''
 
-    def showpatch(self, ctx, matchfn, hunksfilterfn=None):
+    def _showpatch(self, ctx, matchfn, hunksfilterfn=None):
         if not matchfn:
             matchfn = self.matchfn
         if matchfn:
@@ -469,7 +469,7 @@
         # write changeset metadata, then patch if requested
         key = self._parts[self._tref]
         self.ui.write(templater.stringify(self.t(key, **props)))
-        self.showpatch(ctx, matchfn, hunksfilterfn=hunksfilterfn)
+        self._showpatch(ctx, matchfn, hunksfilterfn=hunksfilterfn)
 
         if self._parts['footer']:
             if not self.footer: