# HG changeset patch # User Yuya Nishihara # Date 1516510856 -32400 # Node ID 218b77c4c87a040e1f2995a8252ca3fae9dcf0ba # Parent 386c1e45e6712c7723b51c98ae507f58afc91874 logcmdutil: mark changesetprinter.showpatch() as private diff -r 386c1e45e671 -r 218b77c4c87a 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: