##// END OF EJS Templates
patchbomb: add label and color to the confirm output...
Pierre-Yves David -
r23173:122f5c3f default
parent child Browse files
Show More
@@ -301,6 +301,11 b' except ImportError:'
301 'histedit.remaining': 'red bold',
301 'histedit.remaining': 'red bold',
302 'ui.prompt': 'yellow',
302 'ui.prompt': 'yellow',
303 'log.changeset': 'yellow',
303 'log.changeset': 'yellow',
304 'patchbomb.finalsummary': '',
305 'patchbomb.from': 'magenta',
306 'patchbomb.to': 'cyan',
307 'patchbomb.subject': 'green',
308 'patchbomb.diffstats': '',
304 'rebase.rebased': 'blue',
309 'rebase.rebased': 'blue',
305 'rebase.remaining': 'red bold',
310 'rebase.remaining': 'red bold',
306 'resolve.resolved': 'green bold',
311 'resolve.resolved': 'green bold',
@@ -483,14 +483,14 b' def patchbomb(ui, repo, *revs, **opts):'
483 replyto = getaddrs('Reply-To')
483 replyto = getaddrs('Reply-To')
484
484
485 if opts.get('diffstat') or opts.get('confirm'):
485 if opts.get('diffstat') or opts.get('confirm'):
486 ui.write(_('\nFinal summary:\n\n'))
486 ui.write(_('\nFinal summary:\n\n'), label='patchbomb.finalsummary')
487 ui.write(('From: %s\n' % sender))
487 ui.write(('From: %s\n' % sender), label='patchbomb.from')
488 for addr in showaddrs:
488 for addr in showaddrs:
489 ui.write('%s\n' % addr)
489 ui.write('%s\n' % addr, label='patchbomb.to')
490 for m, subj, ds in msgs:
490 for m, subj, ds in msgs:
491 ui.write(('Subject: %s\n' % subj))
491 ui.write(('Subject: %s\n' % subj), label='patchbomb.subject')
492 if ds:
492 if ds:
493 ui.write(ds)
493 ui.write(ds, label='patchbomb.diffstats')
494 ui.write('\n')
494 ui.write('\n')
495 if ui.promptchoice(_('are you sure you want to send (yn)?'
495 if ui.promptchoice(_('are you sure you want to send (yn)?'
496 '$$ &Yes $$ &No')):
496 '$$ &Yes $$ &No')):
General Comments 0
You need to be logged in to leave comments. Login now