[PATCH] fix patchbomb prompt when sending series of patches

Alexander Solovyov piranha at piranha.org.ua
Sat Sep 26 15:51:00 CDT 2009


# HG changeset patch
# User Alexander Solovyov <piranha at piranha.org.ua>
# Date 1253998251 -10800
# Node ID b9647af1b557d6350acee987167bfcd87e0991bf
# Parent  9114629969488f36ce474cd6eaac10838a0b34e5
fix patchbomb prompt when sending series of patches

diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -331,8 +331,7 @@ def patchbomb(ui, repo, *revs, **opts):
                 subj = '[PATCH %0*d of %d %s] ' % (tlen, 0, len(patches), flag)
             else:
                 subj = '[PATCH %0*d of %d] ' % (tlen, 0, len(patches))
-            subj += opts.get('subject') or prompt(ui, 'Subject:', rest=subj,
-                                                    default='None')
+            subj += opts.get('subject') or prompt(ui, 'Subject:', rest=subj)
 
             body = ''
             if opts.get('diffstat'):


More information about the Mercurial-devel mailing list