Mercurial > public > mercurial-scm > hg
diff hgext/histedit.py @ 45857:ec6ba70be853
tests: show how `hg histedit` can put color codes in histedit plan
Differential Revision: https://phab.mercurial-scm.org/D9323
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 16 Nov 2020 10:30:06 -0800 |
parents | 1f9736eb0e65 |
children | 62983988bbf5 |
line wrap: on
line diff
--- a/hgext/histedit.py Fri Nov 13 09:41:49 2020 -0800 +++ b/hgext/histedit.py Mon Nov 16 10:30:06 2020 -0800 @@ -525,9 +525,10 @@ """ ctx = self.repo[self.node] ui = self.repo.ui - summary = cmdutil.rendertemplate( - ctx, ui.config(b'histedit', b'summary-template') - ) + with ui.configoverride({}, b'histedit'): + summary = cmdutil.rendertemplate( + ctx, ui.config(b'histedit', b'summary-template') + ) summary = summary.splitlines()[0] line = b'%s %s %s' % (self.verb, ctx, summary) # trim to 75 columns by default so it's not stupidly wide in my editor