patchbomb: fix patch name generation in patch series
authorPeter Arrenbrecht <peter.arrenbrecht@gmail.com>
Wed, 12 Nov 2008 19:12:32 +0100
changeset 7359 b0fa5dbd9cdd
parent 7358 3c2ed7c2dcb4
child 7360 42f1b8cb9a60
patchbomb: fix patch name generation in patch series
hgext/patchbomb.py
tests/test-patchbomb.out
--- a/hgext/patchbomb.py	Wed Nov 12 19:12:26 2008 +0100
+++ b/hgext/patchbomb.py	Wed Nov 12 19:12:32 2008 +0100
@@ -159,7 +159,7 @@
                 patchname = patchtags[0]
             elif total > 1:
                 patchname = cmdutil.make_filename(repo, '%b-%n.patch',
-                                                  binnode, idx, total)
+                                                  binnode, seqno=idx, total=total)
             else:
                 patchname = cmdutil.make_filename(repo, '%b.patch', binnode)
         disposition = 'inline'
--- a/tests/test-patchbomb.out	Wed Nov 12 19:12:26 2008 +0100
+++ b/tests/test-patchbomb.out	Wed Nov 12 19:12:32 2008 +0100
@@ -386,7 +386,7 @@
 Content-Type: text/x-patch; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
-Content-Disposition: inline; filename=t2-2.patch
+Content-Disposition: inline; filename=t2-1.patch
 
 # HG changeset patch
 # User test
@@ -522,7 +522,7 @@
 Content-Type: text/x-patch; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
-Content-Disposition: attachment; filename=t2-2.patch
+Content-Disposition: attachment; filename=t2-1.patch
 
 # HG changeset patch
 # User test
@@ -650,7 +650,7 @@
 Content-Type: text/x-patch; charset="us-ascii"
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
-Content-Disposition: inline; filename=t2-2.patch
+Content-Disposition: inline; filename=t2-1.patch
 
 # HG changeset patch
 # User test