patchbomb: add (optional) note to 0 of 0 prompt
authorMatt Mackall <mpm@selenic.com>
Thu, 08 Mar 2012 15:59:41 -0600
changeset 16233 3f79b110c4f0
parent 16232 877aea86fb73
child 16234 a6941d7033fa
patchbomb: add (optional) note to 0 of 0 prompt
hgext/patchbomb.py
tests/test-patchbomb.t
--- 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
 
--- 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"