Mercurial > hg-stable
changeset 42072:fc0095256513
chistedit: properly show verbose diffs
I'm not sure if that ever worked and it's an internal API breakage,
but `"verbose": True` is not correctly parsed, as most of these
options are parsed by diffopts, whereas verbose is a global option.
Setting the UI to verbose instead does work and does show a verbose
patch, with full commit message.
It also shows all files, which unfortunately are a bit hard to read on
a single line in the default verbose template. Thus, we also change
the default template to use the status template, which shows one file
per line as well as its modification state.
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Thu, 04 Apr 2019 10:41:55 -0400 |
parents | db72f9f6580e |
children | 80103ed2e8ee |
files | hgext/histedit.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/histedit.py Thu Apr 04 11:35:18 2019 +0200 +++ b/hgext/histedit.py Thu Apr 04 10:41:55 2019 -0400 @@ -1229,8 +1229,9 @@ def patchcontents(state): repo = state['repo'] rule = state['rules'][state['pos']] + repo.ui.verbose = True displayer = logcmdutil.changesetdisplayer(repo.ui, repo, { - 'patch': True, 'verbose': True + "patch": True, "template": "status" }, buffered=True) displayer.show(rule.ctx) displayer.close()