Mercurial > public > mercurial-scm > hg
comparison mercurial/logcmdutil.py @ 43830:6331a6fc3304
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
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Thu, 21 Nov 2019 16:48:34 +0100 |
parents | 29adf0a087a1 |
children | 14d0e89520a2 |
comparison
equal
deleted
inserted
replaced
43829:16b607e9f714 | 43830:6331a6fc3304 |
---|---|
596 self.ui.write(h) | 596 self.ui.write(h) |
597 | 597 |
598 # write changeset metadata, then patch if requested | 598 # write changeset metadata, then patch if requested |
599 key = self._parts[self._tref] | 599 key = self._parts[self._tref] |
600 self.ui.write(self.t.render(key, props)) | 600 self.ui.write(self.t.render(key, props)) |
601 self._exthook(ctx) | |
601 self._showpatch(ctx, graphwidth) | 602 self._showpatch(ctx, graphwidth) |
602 | 603 |
603 if self._parts[b'footer']: | 604 if self._parts[b'footer']: |
604 if not self.footer: | 605 if not self.footer: |
605 self.footer = self.t.render(self._parts[b'footer'], props) | 606 self.footer = self.t.render(self._parts[b'footer'], props) |