# HG changeset patch # User Matt Mackall # Date 1331243981 21600 # Node ID 3f79b110c4f0c4eb09da8a957742e13ac3ff2208 # Parent 877aea86fb7324d6d1c3dc3a166007b667d796f8 patchbomb: add (optional) note to 0 of 0 prompt diff -r 877aea86fb73 -r 3f79b110c4f0 hgext/patchbomb.py --- a/hgext/patchbomb.py Thu Mar 08 15:59:33 2012 -0600 +++ b/hgext/patchbomb.py Thu Mar 08 15:59:41 2012 -0600 @@ -384,7 +384,7 @@ prefix = '[PATCH %0*d of %d%s]' % (tlen, 0, len(patches), flag) subj = (opts.get('subject') or - prompt(ui, 'Subject: ', rest=prefix, default='')) + prompt(ui, '(optional) Subject: ', rest=prefix, default='')) if not subj: return None # skip intro if the user doesn't bother diff -r 877aea86fb73 -r 3f79b110c4f0 tests/test-patchbomb.t --- a/tests/test-patchbomb.t Thu Mar 08 15:59:33 2012 -0600 +++ b/tests/test-patchbomb.t Thu Mar 08 15:59:41 2012 -0600 @@ -1572,7 +1572,7 @@ > -r 0:1 This patch series consists of 2 patches. - Subject: [PATCH 0 of 2] + (optional) Subject: [PATCH 0 of 2] Displaying [PATCH 1 of 2] a ... Content-Type: text/plain; charset="us-ascii"