Patchwork D7505: logcmdutil: call _exthook() in changesettemplater

login
register
mail settings
Submitter phabricator
Date Nov. 22, 2019, 4 p.m.
Message ID <differential-rev-PHID-DREV-sb47uem2dd2kukwt5huf-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43440/
State Superseded
Headers show

Comments

phabricator - Nov. 22, 2019, 4 p.m.
dlax created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Class changesetprinter has an _exthook() method that is called in
  _show() before the patch is displayed. Call the method as well in
  changesettemplater._show().

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D7505

AFFECTED FILES
  mercurial/logcmdutil.py

CHANGE DETAILS




To: dlax, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/logcmdutil.py b/mercurial/logcmdutil.py
--- a/mercurial/logcmdutil.py
+++ b/mercurial/logcmdutil.py
@@ -597,6 +597,7 @@ 
         # write changeset metadata, then patch if requested
         key = self._parts[self._tref]
         self.ui.write(self.t.render(key, props))
+        self._exthook(ctx)
         self._showpatch(ctx, graphwidth)
 
         if self._parts[b'footer']: