Mercurial > hg-stable
changeset 7359:b0fa5dbd9cdd
patchbomb: fix patch name generation in patch series
author | Peter Arrenbrecht <peter.arrenbrecht@gmail.com> |
---|---|
date | Wed, 12 Nov 2008 19:12:32 +0100 |
parents | 3c2ed7c2dcb4 |
children | 42f1b8cb9a60 |
files | hgext/patchbomb.py tests/test-patchbomb.out |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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