Mercurial > hg-stable
comparison hgext/patchbomb.py @ 19226:c58b6ab4c26f
ui: merge prompt text components into a singe string
This will help avoid problems with partial or mismatched translation
of the components.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 22 May 2013 17:31:43 -0500 |
parents | 19d489404d79 |
children | f4b72cad29f8 |
comparison
equal
deleted
inserted
replaced
19225:6cf8e3b4e074 | 19226:c58b6ab4c26f |
---|---|
480 for m, subj, ds in msgs: | 480 for m, subj, ds in msgs: |
481 ui.write(('Subject: %s\n' % subj)) | 481 ui.write(('Subject: %s\n' % subj)) |
482 if ds: | 482 if ds: |
483 ui.write(ds) | 483 ui.write(ds) |
484 ui.write('\n') | 484 ui.write('\n') |
485 if ui.promptchoice(_('are you sure you want to send (yn)?'), | 485 if ui.promptchoice(_('are you sure you want to send (yn)?' |
486 (_('&Yes'), _('&No'))): | 486 '$$ &Yes $$ &No')): |
487 raise util.Abort(_('patchbomb canceled')) | 487 raise util.Abort(_('patchbomb canceled')) |
488 | 488 |
489 ui.write('\n') | 489 ui.write('\n') |
490 | 490 |
491 parent = opts.get('in_reply_to') or None | 491 parent = opts.get('in_reply_to') or None |