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