# HG changeset patch
# User Yuya Nishihara <y...@tcha.org>
# Date 1516510856 -32400
#      Sun Jan 21 14:00:56 2018 +0900
# Node ID 4d7182357056c2672716d7caf849231d7b25691a
# Parent  f1a8a49af81a97618a4b1eb7e78c7372db776cdc
logcmdutil: mark changesetprinter.showpatch() as private

diff --git a/mercurial/logcmdutil.py b/mercurial/logcmdutil.py
--- a/mercurial/logcmdutil.py
+++ b/mercurial/logcmdutil.py
@@ -251,7 +251,7 @@ class changesetprinter(object):
                               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 @@ class changesetprinter(object):
         '''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 @@ class changesettemplater(changesetprinte
         # 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:
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to