Show More
@@ -142,9 +142,14 def dosplit(ui, repo, tr, ctx, opts): | |||
|
142 | 142 | header = _( |
|
143 | 143 | b'HG: Splitting %s. So far it has been split into:\n' |
|
144 | 144 | ) % short(ctx.node()) |
|
145 | for c in committed: | |
|
146 | summary = cmdutil.format_changeset_summary(ui, c, b'split') | |
|
147 | header += _(b'HG: - %s\n') % summary | |
|
145 | # We don't want color codes in the commit message template, so | |
|
146 | # disable the label() template function while we render it. | |
|
147 | with ui.configoverride( | |
|
148 | {(b'templatealias', b'label(l,x)'): b"x"}, b'split' | |
|
149 | ): | |
|
150 | for c in committed: | |
|
151 | summary = cmdutil.format_changeset_summary(ui, c, b'split') | |
|
152 | header += _(b'HG: - %s\n') % summary | |
|
148 | 153 | header += _( |
|
149 | 154 | b'HG: Write commit message for the next split changeset.\n' |
|
150 | 155 | ) |
@@ -1031,7 +1031,7 Test that color codes don't end up in th | |||
|
1031 | 1031 | (enter ? for help) [Ynesfdaq?]] [ ui.promptecho|a] |
|
1032 | 1032 | |
|
1033 | 1033 | EDITOR: HG: Splitting 6432c65c3078. So far it has been split into: |
|
1034 |
EDITOR: HG: - |
|
|
1034 | EDITOR: HG: - 2 split2, modifying file2 | |
|
1035 | 1035 | EDITOR: HG: Write commit message for the next split changeset. |
|
1036 | 1036 | EDITOR: split1, modifying file1 |
|
1037 | 1037 | EDITOR: |
General Comments 0
You need to be logged in to leave comments.
Login now