logcmdutil: call _exthook() in changesettemplater
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 21 Nov 2019 16:48:34 +0100
changeset 43848 6331a6fc3304
parent 43847 16b607e9f714
child 43849 088ba9d94079
logcmdutil: call _exthook() in changesettemplater Class changesetprinter has an _exthook() method that is called in _show() before the patch is displayed. Call the method as well in changesettemplater._show(). Differential Revision: https://phab.mercurial-scm.org/D7505
mercurial/logcmdutil.py
--- a/mercurial/logcmdutil.py	Thu Nov 21 18:10:12 2019 +0100
+++ b/mercurial/logcmdutil.py	Thu Nov 21 16:48:34 2019 +0100
@@ -598,6 +598,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']: