Mercurial > public > mercurial-scm > hg
diff hgext/split.py @ 45773:84ce9ffc95ad
split: use default one-line summary
Differential Revision: https://phab.mercurial-scm.org/D9255
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 27 Oct 2020 10:06:17 -0700 |
parents | 2349a60f33db |
children | 8357e0e81bb7 |
line wrap: on
line diff
--- a/hgext/split.py Tue Oct 27 10:22:36 2020 -0700 +++ b/hgext/split.py Tue Oct 27 10:06:17 2020 -0700 @@ -143,8 +143,8 @@ b'HG: Splitting %s. So far it has been split into:\n' ) % short(ctx.node()) for c in committed: - firstline = c.description().split(b'\n', 1)[0] - header += _(b'HG: - %s: %s\n') % (short(c.node()), firstline) + summary = cmdutil.format_changeset_summary(ui, c, b'split') + header += _(b'HG: - %s\n') % summary header += _( b'HG: Write commit message for the next split changeset.\n' )