Mercurial > public > mercurial-scm > hg
diff tests/test-patchbomb.t @ 12200:aebb39d45500
patchbomb: let diffstat prompt only once with complete summary
This changes the behaviour of --diffstat.
Before the user was asked for confirmation of each patch with its
description and diffstat, and a final summary.
Now there is only one prompt right before sending with a final
summary which does not include the patch descriptions, but the
message details and the diffstats:
Final summary:
From: sender
To: recipient(s)
Cc: (if present)
Bcc: (if present)
Reply-To: (if present)
Subject: [patch 0 of x [flags]] intro (if present)
a | 28 ++++++++++++++++++++++++++++
b | 15 +++++++++++++++
Subject: [patch 1 of x [flags]] subject
a | 28 ++++++++++++++++++++++++++++
[ ... ]
are you sure you want to send (yn)?
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Fri, 10 Sep 2010 15:32:14 +0200 |
parents | 540693065d40 |
children | 5bfa45651cf6 |
line wrap: on
line diff
--- a/tests/test-patchbomb.t Fri Sep 10 15:56:13 2010 +0200 +++ b/tests/test-patchbomb.t Fri Sep 10 15:32:14 2010 +0200 @@ -332,12 +332,17 @@ > fixheaders This patch series consists of 1 patches. - c + + Final summary: + From: quux + To: foo + Cc: bar + Subject: [PATCH] test c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) - does the diffstat above look okay (yn)? y + are you sure you want to send (yn)? y Displaying [PATCH] test ... Content-Type: text/plain; charset="us-ascii" @@ -375,28 +380,27 @@ > -r 0:1 | fixheaders This patch series consists of 2 patches. - a + + Write the introductory message for the patch series. + + + Final summary: + From: quux + To: foo + Cc: bar + Subject: [PATCH 0 of 2] test + a | 1 + + b | 1 + + 2 files changed, 2 insertions(+), 0 deletions(-) + Subject: [PATCH 1 of 2] a a | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) - - does the diffstat above look okay (yn)? y - b - + Subject: [PATCH 2 of 2] b b | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) - does the diffstat above look okay (yn)? y - Final summary: - - a | 1 + - b | 1 + - 2 files changed, 2 insertions(+), 0 deletions(-) - - does the diffstat above look okay (yn)? y - - Write the introductory message for the patch series. - + are you sure you want to send (yn)? y Displaying [PATCH 0 of 2] test ... Content-Type: text/plain; charset="us-ascii"