annotate tests/test-patchbomb.t @ 43325:7d4f2e4899c5 stable

py3: fix headencode() with display=False We previously called str() on a email.header.Header object. On Python 2, this returns a bytestring and the __str__ method is actually an alias to .encode() method. On Python 3, __str__ does not perform encoding (and returns a unicode string). To keep a consistent behavior across Python versions, we explicitly use .encode() and we wrap the result with encoding.strtolocal() to get a bytestring in all cases. As a side effect of forcing bytes conversion, we need to decode back in _addressencode(). This is to make test-notify.t pass on Python 3. Also note that headers are now encoded in some patchbomb tests; this is because the charset is not always "us-ascii" ("iso-8859-1" otherwise) on Python 3.
author Denis Laxalde <denis.laxalde@logilab.fr>
date Thu, 24 Oct 2019 17:16:43 +0200
parents 2cc453284d5c
children 08189f3acbc6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1 Note for future hackers of patchbomb: this file is a bit heavy on
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
2 wildcards in test expectations due to how many things like hostnames
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
3 tend to make it into outputs. As a result, you may need to perform the
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
4 following regular expression substitutions:
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
5 Mercurial-patchbomb/.* -> Mercurial-patchbomb/* (glob)
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
6 /mixed; boundary="===+[0-9]+==" -> /mixed; boundary="===*== (glob)"
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
7 --===+[0-9]+=+--$ -> --===*=-- (glob)
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
8 --===+[0-9]+=+$ -> --===*= (glob)
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
9
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
10 $ cat > prune-blank-after-boundary.py <<EOF
33983
99e3227c83b5 tests: update test-patchbomb to pass our import checker
Augie Fackler <raf@durin42.com>
parents: 32940
diff changeset
11 > from __future__ import absolute_import, print_function
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
12 > import sys
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
13 > skipblank = False
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
14 > trim = lambda x: x.strip(' \r\n')
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
15 > for l in sys.stdin:
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
16 > if trim(l).endswith('=--') or trim(l).endswith('=='):
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
17 > skipblank = True
33983
99e3227c83b5 tests: update test-patchbomb to pass our import checker
Augie Fackler <raf@durin42.com>
parents: 32940
diff changeset
18 > print(l, end='')
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
19 > continue
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
20 > if not trim(l) and skipblank:
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
21 > continue
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
22 > skipblank = False
33983
99e3227c83b5 tests: update test-patchbomb to pass our import checker
Augie Fackler <raf@durin42.com>
parents: 32940
diff changeset
23 > print(l, end='')
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
24 > EOF
40969
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
25 $ filterboundary() {
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
26 > "$PYTHON" "$TESTTMP/prune-blank-after-boundary.py"
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
27 > }
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
28 $ echo "[extensions]" >> $HGRCPATH
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
29 $ echo "patchbomb=" >> $HGRCPATH
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
30
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
31 $ hg init t
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
32 $ cd t
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
33 $ echo a > a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
34 $ hg commit -Ama -d '1 0'
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
35 adding a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
36
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
37 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
38 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
39
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
40
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
41 displaying [PATCH] a ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
42 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
43 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
44 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
45 Subject: [PATCH] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
46 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
47 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
48 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
49 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
50 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
51 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
52 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
53 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
54 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
55 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
56
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
57 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
58 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
59 # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
60 # Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
61 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
62 # Parent 0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
63 a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
64
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
65 diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
66 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
67 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
68 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
69 +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
70
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
71
34301
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
72 If --to is specified on the command line, it should override any
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
73 email.to config setting. Same for --cc:
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
74
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
75 $ hg email --date '1970-1-1 0:1' -n -f quux --to foo --cc bar -r tip \
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
76 > --config email.to=bob@example.com --config email.cc=alice@example.com
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
77 this patch series consists of 1 patches.
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
78
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
79
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
80 displaying [PATCH] a ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
81 MIME-Version: 1.0
34301
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
82 Content-Type: text/plain; charset="us-ascii"
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
83 Content-Transfer-Encoding: 7bit
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
84 Subject: [PATCH] a
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
85 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
86 X-Mercurial-Series-Index: 1
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
87 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
88 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
89 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
34301
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
90 User-Agent: Mercurial-patchbomb/* (glob)
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
91 Date: Thu, 01 Jan 1970 00:01:00 +0000
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
92 From: quux
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
93 To: foo
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
94 Cc: bar
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
95
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
96 # HG changeset patch
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
97 # User test
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
98 # Date 1 0
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
99 # Thu Jan 01 00:00:01 1970 +0000
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
100 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
101 # Parent 0000000000000000000000000000000000000000
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
102 a
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
103
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
104 diff -r 000000000000 -r 8580ff50825a a
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
105 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
106 +++ b/a Thu Jan 01 00:00:01 1970 +0000
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
107 @@ -0,0 +1,1 @@
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
108 +a
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
109
3704d3f21136 patchbomb: add test that shows --to and --cc override matching config item
Augie Fackler <augie@google.com>
parents: 33983
diff changeset
110
12201
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
111 $ hg --config ui.interactive=1 email --confirm -n -f quux -t foo -c bar -r tip<<EOF
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
112 > n
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
113 > EOF
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
114 this patch series consists of 1 patches.
12201
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
115
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
116
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
117 Final summary:
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
118
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
119 From: quux
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
120 To: foo
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
121 Cc: bar
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
122 Subject: [PATCH] a
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
123 a | 1 +
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
124 1 files changed, 1 insertions(+), 0 deletions(-)
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
125
22589
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22071
diff changeset
126 are you sure you want to send (yn)? n
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22071
diff changeset
127 abort: patchbomb canceled
12316
4134686b83e1 tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents: 12201
diff changeset
128 [255]
12201
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
129
23488
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
130 $ hg --config ui.interactive=1 --config patchbomb.confirm=true email -n -f quux -t foo -c bar -r tip<<EOF
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
131 > n
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
132 > EOF
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
133 this patch series consists of 1 patches.
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
134
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
135
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
136 Final summary:
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
137
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
138 From: quux
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
139 To: foo
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
140 Cc: bar
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
141 Subject: [PATCH] a
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
142 a | 1 +
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
143 1 files changed, 1 insertions(+), 0 deletions(-)
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
144
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
145 are you sure you want to send (yn)? n
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
146 abort: patchbomb canceled
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
147 [255]
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
148
11b215731e74 patchbomb: introduce a 'patchbomb.confirm' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23487
diff changeset
149
23450
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
150 Test diff.git is respected
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
151 $ hg --config diff.git=True email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
152 this patch series consists of 1 patches.
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
153
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
154
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
155 displaying [PATCH] a ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
156 MIME-Version: 1.0
23450
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
157 Content-Type: text/plain; charset="us-ascii"
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
158 Content-Transfer-Encoding: 7bit
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
159 Subject: [PATCH] a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
160 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
161 X-Mercurial-Series-Index: 1
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
162 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
163 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
164 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
23450
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
165 User-Agent: Mercurial-patchbomb/* (glob)
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
166 Date: Thu, 01 Jan 1970 00:01:00 +0000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
167 From: quux
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
168 To: foo
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
169 Cc: bar
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
170
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
171 # HG changeset patch
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
172 # User test
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
173 # Date 1 0
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
174 # Thu Jan 01 00:00:01 1970 +0000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
175 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
176 # Parent 0000000000000000000000000000000000000000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
177 a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
178
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
179 diff --git a/a b/a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
180 new file mode 100644
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
181 --- /dev/null
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
182 +++ b/a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
183 @@ -0,0 +1,1 @@
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
184 +a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
185
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
186
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
187
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
188 Test breaking format changes aren't
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
189 $ hg --config diff.noprefix=True email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
190 this patch series consists of 1 patches.
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
191
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
192
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
193 displaying [PATCH] a ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
194 MIME-Version: 1.0
23450
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
195 Content-Type: text/plain; charset="us-ascii"
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
196 Content-Transfer-Encoding: 7bit
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
197 Subject: [PATCH] a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
198 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
199 X-Mercurial-Series-Index: 1
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
200 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
201 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
202 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
23450
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
203 User-Agent: Mercurial-patchbomb/* (glob)
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
204 Date: Thu, 01 Jan 1970 00:01:00 +0000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
205 From: quux
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
206 To: foo
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
207 Cc: bar
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
208
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
209 # HG changeset patch
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
210 # User test
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
211 # Date 1 0
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
212 # Thu Jan 01 00:00:01 1970 +0000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
213 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
214 # Parent 0000000000000000000000000000000000000000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
215 a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
216
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
217 diff -r 000000000000 -r 8580ff50825a a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
218 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
219 +++ b/a Thu Jan 01 00:00:01 1970 +0000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
220 @@ -0,0 +1,1 @@
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
221 +a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
222
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
223
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
224 $ echo b > b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
225 $ hg commit -Amb -d '2 0'
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
226 adding b
4420
b0656b33cc02 add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
227
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
228 $ hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test -r 0:tip
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
229 this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
230
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
231
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
232 Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
233
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
234
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
235 displaying [PATCH 0 of 2] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
236 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
237 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
238 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
239 Subject: [PATCH 0 of 2] test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
240 Message-Id: <patchbomb.120@test-hostname>
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
241 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
242 Date: Thu, 01 Jan 1970 00:02:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
243 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
244 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
245 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
246
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
247
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
248 displaying [PATCH 1 of 2] a ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
249 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
250 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
251 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
252 Subject: [PATCH 1 of 2] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
253 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
254 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
255 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
256 Message-Id: <8580ff50825a50c8f716.121@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
257 X-Mercurial-Series-Id: <8580ff50825a50c8f716.121@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
258 In-Reply-To: <patchbomb.120@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
259 References: <patchbomb.120@test-hostname>
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
260 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
261 Date: Thu, 01 Jan 1970 00:02:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
262 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
263 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
264 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
265
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
266 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
267 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
268 # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
269 # Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
270 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
271 # Parent 0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
272 a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
273
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
274 diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
275 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
276 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
277 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
278 +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
279
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
280 displaying [PATCH 2 of 2] b ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
281 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
282 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
283 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
284 Subject: [PATCH 2 of 2] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
285 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
286 X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
287 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
288 Message-Id: <97d72e5f12c7e84f8506.122@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
289 X-Mercurial-Series-Id: <8580ff50825a50c8f716.121@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
290 In-Reply-To: <patchbomb.120@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
291 References: <patchbomb.120@test-hostname>
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
292 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
293 Date: Thu, 01 Jan 1970 00:02:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
294 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
295 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
296 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
297
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
298 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
299 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
300 # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
301 # Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
302 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
303 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
304 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
305
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
306 diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
307 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
308 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
309 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
310 +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
311
5753
ea1016b32e94 patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents: 4597
diff changeset
312
13198
e71b2aa74ce3 patchbomb: save introductory message in .hg/last-email.txt
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 12942
diff changeset
313 .hg/last-email.txt
e71b2aa74ce3 patchbomb: save introductory message in .hg/last-email.txt
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 12942
diff changeset
314
16901
5b89700cce30 tests: consistently use a HGEDITOR pattern that works with msys on windows
Mads Kiilerich <mads@kiilerich.com>
parents: 16351
diff changeset
315 $ cat > editor.sh << '__EOF__'
13198
e71b2aa74ce3 patchbomb: save introductory message in .hg/last-email.txt
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 12942
diff changeset
316 > echo "a precious introductory message" > "$1"
e71b2aa74ce3 patchbomb: save introductory message in .hg/last-email.txt
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 12942
diff changeset
317 > __EOF__
16901
5b89700cce30 tests: consistently use a HGEDITOR pattern that works with msys on windows
Mads Kiilerich <mads@kiilerich.com>
parents: 16351
diff changeset
318 $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg email -n -t foo -s test -r 0:tip > /dev/null
13198
e71b2aa74ce3 patchbomb: save introductory message in .hg/last-email.txt
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 12942
diff changeset
319 $ cat .hg/last-email.txt
e71b2aa74ce3 patchbomb: save introductory message in .hg/last-email.txt
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 12942
diff changeset
320 a precious introductory message
e71b2aa74ce3 patchbomb: save introductory message in .hg/last-email.txt
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 12942
diff changeset
321
12845
685d884fd2b6 test-patchbomb: add test for progress support (1ed2dc9d4368)
Yuya Nishihara <yuya@tcha.org>
parents: 12376
diff changeset
322 $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip \
685d884fd2b6 test-patchbomb: add test for progress support (1ed2dc9d4368)
Yuya Nishihara <yuya@tcha.org>
parents: 12376
diff changeset
323 > --config extensions.progress= --config progress.assume-tty=1 \
14101
0c5228836fcd test-patchbomb.t: clean up progress tests
Augie Fackler <durin42@gmail.com>
parents: 13439
diff changeset
324 > --config progress.delay=0 --config progress.refresh=0 \
34316
12b355964de8 test-patchbomb: use mocktime
Jun Wu <quark@fb.com>
parents: 34315
diff changeset
325 > --config progress.width=60 \
12b355964de8 test-patchbomb: use mocktime
Jun Wu <quark@fb.com>
parents: 34315
diff changeset
326 > --config extensions.mocktime=$TESTDIR/mocktime.py
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
327 this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
328
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
329
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
330 Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
331
17743
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
332 \r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
333 sending [ ] 0/3\r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
334 \r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
335 \r (no-eol) (esc)
34315
98b359216915 test-patchbomb: fix the test
Jun Wu <quark@fb.com>
parents: 34310
diff changeset
336 sending [============> ] 1/3 01s\r (no-eol) (esc)
17743
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
337 \r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
338 \r (no-eol) (esc)
34315
98b359216915 test-patchbomb: fix the test
Jun Wu <quark@fb.com>
parents: 34310
diff changeset
339 sending [==========================> ] 2/3 01s\r (no-eol) (esc)
14101
0c5228836fcd test-patchbomb.t: clean up progress tests
Augie Fackler <durin42@gmail.com>
parents: 13439
diff changeset
340 \r (esc)
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
341 sending [PATCH 0 of 2] test ...
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
342 sending [PATCH 1 of 2] a ...
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
343 sending [PATCH 2 of 2] b ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
344
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
345 $ cd ..
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
346
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
347 $ hg clone -q t t2
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
348 $ cd t2
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
349 $ echo c > c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
350 $ hg commit -Amc -d '3 0'
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
351 adding c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
352
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
353 $ cat > description <<EOF
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
354 > a multiline
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
355 >
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
356 > description
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
357 > EOF
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
358
4420
b0656b33cc02 add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
359
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
360 test bundle and description:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
361 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
40969
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
362 > -c bar -s test -r tip -b --desc description | filterboundary
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
363 searching for changes
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
364 1 changesets found
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
365
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
366 displaying test ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
367 Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
368 MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
369 Subject: test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
370 Message-Id: <patchbomb.180@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
371 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
372 Date: Thu, 01 Jan 1970 00:03:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
373 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
374 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
375 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
376
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
377 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
378 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
379 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
380 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
381
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
382 a multiline
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
383
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
384 description
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
385
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
386 --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
387 Content-Type: application/x-mercurial-bundle
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
388 MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
389 Content-Disposition: attachment; filename="bundle.hg"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
390 Content-Transfer-Encoding: base64
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
391
37842
326b174c6a47 bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents: 37330
diff changeset
392 SEcyMAAAAA5Db21wcmVzc2lvbj1CWkJaaDkxQVkmU1l91TAVAAAN////vFcSXL9/8H7R09C/578I
326b174c6a47 bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents: 37330
diff changeset
393 Ak0E4pe4SIIIgQSgGEQOcLABGYYNKgJgmhpp6mmjIZMCZNMhpgBBpkaYJpo9QaZMg02iaY2lCImK
326b174c6a47 bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents: 37330
diff changeset
394 emk02kmEAeoA0D01ANBoHqHqADTaj1NAAyZqA0Gg0KiYnqaepk0eoNDTCGj1A0eoyBoGjRkYBqAB
326b174c6a47 bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents: 37330
diff changeset
395 poNMmhkBhENSP0knlYZbqyEIYxkFdpDUS6roBDMgAGhkAqd92kEcgyeMo2MM366gpLNHjfKrhJPN
326b174c6a47 bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents: 37330
diff changeset
396 vdBCHAEDsYzAvzkHKxy5KWBAmh5e1nFttGChpsxrgmutRG0YrsSLWEBH9h95cbZEKFeUKYykRXHa
326b174c6a47 bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents: 37330
diff changeset
397 Bkt2OSgELsqqnWKeMudBR+YSZCOSHrwPz7B/Gfou7/L6QV6S0IgclBCitBVHMxMFq/vGwp5WHezM
326b174c6a47 bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents: 37330
diff changeset
398 JwhKTnH0OkMbmVjrAkQKR7VM2aNSXn+GzLOCzOQm0AJ1TLCpdSgnfFPcY7mGxAOyHXS1YEFVi5O9
326b174c6a47 bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents: 37330
diff changeset
399 I4EVBBd8VRgN4n1MAm8l6QQ+yB60hkeX/0ZZmKoQRINkEBxEDZU2HjIZMcwWRvZtbRIa5kgkGIb/
326b174c6a47 bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents: 37330
diff changeset
400 SkImFwIkDtQxyX+LuSKcKEg+6pgKgA==
26924
45494030bb70 test: use generaldelta in 'test-patchbomb.t'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26626
diff changeset
401 --===============*==-- (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
402
26563
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
403 with a specific bundle type
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
404 (binary part must be different)
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
405
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
406 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
407 > -c bar -s test -r tip -b --desc description \
40969
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
408 > --config patchbomb.bundletype=gzip-v1 | filterboundary
26563
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
409 searching for changes
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
410 1 changesets found
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
411
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
412 displaying test ...
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
413 Content-Type: multipart/mixed; boundary="===*==" (glob)
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
414 MIME-Version: 1.0
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
415 Subject: test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
416 Message-Id: <patchbomb.180@test-hostname>
26563
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
417 User-Agent: Mercurial-patchbomb/* (glob)
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
418 Date: Thu, 01 Jan 1970 00:03:00 +0000
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
419 From: quux
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
420 To: foo
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
421 Cc: bar
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
422
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
423 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
424 MIME-Version: 1.0
26563
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
425 Content-Type: text/plain; charset="us-ascii"
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
426 Content-Transfer-Encoding: 7bit
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
427
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
428 a multiline
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
429
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
430 description
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
431
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
432 --===*= (glob)
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
433 Content-Type: application/x-mercurial-bundle
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
434 MIME-Version: 1.0
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
435 Content-Disposition: attachment; filename="bundle.hg"
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
436 Content-Transfer-Encoding: base64
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
437
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
438 SEcxMEdaeJxjYGBY8V9n/iLGbtFfJZuNk/euDCpWfrRy/vTrevFCx1/4t7J5LdeL0ix0Opx3kwEL
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
439 wKYXKqUJwqnG5sYWSWmmJsaWlqYWaRaWJpaWiWamZpYWRgZGxolJiabmSQbmZqlcQMV6QGwCxGzG
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
440 CgZcySARUyA2A2LGZKiZ3Y+Lu786z4z4MWXmsrAZCsqrl1az5y21PMcjpbThzWeXGT+/nutbmvvz
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
441 zXYS3BoGxdrJDIYmlimJJiZpRokmqYYmaSYWFknmSSkmhqbmliamiZYWxuYmBhbJBgZcUBNZQe5K
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
442 Epm7xF/LT+RLx/a9juFTomaYO/Rgsx4rwBN+IMCUDLOKAQBrsmti
39040
f76c1343859d tests: allow for a bonus newline in base64'd email payload
Augie Fackler <augie@google.com>
parents: 39037
diff changeset
443 (?)
26563
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
444 --===============*==-- (glob)
d4a1bfe1de63 patchbomb: add a 'bundletype' config under 'patchbomb'
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26546
diff changeset
445
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
446 utf-8 patch:
39707
5abc47d4ca6b tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents: 39120
diff changeset
447 $ "$PYTHON" -c 'fp = open("utf", "wb"); fp.write(b"h\xC3\xB6mma!\n"); fp.close();'
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
448 $ hg commit -A -d '4 0' -m 'utf-8 content'
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
449 adding description
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
450 adding utf
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
451
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
452 no mime encoding for email --test:
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
453 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
454 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
455
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
456
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
457 displaying [PATCH] utf-8 content ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
458 MIME-Version: 1.0
39037
ede768cfe83e mail: always fall back to iso-8859-1 if us-ascii won't work (BC)
Augie Fackler <augie@google.com>
parents: 39036
diff changeset
459 Content-Type: text/plain; charset="iso-8859-1"
ede768cfe83e mail: always fall back to iso-8859-1 if us-ascii won't work (BC)
Augie Fackler <augie@google.com>
parents: 39036
diff changeset
460 Content-Transfer-Encoding: quoted-printable
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
461 Subject: [PATCH] utf-8 content
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
462 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
463 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
464 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
465 Message-Id: <909a00e13e9d78b575ae.240@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
466 X-Mercurial-Series-Id: <909a00e13e9d78b575ae.240@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
467 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
468 Date: Thu, 01 Jan 1970 00:04:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
469 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
470 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
471 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
472
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
473 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
474 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
475 # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
476 # Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
477 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
478 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
479 utf-8 content
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
480
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
481 diff -r ff2c9fa2018b -r 909a00e13e9d description
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
482 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
483 +++ b/description Thu Jan 01 00:00:04 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
484 @@ -0,0 +1,3 @@
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
485 +a multiline
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
486 +
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
487 +description
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
488 diff -r ff2c9fa2018b -r 909a00e13e9d utf
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
489 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
490 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
491 @@ -0,0 +1,1 @@
39037
ede768cfe83e mail: always fall back to iso-8859-1 if us-ascii won't work (BC)
Augie Fackler <augie@google.com>
parents: 39036
diff changeset
492 +h=C3=B6mma!
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
493
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
494
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
495 mime encoded mbox (base64):
15559
1830d0cc4bc1 patchbomb: minor refactoring of mbox functionality, preparing for move
Mads Kiilerich <mads@kiilerich.com>
parents: 15547
diff changeset
496 $ hg email --date '1970-1-1 0:4' -f 'Q <quux>' -t foo -c bar -r tip -m mbox
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
497 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
498
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
499
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
500 sending [PATCH] utf-8 content ...
4420
b0656b33cc02 add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
501
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
502 $ cat mbox
15559
1830d0cc4bc1 patchbomb: minor refactoring of mbox functionality, preparing for move
Mads Kiilerich <mads@kiilerich.com>
parents: 15547
diff changeset
503 From quux ... ... .. ..:..:.. .... (re)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
504 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
505 Content-Type: text/plain; charset="utf-8"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
506 Content-Transfer-Encoding: base64
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
507 Subject: [PATCH] utf-8 content
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
508 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
509 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
510 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
511 Message-Id: <909a00e13e9d78b575ae.240@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
512 X-Mercurial-Series-Id: <909a00e13e9d78b575ae.240@test-hostname>
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
513 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
514 Date: Thu, 01 Jan 1970 00:04:00 +0000
43325
7d4f2e4899c5 py3: fix headencode() with display=False
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 43019
diff changeset
515 From: Q <quux> (no-py3 !)
7d4f2e4899c5 py3: fix headencode() with display=False
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 43019
diff changeset
516 From: =?iso-8859-1?q?Q?= <quux> (py3 !)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
517 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
518 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
519
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
520 IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojICAgICAgVGh1IEph
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
521 biAwMSAwMDowMDowNCAxOTcwICswMDAwCiMgTm9kZSBJRCA5MDlhMDBlMTNlOWQ3OGI1NzVhZWVl
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
522 MjNkZGRiYWRhNDZkNWExNDNmCiMgUGFyZW50ICBmZjJjOWZhMjAxOGIxNWZhNzRiMzMzNjNiZGE5
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
523 NTI3MzIzZTJhOTlmCnV0Zi04IGNvbnRlbnQKCmRpZmYgLXIgZmYyYzlmYTIwMThiIC1yIDkwOWEw
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
524 MGUxM2U5ZCBkZXNjcmlwdGlvbgotLS0gL2Rldi9udWxsCVRodSBKYW4gMDEgMDA6MDA6MDAgMTk3
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
525 MCArMDAwMAorKysgYi9kZXNjcmlwdGlvbglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
526 QEAgLTAsMCArMSwzIEBACithIG11bHRpbGluZQorCitkZXNjcmlwdGlvbgpkaWZmIC1yIGZmMmM5
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
527 ZmEyMDE4YiAtciA5MDlhMDBlMTNlOWQgdXRmCi0tLSAvZGV2L251bGwJVGh1IEphbiAwMSAwMDow
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
528 MDowMCAxOTcwICswMDAwCisrKyBiL3V0ZglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
529 QEAgLTAsMCArMSwxIEBACitow7ZtbWEhCg==
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
530
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
531
39036
598467614c15 tests: put some Python 3 polish on inline Python invocations
Augie Fackler <augie@google.com>
parents: 39030
diff changeset
532 >>> import base64
598467614c15 tests: put some Python 3 polish on inline Python invocations
Augie Fackler <augie@google.com>
parents: 39030
diff changeset
533 >>> patch = base64.b64decode(open("mbox").read().split("\n\n")[1])
598467614c15 tests: put some Python 3 polish on inline Python invocations
Augie Fackler <augie@google.com>
parents: 39030
diff changeset
534 >>> if not isinstance(patch, str):
598467614c15 tests: put some Python 3 polish on inline Python invocations
Augie Fackler <augie@google.com>
parents: 39030
diff changeset
535 ... import sys
598467614c15 tests: put some Python 3 polish on inline Python invocations
Augie Fackler <augie@google.com>
parents: 39030
diff changeset
536 ... sys.stdout.flush()
598467614c15 tests: put some Python 3 polish on inline Python invocations
Augie Fackler <augie@google.com>
parents: 39030
diff changeset
537 ... junk = sys.stdout.buffer.write(patch + b"\n")
598467614c15 tests: put some Python 3 polish on inline Python invocations
Augie Fackler <augie@google.com>
parents: 39030
diff changeset
538 ... else:
598467614c15 tests: put some Python 3 polish on inline Python invocations
Augie Fackler <augie@google.com>
parents: 39030
diff changeset
539 ... print(patch)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
540 # HG changeset patch
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
541 # User test
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
542 # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
543 # Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
544 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
545 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
546 utf-8 content
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
547
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
548 diff -r ff2c9fa2018b -r 909a00e13e9d description
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
549 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
550 +++ b/description Thu Jan 01 00:00:04 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
551 @@ -0,0 +1,3 @@
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
552 +a multiline
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
553 +
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
554 +description
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
555 diff -r ff2c9fa2018b -r 909a00e13e9d utf
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
556 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
557 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
558 @@ -0,0 +1,1 @@
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
559 +h\xc3\xb6mma! (esc)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
560
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
561 $ rm mbox
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
562
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
563 mime encoded mbox (quoted-printable):
39707
5abc47d4ca6b tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents: 39120
diff changeset
564 $ "$PYTHON" -c 'fp = open("long", "wb"); fp.write(b"%s\nfoo\n\nbar\n" % (b"x" * 1024)); fp.close();'
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
565 $ hg commit -A -d '4 0' -m 'long line'
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
566 adding long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
567
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
568 no mime encoding for email --test:
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
569 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
570 this patch series consists of 1 patches.
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
571
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
572
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
573 displaying [PATCH] long line ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
574 MIME-Version: 1.0
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
575 Content-Type: text/plain; charset="us-ascii"
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
576 Content-Transfer-Encoding: quoted-printable
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
577 Subject: [PATCH] long line
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
578 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
579 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
580 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
581 Message-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
582 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
583 User-Agent: Mercurial-patchbomb/* (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
584 Date: Thu, 01 Jan 1970 00:04:00 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
585 From: quux
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
586 To: foo
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
587 Cc: bar
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
588
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
589 # HG changeset patch
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
590 # User test
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
591 # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
592 # Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
593 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
594 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
595 long line
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
596
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
597 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
598 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
599 +++ b/long Thu Jan 01 00:00:04 1970 +0000
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
600 @@ -0,0 +1,4 @@
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
601 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
602 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
603 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
604 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
605 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
606 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
607 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
608 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
609 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
610 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
611 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
612 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
613 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
614 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
615 +foo
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
616 +
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
617 +bar
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
618
4420
b0656b33cc02 add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
619
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
620 mime encoded mbox (quoted-printable):
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
621 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
622 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
623
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
624
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
625 sending [PATCH] long line ...
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
626 $ cat mbox
15559
1830d0cc4bc1 patchbomb: minor refactoring of mbox functionality, preparing for move
Mads Kiilerich <mads@kiilerich.com>
parents: 15547
diff changeset
627 From quux ... ... .. ..:..:.. .... (re)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
628 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
629 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
630 Content-Transfer-Encoding: quoted-printable
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
631 Subject: [PATCH] long line
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
632 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
633 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
634 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
635 Message-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
636 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
637 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
638 Date: Thu, 01 Jan 1970 00:04:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
639 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
640 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
641 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
642
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
643 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
644 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
645 # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
646 # Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
647 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
648 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
649 long line
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
650
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
651 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
652 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
653 +++ b/long Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
654 @@ -0,0 +1,4 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
655 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
656 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
657 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
658 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
659 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
660 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
661 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
662 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
663 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
664 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
665 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
666 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
667 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
668 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
669 +foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
670 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
671 +bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
672
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
673
4565
1cf908c00479 Don't validate email config if we're not sending email.
Bryan O'Sullivan <bos@serpentine.com>
parents: 4420
diff changeset
674
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
675 $ rm mbox
5753
ea1016b32e94 patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents: 4597
diff changeset
676
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
677 iso-8859-1 patch:
39707
5abc47d4ca6b tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents: 39120
diff changeset
678 $ "$PYTHON" -c 'fp = open("isolatin", "wb"); fp.write(b"h\xF6mma!\n"); fp.close();'
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
679 $ hg commit -A -d '5 0' -m 'isolatin 8-bit encoding'
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
680 adding isolatin
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
681
30089
040f23ed6963 mail: take --encoding and HGENCODING into account
Gábor Stefanik <gabor.stefanik@nng.com>
parents: 29593
diff changeset
682 iso-8859-1 mbox:
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
683 $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
684 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
685
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
686
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
687 sending [PATCH] isolatin 8-bit encoding ...
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
688 $ cat mbox
15559
1830d0cc4bc1 patchbomb: minor refactoring of mbox functionality, preparing for move
Mads Kiilerich <mads@kiilerich.com>
parents: 15547
diff changeset
689 From quux ... ... .. ..:..:.. .... (re)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
690 MIME-Version: 1.0
30089
040f23ed6963 mail: take --encoding and HGENCODING into account
Gábor Stefanik <gabor.stefanik@nng.com>
parents: 29593
diff changeset
691 Content-Type: text/plain; charset="iso-8859-1"
040f23ed6963 mail: take --encoding and HGENCODING into account
Gábor Stefanik <gabor.stefanik@nng.com>
parents: 29593
diff changeset
692 Content-Transfer-Encoding: quoted-printable
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
693 Subject: [PATCH] isolatin 8-bit encoding
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
694 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
695 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
696 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
697 Message-Id: <240fb913fc1b7ff15ddb.300@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
698 X-Mercurial-Series-Id: <240fb913fc1b7ff15ddb.300@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
699 User-Agent: Mercurial-patchbomb/* (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
700 Date: Thu, 01 Jan 1970 00:05:00 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
701 From: quux
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
702 To: foo
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
703 Cc: bar
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
704
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
705 # HG changeset patch
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
706 # User test
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
707 # Date 5 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
708 # Thu Jan 01 00:00:05 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
709 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
710 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
711 isolatin 8-bit encoding
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
712
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
713 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
714 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
715 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
716 @@ -0,0 +1,1 @@
30089
040f23ed6963 mail: take --encoding and HGENCODING into account
Gábor Stefanik <gabor.stefanik@nng.com>
parents: 29593
diff changeset
717 +h=F6mma!
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
718
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
719
5753
ea1016b32e94 patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents: 4597
diff changeset
720
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
721 test diffstat for single patch:
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
722 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
723 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
724
12200
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
725
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
726 Final summary:
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
727
12200
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
728 From: quux
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
729 To: foo
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
730 Cc: bar
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
731 Subject: [PATCH] test
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
732 c | 1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
733 1 files changed, 1 insertions(+), 0 deletions(-)
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
734
12200
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
735 are you sure you want to send (yn)? y
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
736
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
737 displaying [PATCH] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
738 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
739 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
740 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
741 Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
742 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
743 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
744 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
745 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
746 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
747 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
748 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
749 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
750 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
751 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
752
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
753 c | 1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
754 1 files changed, 1 insertions(+), 0 deletions(-)
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
755
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
756
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
757 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
758 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
759 # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
760 # Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
761 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
762 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
763 c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
764
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
765 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
766 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
767 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
768 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
769 +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
770
5753
ea1016b32e94 patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents: 4597
diff changeset
771
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
772 test diffstat for multiple patches:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
773 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
774 > -r 0:1
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
775 this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
776
12200
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
777
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
778 Write the introductory message for the patch series.
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
779
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
780
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
781 Final summary:
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
782
12200
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
783 From: quux
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
784 To: foo
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
785 Cc: bar
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
786 Subject: [PATCH 0 of 2] test
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
787 a | 1 +
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
788 b | 1 +
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
789 2 files changed, 2 insertions(+), 0 deletions(-)
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
790 Subject: [PATCH 1 of 2] a
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
791 a | 1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
792 1 files changed, 1 insertions(+), 0 deletions(-)
12200
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
793 Subject: [PATCH 2 of 2] b
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
794 b | 1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
795 1 files changed, 1 insertions(+), 0 deletions(-)
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
796
12200
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
797 are you sure you want to send (yn)? y
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
798
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
799 displaying [PATCH 0 of 2] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
800 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
801 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
802 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
803 Subject: [PATCH 0 of 2] test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
804 Message-Id: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
805 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
806 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
807 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
808 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
809 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
810
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
811
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
812 a | 1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
813 b | 1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
814 2 files changed, 2 insertions(+), 0 deletions(-)
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
815
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
816 displaying [PATCH 1 of 2] a ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
817 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
818 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
819 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
820 Subject: [PATCH 1 of 2] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
821 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
822 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
823 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
824 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
825 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
826 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
827 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
828 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
829 Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
830 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
831 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
832 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
833
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
834 a | 1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
835 1 files changed, 1 insertions(+), 0 deletions(-)
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
836
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
837
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
838 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
839 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
840 # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
841 # Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
842 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
843 # Parent 0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
844 a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
845
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
846 diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
847 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
848 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
849 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
850 +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
851
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
852 displaying [PATCH 2 of 2] b ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
853 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
854 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
855 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
856 Subject: [PATCH 2 of 2] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
857 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
858 X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
859 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
860 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
861 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
862 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
863 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
864 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
865 Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
866 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
867 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
868 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
869
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
870 b | 1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
871 1 files changed, 1 insertions(+), 0 deletions(-)
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
872
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
873
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
874 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
875 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
876 # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
877 # Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
878 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
879 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
880 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
881
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
882 diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
883 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
884 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
885 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
886 +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
887
5753
ea1016b32e94 patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents: 4597
diff changeset
888
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
889 test inline for single patch:
40969
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
890 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | filterboundary
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
891 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
892
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
893
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
894 displaying [PATCH] test ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
895 Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
896 MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
897 Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
898 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
899 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
900 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
901 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
902 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
903 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
904 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
905 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
906 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
907 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
908
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
909 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
910 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
911 Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
912 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
913 Content-Disposition: inline; filename=t2.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
914
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
915 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
916 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
917 # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
918 # Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
919 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
920 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
921 c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
922
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
923 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
924 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
925 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
926 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
927 +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
928
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
929 --===*=-- (glob)
5753
ea1016b32e94 patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents: 4597
diff changeset
930
7193
12fc42c78598 mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents: 5753
diff changeset
931
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
932 test inline for single patch (quoted-printable):
40969
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
933 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4 | filterboundary
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
934 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
935
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
936
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
937 displaying [PATCH] test ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
938 Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
939 MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
940 Subject: [PATCH] test
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
941 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
942 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
943 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
944 Message-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
945 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
946 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
947 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
948 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
949 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
950 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
951
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
952 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
953 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
954 Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
955 Content-Transfer-Encoding: quoted-printable
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
956 Content-Disposition: inline; filename=t2.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
957
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
958 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
959 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
960 # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
961 # Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
962 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
963 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
964 long line
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
965
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
966 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
967 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
968 +++ b/long Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
969 @@ -0,0 +1,4 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
970 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
971 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
972 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
973 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
974 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
975 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
976 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
977 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
978 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
979 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
980 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
981 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
982 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
983 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
984 +foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
985 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
986 +bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
987
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
988 --===*=-- (glob)
8332
3e544c074459 patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents: 8160
diff changeset
989
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
990 test inline for multiple patches:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
991 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
40969
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
992 > -r 0:1 -r 4 | filterboundary
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
993 this patch series consists of 3 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
994
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
995
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
996 Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
997
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
998
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
999 displaying [PATCH 0 of 3] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1000 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1001 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1002 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1003 Subject: [PATCH 0 of 3] test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1004 Message-Id: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1005 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1006 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1007 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1008 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1009 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1010
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1011
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1012 displaying [PATCH 1 of 3] a ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1013 Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1014 MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1015 Subject: [PATCH 1 of 3] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1016 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1017 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1018 X-Mercurial-Series-Total: 3
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1019 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1020 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1021 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1022 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1023 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1024 Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1025 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1026 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1027 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1028
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1029 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1030 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1031 Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1032 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1033 Content-Disposition: inline; filename=t2-1.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1034
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1035 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1036 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1037 # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1038 # Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1039 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1040 # Parent 0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1041 a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1042
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1043 diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1044 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1045 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1046 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1047 +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1048
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1049 --===*=-- (glob)
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1050 displaying [PATCH 2 of 3] b ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1051 Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1052 MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1053 Subject: [PATCH 2 of 3] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1054 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1055 X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1056 X-Mercurial-Series-Total: 3
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1057 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1058 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1059 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1060 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1061 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1062 Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1063 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1064 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1065 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1066
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1067 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1068 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1069 Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1070 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1071 Content-Disposition: inline; filename=t2-2.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1072
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1073 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1074 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1075 # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1076 # Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1077 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1078 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1079 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1080
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1081 diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1082 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1083 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1084 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1085 +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1086
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1087 --===*=-- (glob)
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1088 displaying [PATCH 3 of 3] long line ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1089 Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1090 MIME-Version: 1.0
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1091 Subject: [PATCH 3 of 3] long line
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1092 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1093 X-Mercurial-Series-Index: 3
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1094 X-Mercurial-Series-Total: 3
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1095 Message-Id: <a2ea8fc83dd8b93cfd86.63@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1096 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1097 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1098 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1099 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1100 Date: Thu, 01 Jan 1970 00:01:03 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1101 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1102 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1103 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1104
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1105 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1106 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1107 Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1108 Content-Transfer-Encoding: quoted-printable
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1109 Content-Disposition: inline; filename=t2-3.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1110
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1111 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1112 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1113 # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1114 # Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1115 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1116 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1117 long line
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1118
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1119 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1120 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1121 +++ b/long Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1122 @@ -0,0 +1,4 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1123 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1124 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1125 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1126 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1127 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1128 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1129 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1130 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1131 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1132 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1133 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1134 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1135 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1136 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1137 +foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1138 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1139 +bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1140
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1141 --===*=-- (glob)
8332
3e544c074459 patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents: 8160
diff changeset
1142
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1143 test attach for single patch:
40969
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
1144 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2 | filterboundary
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1145 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1146
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1147
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1148 displaying [PATCH] test ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1149 Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1150 MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1151 Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1152 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1153 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1154 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1155 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1156 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1157 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1158 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1159 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1160 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1161 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1162
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1163 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1164 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1165 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1166 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1167
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1168 Patch subject is complete summary.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1169
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1170
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1171
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1172 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1173 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1174 Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1175 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1176 Content-Disposition: attachment; filename=t2.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1177
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1178 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1179 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1180 # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1181 # Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1182 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1183 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1184 c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1185
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1186 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1187 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1188 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1189 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1190 +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1191
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1192 --===*=-- (glob)
8332
3e544c074459 patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents: 8160
diff changeset
1193
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1194 test attach for single patch (quoted-printable):
40969
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
1195 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4 | filterboundary
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1196 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1197
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1198
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1199 displaying [PATCH] test ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1200 Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1201 MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1202 Subject: [PATCH] test
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1203 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1204 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1205 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1206 Message-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1207 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1208 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1209 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1210 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1211 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1212 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1213
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1214 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1215 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1216 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1217 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1218
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1219 Patch subject is complete summary.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1220
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1221
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1222
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1223 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1224 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1225 Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1226 Content-Transfer-Encoding: quoted-printable
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1227 Content-Disposition: attachment; filename=t2.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1228
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1229 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1230 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1231 # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1232 # Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1233 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1234 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1235 long line
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1236
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1237 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1238 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1239 +++ b/long Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1240 @@ -0,0 +1,4 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1241 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1242 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1243 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1244 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1245 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1246 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1247 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1248 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1249 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1250 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1251 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1252 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1253 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1254 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1255 +foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1256 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1257 +bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1258
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1259 --===*=-- (glob)
7193
12fc42c78598 mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents: 5753
diff changeset
1260
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1261 test attach and body for single patch:
40969
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
1262 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a --body -r 2 | filterboundary
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1263 this patch series consists of 1 patches.
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1264
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1265
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1266 displaying [PATCH] test ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1267 Content-Type: multipart/mixed; boundary="===*==" (glob)
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1268 MIME-Version: 1.0
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1269 Subject: [PATCH] test
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1270 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1271 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1272 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1273 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1274 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1275 User-Agent: Mercurial-patchbomb/* (glob)
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1276 Date: Thu, 01 Jan 1970 00:01:00 +0000
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1277 From: quux
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1278 To: foo
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1279 Cc: bar
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1280
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1281 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1282 MIME-Version: 1.0
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1283 Content-Type: text/plain; charset="us-ascii"
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1284 Content-Transfer-Encoding: 7bit
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1285
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1286 # HG changeset patch
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1287 # User test
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1288 # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1289 # Thu Jan 01 00:00:03 1970 +0000
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1290 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1291 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1292 c
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1293
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1294 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1295 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1296 +++ b/c Thu Jan 01 00:00:03 1970 +0000
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1297 @@ -0,0 +1,1 @@
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1298 +c
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1299
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1300 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1301 MIME-Version: 1.0
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1302 Content-Type: text/x-patch; charset="us-ascii"
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1303 Content-Transfer-Encoding: 7bit
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1304 Content-Disposition: attachment; filename=t2.patch
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1305
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1306 # HG changeset patch
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1307 # User test
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1308 # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1309 # Thu Jan 01 00:00:03 1970 +0000
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1310 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1311 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1312 c
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1313
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1314 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1315 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1316 +++ b/c Thu Jan 01 00:00:03 1970 +0000
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1317 @@ -0,0 +1,1 @@
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1318 +c
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1319
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1320 --===*=-- (glob)
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
1321
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1322 test attach for multiple patches:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1323 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
40969
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
1324 > -r 0:1 -r 4 | filterboundary
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1325 this patch series consists of 3 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1326
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1327
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1328 Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1329
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1330
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1331 displaying [PATCH 0 of 3] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1332 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1333 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1334 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1335 Subject: [PATCH 0 of 3] test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1336 Message-Id: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1337 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1338 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1339 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1340 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1341 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1342
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1343
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1344 displaying [PATCH 1 of 3] a ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1345 Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1346 MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1347 Subject: [PATCH 1 of 3] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1348 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1349 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1350 X-Mercurial-Series-Total: 3
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1351 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1352 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1353 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1354 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1355 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1356 Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1357 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1358 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1359 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1360
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1361 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1362 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1363 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1364 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1365
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1366 Patch subject is complete summary.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1367
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1368
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1369
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1370 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1371 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1372 Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1373 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1374 Content-Disposition: attachment; filename=t2-1.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1375
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1376 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1377 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1378 # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1379 # Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1380 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1381 # Parent 0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1382 a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1383
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1384 diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1385 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1386 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1387 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1388 +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1389
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1390 --===*=-- (glob)
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1391 displaying [PATCH 2 of 3] b ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1392 Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1393 MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1394 Subject: [PATCH 2 of 3] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1395 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1396 X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1397 X-Mercurial-Series-Total: 3
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1398 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1399 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1400 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1401 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1402 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1403 Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1404 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1405 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1406 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1407
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1408 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1409 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1410 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1411 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1412
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1413 Patch subject is complete summary.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1414
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1415
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1416
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1417 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1418 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1419 Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1420 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1421 Content-Disposition: attachment; filename=t2-2.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1422
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1423 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1424 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1425 # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1426 # Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1427 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1428 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1429 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1430
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1431 diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1432 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1433 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1434 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1435 +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1436
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1437 --===*=-- (glob)
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1438 displaying [PATCH 3 of 3] long line ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1439 Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1440 MIME-Version: 1.0
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1441 Subject: [PATCH 3 of 3] long line
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1442 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1443 X-Mercurial-Series-Index: 3
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1444 X-Mercurial-Series-Total: 3
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1445 Message-Id: <a2ea8fc83dd8b93cfd86.63@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1446 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1447 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1448 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1449 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1450 Date: Thu, 01 Jan 1970 00:01:03 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1451 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1452 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1453 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1454
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1455 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1456 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1457 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1458 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1459
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1460 Patch subject is complete summary.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1461
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1462
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1463
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1464 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1465 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1466 Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1467 Content-Transfer-Encoding: quoted-printable
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1468 Content-Disposition: attachment; filename=t2-3.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1469
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1470 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1471 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1472 # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1473 # Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1474 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1475 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1476 long line
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1477
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1478 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1479 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1480 +++ b/long Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1481 @@ -0,0 +1,4 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1482 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1483 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1484 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1485 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1486 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1487 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1488 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1489 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1490 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1491 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1492 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1493 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1494 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1495 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1496 +foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1497 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1498 +bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1499
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1500 --===*=-- (glob)
7358
3c2ed7c2dcb4 patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 7357
diff changeset
1501
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1502 test intro for single patch:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1503 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1504 > -r 2
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1505 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1506
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1507
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1508 Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1509
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1510
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1511 displaying [PATCH 0 of 1] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1512 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1513 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1514 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1515 Subject: [PATCH 0 of 1] test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1516 Message-Id: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1517 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1518 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1519 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1520 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1521 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1522
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1523
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1524 displaying [PATCH 1 of 1] c ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1525 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1526 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1527 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1528 Subject: [PATCH 1 of 1] c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1529 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1530 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1531 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1532 Message-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1533 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1534 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1535 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1536 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1537 Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1538 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1539 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1540 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1541
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1542 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1543 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1544 # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1545 # Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1546 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1547 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1548 c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1549
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1550 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1551 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1552 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1553 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1554 +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1555
7358
3c2ed7c2dcb4 patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 7357
diff changeset
1556
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1557 test --desc without --intro for a single patch:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1558 $ echo foo > intro.text
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1559 $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1560 > -s test -r 2
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1561 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1562
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1563
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1564 displaying [PATCH 0 of 1] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1565 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1566 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1567 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1568 Subject: [PATCH 0 of 1] test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1569 Message-Id: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1570 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1571 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1572 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1573 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1574 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1575
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1576 foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1577
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1578 displaying [PATCH 1 of 1] c ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1579 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1580 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1581 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1582 Subject: [PATCH 1 of 1] c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1583 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1584 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1585 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1586 Message-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1587 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1588 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1589 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1590 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1591 Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1592 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1593 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1594 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1595
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1596 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1597 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1598 # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1599 # Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1600 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1601 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1602 c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1603
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1604 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1605 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1606 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1607 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1608 +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1609
7358
3c2ed7c2dcb4 patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 7357
diff changeset
1610
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1611 test intro for multiple patches:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1612 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1613 > -r 0:1
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1614 this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1615
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1616
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1617 Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1618
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1619
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1620 displaying [PATCH 0 of 2] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1621 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1622 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1623 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1624 Subject: [PATCH 0 of 2] test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1625 Message-Id: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1626 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1627 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1628 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1629 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1630 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1631
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1632
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1633 displaying [PATCH 1 of 2] a ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1634 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1635 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1636 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1637 Subject: [PATCH 1 of 2] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1638 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1639 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1640 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1641 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1642 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1643 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1644 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1645 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1646 Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1647 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1648 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1649 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1650
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1651 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1652 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1653 # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1654 # Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1655 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1656 # Parent 0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1657 a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1658
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1659 diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1660 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1661 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1662 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1663 +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1664
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1665 displaying [PATCH 2 of 2] b ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1666 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1667 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1668 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1669 Subject: [PATCH 2 of 2] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1670 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1671 X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1672 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1673 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1674 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1675 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1676 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1677 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1678 Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1679 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1680 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1681 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1682
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1683 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1684 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1685 # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1686 # Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1687 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1688 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1689 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1690
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1691 diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1692 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1693 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1694 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1695 +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1696
8332
3e544c074459 patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents: 8160
diff changeset
1697
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1698 test reply-to via config:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1699 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1700 > --config patchbomb.reply-to='baz@example.com'
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1701 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1702
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1703
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1704 displaying [PATCH] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1705 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1706 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1707 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1708 Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1709 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1710 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1711 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1712 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1713 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1714 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1715 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1716 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1717 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1718 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1719 Reply-To: baz@example.com
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1720
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1721 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1722 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1723 # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1724 # Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1725 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1726 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1727 c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1728
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1729 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1730 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1731 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1732 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1733 +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1734
7358
3c2ed7c2dcb4 patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 7357
diff changeset
1735
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1736 test reply-to via command line:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1737 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1738 > --reply-to baz --reply-to fred
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1739 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1740
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1741
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1742 displaying [PATCH] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1743 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1744 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1745 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1746 Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1747 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1748 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1749 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1750 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1751 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1752 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1753 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1754 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1755 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1756 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1757 Reply-To: baz, fred
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1758
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1759 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1760 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1761 # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1762 # Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1763 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1764 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1765 c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1766
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1767 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1768 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1769 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1770 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1771 +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1772
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1773
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1774 tagging csets:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1775 $ hg tag -r0 zero zero.foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1776 $ hg tag -r1 one one.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1777 $ hg tag -r2 two two.diff
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1778
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1779 test inline for single named patch:
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
1780 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
40969
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
1781 > -r 2 | filterboundary
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1782 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1783
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1784
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1785 displaying [PATCH] test ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1786 Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1787 MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1788 Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1789 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1790 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1791 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1792 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1793 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1794 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1795 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1796 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1797 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1798 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1799
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1800 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1801 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1802 Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1803 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1804 Content-Disposition: inline; filename=two.diff
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1805
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1806 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1807 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1808 # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1809 # Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1810 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1811 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1812 c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1813
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1814 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1815 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1816 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1817 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1818 +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1819
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1820 --===*=-- (glob)
7360
42f1b8cb9a60 patchbomb: add option to send intro email for a single patch (issue1120)
Chris Winter <elwintro@gmail.com>
parents: 7358
diff changeset
1821
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1822 test inline for multiple named/unnamed patches:
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
1823 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
40969
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
1824 > -r 0:1 | filterboundary
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1825 this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1826
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1827
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1828 Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1829
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1830
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1831 displaying [PATCH 0 of 2] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1832 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1833 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1834 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1835 Subject: [PATCH 0 of 2] test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1836 Message-Id: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1837 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1838 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1839 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1840 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1841 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1842
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1843
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1844 displaying [PATCH 1 of 2] a ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1845 Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1846 MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1847 Subject: [PATCH 1 of 2] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1848 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1849 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1850 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1851 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1852 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1853 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1854 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1855 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1856 Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1857 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1858 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1859 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1860
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1861 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1862 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1863 Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1864 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1865 Content-Disposition: inline; filename=t2-1.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1866
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1867 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1868 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1869 # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1870 # Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1871 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1872 # Parent 0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1873 a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1874
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1875 diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1876 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1877 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1878 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1879 +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1880
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1881 --===*=-- (glob)
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1882 displaying [PATCH 2 of 2] b ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1883 Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1884 MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1885 Subject: [PATCH 2 of 2] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1886 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1887 X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1888 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1889 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1890 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1891 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1892 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1893 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1894 Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1895 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1896 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1897 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1898
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1899 --===*= (glob)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1900 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1901 Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1902 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1903 Content-Disposition: inline; filename=one.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1904
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1905 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1906 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1907 # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1908 # Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1909 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1910 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1911 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1912
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1913 diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1914 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1915 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1916 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1917 +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1918
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
1919 --===*=-- (glob)
10734
7a0502a6f9a1 patchbomb: --desc implies --intro
Cédric Duval <cedricduval@free.fr>
parents: 10257
diff changeset
1920
11150
f66ca4431eb9 patchbomb: Reply-To support
Cédric Duval <cedricduval@free.fr>
parents: 10734
diff changeset
1921
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1922 test inreplyto:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1923 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1924 > -r tip
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1925 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1926
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1927
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1928 displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1929 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1930 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1931 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1932 Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1933 X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1934 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1935 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1936 Message-Id: <7aead2484924c445ad8c.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1937 X-Mercurial-Series-Id: <7aead2484924c445ad8c.60@test-hostname>
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1938 In-Reply-To: <baz>
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1939 References: <baz>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1940 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1941 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1942 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1943 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1944 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1945
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1946 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1947 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1948 # Date 0 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1949 # Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1950 # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1951 # Parent 045ca29b1ea20e4940411e695e20e521f2f0f98e
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1952 Added tag two, two.diff for changeset ff2c9fa2018b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1953
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
1954 diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1955 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1956 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1957 @@ -2,3 +2,5 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1958 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1959 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1960 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1961 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1962 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1963
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1964 no intro message in non-interactive mode
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1965 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1966 > -r 0:1
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1967 this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
1968
16233
3f79b110c4f0 patchbomb: add (optional) note to 0 of 0 prompt
Matt Mackall <mpm@selenic.com>
parents: 15623
diff changeset
1969 (optional) Subject: [PATCH 0 of 2]
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1970
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
1971 displaying [PATCH 1 of 2] a ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
1972 MIME-Version: 1.0
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1973 Content-Type: text/plain; charset="us-ascii"
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1974 Content-Transfer-Encoding: 7bit
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1975 Subject: [PATCH 1 of 2] a
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1976 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1977 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
1978 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1979 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
1980 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1981 In-Reply-To: <baz>
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1982 References: <baz>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
1983 User-Agent: Mercurial-patchbomb/* (glob)
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1984 Date: Thu, 01 Jan 1970 00:01:00 +0000
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1985 From: quux
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1986 To: foo
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1987 Cc: bar
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1988
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1989 # HG changeset patch
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1990 # User test
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1991 # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
1992 # Thu Jan 01 00:00:01 1970 +0000
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1993 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1994 # Parent 0000000000000000000000000000000000000000
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1995 a
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1996
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1997 diff -r 000000000000 -r 8580ff50825a a
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1998 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
1999 +++ b/a Thu Jan 01 00:00:01 1970 +0000
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2000 @@ -0,0 +1,1 @@
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2001 +a
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2002
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2003 displaying [PATCH 2 of 2] b ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2004 MIME-Version: 1.0
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2005 Content-Type: text/plain; charset="us-ascii"
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2006 Content-Transfer-Encoding: 7bit
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2007 Subject: [PATCH 2 of 2] b
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2008 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2009 X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2010 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2011 Message-Id: <97d72e5f12c7e84f8506.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2012 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
17859
d38d90ad5bbf patchbomb: respect --in-reply-to for all mails if no intro message is sent
Thomas Arendsen Hein <thomas@intevation.de>
parents: 17743
diff changeset
2013 In-Reply-To: <baz>
d38d90ad5bbf patchbomb: respect --in-reply-to for all mails if no intro message is sent
Thomas Arendsen Hein <thomas@intevation.de>
parents: 17743
diff changeset
2014 References: <baz>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2015 User-Agent: Mercurial-patchbomb/* (glob)
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2016 Date: Thu, 01 Jan 1970 00:01:01 +0000
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2017 From: quux
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2018 To: foo
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2019 Cc: bar
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2020
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2021 # HG changeset patch
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2022 # User test
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2023 # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2024 # Thu Jan 01 00:00:02 1970 +0000
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2025 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2026 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2027 b
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2028
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2029 diff -r 8580ff50825a -r 97d72e5f12c7 b
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2030 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2031 +++ b/b Thu Jan 01 00:00:02 1970 +0000
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2032 @@ -0,0 +1,1 @@
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2033 +b
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2034
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2035
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
2036
11150
f66ca4431eb9 patchbomb: Reply-To support
Cédric Duval <cedricduval@free.fr>
parents: 10734
diff changeset
2037
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2038 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2039 > -s test -r 0:1
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2040 this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2041
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2042
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2043 Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2044
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2045
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2046 displaying [PATCH 0 of 2] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2047 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2048 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2049 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2050 Subject: [PATCH 0 of 2] test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2051 Message-Id: <patchbomb.60@test-hostname>
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2052 In-Reply-To: <baz>
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2053 References: <baz>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2054 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2055 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2056 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2057 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2058 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2059
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2060
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2061 displaying [PATCH 1 of 2] a ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2062 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2063 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2064 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2065 Subject: [PATCH 1 of 2] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2066 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2067 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2068 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2069 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2070 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2071 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2072 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2073 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2074 Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2075 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2076 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2077 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2078
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2079 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2080 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2081 # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2082 # Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2083 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2084 # Parent 0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2085 a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2086
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2087 diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2088 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2089 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2090 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2091 +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2092
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2093 displaying [PATCH 2 of 2] b ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2094 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2095 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2096 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2097 Subject: [PATCH 2 of 2] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2098 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2099 X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2100 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2101 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2102 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2103 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2104 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2105 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2106 Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2107 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2108 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2109 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2110
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2111 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2112 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2113 # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2114 # Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2115 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2116 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2117 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2118
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2119 diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2120 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2121 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2122 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2123 +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2124
7358
3c2ed7c2dcb4 patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 7357
diff changeset
2125
21055
dbff8c119cf6 patchbomb: warn when emailing a dirty working directory parent
Mads Kiilerich <madski@unity3d.com>
parents: 20117
diff changeset
2126 test single flag for single patch (and no warning when not mailing dirty rev):
dbff8c119cf6 patchbomb: warn when emailing a dirty working directory parent
Mads Kiilerich <madski@unity3d.com>
parents: 20117
diff changeset
2127 $ hg up -qr1
dbff8c119cf6 patchbomb: warn when emailing a dirty working directory parent
Mads Kiilerich <madski@unity3d.com>
parents: 20117
diff changeset
2128 $ echo dirt > a
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2129 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
40969
55fcdb73c88b py3: quote $PYTHON in test-patchbomb.t for Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 39707
diff changeset
2130 > -r 2 | filterboundary
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2131 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2132
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2133
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2134 displaying [PATCH fooFlag] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2135 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2136 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2137 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2138 Subject: [PATCH fooFlag] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2139 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2140 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2141 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2142 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2143 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2144 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2145 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2146 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2147 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2148 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2149
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2150 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2151 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2152 # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2153 # Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2154 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2155 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2156 c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2157
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2158 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2159 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2160 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2161 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2162 +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2163
7358
3c2ed7c2dcb4 patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 7357
diff changeset
2164
21055
dbff8c119cf6 patchbomb: warn when emailing a dirty working directory parent
Mads Kiilerich <madski@unity3d.com>
parents: 20117
diff changeset
2165 test single flag for multiple patches (and warning when mailing dirty rev):
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2166 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2167 > -r 0:1
21055
dbff8c119cf6 patchbomb: warn when emailing a dirty working directory parent
Mads Kiilerich <madski@unity3d.com>
parents: 20117
diff changeset
2168 warning: working directory has uncommitted changes
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2169 this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2170
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2171
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2172 Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2173
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2174
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2175 displaying [PATCH 0 of 2 fooFlag] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2176 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2177 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2178 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2179 Subject: [PATCH 0 of 2 fooFlag] test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2180 Message-Id: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2181 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2182 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2183 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2184 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2185 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2186
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2187
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2188 displaying [PATCH 1 of 2 fooFlag] a ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2189 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2190 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2191 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2192 Subject: [PATCH 1 of 2 fooFlag] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2193 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2194 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2195 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2196 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2197 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2198 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2199 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2200 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2201 Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2202 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2203 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2204 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2205
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2206 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2207 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2208 # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2209 # Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2210 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2211 # Parent 0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2212 a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2213
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2214 diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2215 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2216 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2217 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2218 +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2219
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2220 displaying [PATCH 2 of 2 fooFlag] b ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2221 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2222 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2223 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2224 Subject: [PATCH 2 of 2 fooFlag] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2225 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2226 X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2227 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2228 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2229 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2230 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2231 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2232 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2233 Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2234 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2235 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2236 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2237
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2238 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2239 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2240 # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2241 # Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2242 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2243 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2244 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2245
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2246 diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2247 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2248 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2249 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2250 +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2251
21055
dbff8c119cf6 patchbomb: warn when emailing a dirty working directory parent
Mads Kiilerich <madski@unity3d.com>
parents: 20117
diff changeset
2252 $ hg revert --no-b a
dbff8c119cf6 patchbomb: warn when emailing a dirty working directory parent
Mads Kiilerich <madski@unity3d.com>
parents: 20117
diff changeset
2253 $ hg up -q
7358
3c2ed7c2dcb4 patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 7357
diff changeset
2254
17502
6fcdcdd32a6a spelling: multiple
timeless@mozdev.org
parents: 17177
diff changeset
2255 test multiple flags for single patch:
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2256 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2257 > -c bar -s test -r 2
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2258 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2259
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2260
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2261 displaying [PATCH fooFlag barFlag] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2262 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2263 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2264 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2265 Subject: [PATCH fooFlag barFlag] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2266 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2267 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2268 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2269 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2270 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2271 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2272 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2273 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2274 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2275 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2276
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2277 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2278 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2279 # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2280 # Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2281 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2282 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2283 c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2284
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2285 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2286 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2287 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2288 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2289 +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2290
9346
bb3f8f692bc6 patchbomb: add --flag to put flags in subject prefixes
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 8514
diff changeset
2291
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2292 test multiple flags for multiple patches:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2293 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2294 > -c bar -s test -r 0:1
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2295 this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2296
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2297
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2298 Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2299
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2300
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2301 displaying [PATCH 0 of 2 fooFlag barFlag] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2302 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2303 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2304 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2305 Subject: [PATCH 0 of 2 fooFlag barFlag] test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2306 Message-Id: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2307 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2308 Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2309 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2310 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2311 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2312
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2313
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2314 displaying [PATCH 1 of 2 fooFlag barFlag] a ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2315 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2316 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2317 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2318 Subject: [PATCH 1 of 2 fooFlag barFlag] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2319 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2320 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2321 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2322 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2323 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2324 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2325 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2326 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2327 Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2328 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2329 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2330 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2331
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2332 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2333 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2334 # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2335 # Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2336 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2337 # Parent 0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2338 a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2339
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2340 diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2341 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2342 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2343 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2344 +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2345
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2346 displaying [PATCH 2 of 2 fooFlag barFlag] b ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2347 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2348 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2349 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2350 Subject: [PATCH 2 of 2 fooFlag barFlag] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2351 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2352 X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2353 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2354 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2355 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2356 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2357 References: <patchbomb.60@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2358 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2359 Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2360 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2361 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2362 Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2363
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2364 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2365 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2366 # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2367 # Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2368 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2369 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2370 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2371
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2372 diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2373 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2374 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2375 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2376 +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2377
9346
bb3f8f692bc6 patchbomb: add --flag to put flags in subject prefixes
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 8514
diff changeset
2378
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2379 test multi-address parsing:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2380 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam><eggs>' \
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2381 > -t toast -c 'foo,bar@example.com' -c '"A, B <>" <a@example.com>' -s test -r 0 \
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2382 > --config email.bcc='"Quux, A." <quux>'
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2383 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2384
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2385
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2386 sending [PATCH] test ...
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2387 $ cat < tmp.mbox
15559
1830d0cc4bc1 patchbomb: minor refactoring of mbox functionality, preparing for move
Mads Kiilerich <mads@kiilerich.com>
parents: 15547
diff changeset
2388 From quux ... ... .. ..:..:.. .... (re)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2389 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2390 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2391 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2392 Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2393 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2394 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2395 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2396 Message-Id: <8580ff50825a50c8f716.315532860@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2397 X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@test-hostname>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
2398 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2399 Date: Tue, 01 Jan 1980 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2400 From: quux
43325
7d4f2e4899c5 py3: fix headencode() with display=False
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 43019
diff changeset
2401 To: spam <spam>, eggs, toast (no-py3 !)
7d4f2e4899c5 py3: fix headencode() with display=False
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 43019
diff changeset
2402 Cc: foo, bar@example.com, "A, B <>" <a@example.com> (no-py3 !)
7d4f2e4899c5 py3: fix headencode() with display=False
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 43019
diff changeset
2403 Bcc: "Quux, A." <quux> (no-py3 !)
7d4f2e4899c5 py3: fix headencode() with display=False
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 43019
diff changeset
2404 To: =?iso-8859-1?q?spam?= <spam>, eggs, toast (py3 !)
7d4f2e4899c5 py3: fix headencode() with display=False
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 43019
diff changeset
2405 Cc: foo, bar@example.com, =?iso-8859-1?q?A=2C_B_=3C=3E?= <a@example.com> (py3 !)
7d4f2e4899c5 py3: fix headencode() with display=False
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 43019
diff changeset
2406 Bcc: =?iso-8859-1?q?Quux=2C_A=2E?= <quux> (py3 !)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2407
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2408 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2409 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2410 # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2411 # Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2412 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2413 # Parent 0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2414 a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2415
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2416 diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2417 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2418 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2419 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2420 +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2421
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2422
9346
bb3f8f692bc6 patchbomb: add --flag to put flags in subject prefixes
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 8514
diff changeset
2423
31187
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2424 test flag template:
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2425 $ echo foo > intro.text
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2426 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -r 0:1 \
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2427 > --desc intro.text --subject test \
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2428 > --config patchbomb.flagtemplate='R{rev}'
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2429 this patch series consists of 2 patches.
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2430
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2431 Cc:
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2432
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2433 displaying [PATCH 0 of 2 R1] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2434 MIME-Version: 1.0
31187
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2435 Content-Type: text/plain; charset="us-ascii"
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2436 Content-Transfer-Encoding: 7bit
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2437 Subject: [PATCH 0 of 2 R1] test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2438 Message-Id: <patchbomb.60@test-hostname>
31187
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2439 User-Agent: Mercurial-patchbomb/* (glob)
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2440 Date: Thu, 01 Jan 1970 00:01:00 +0000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2441 From: quux
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2442 To: foo
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2443
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2444 foo
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2445
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2446 displaying [PATCH 1 of 2 R0] a ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2447 MIME-Version: 1.0
31187
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2448 Content-Type: text/plain; charset="us-ascii"
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2449 Content-Transfer-Encoding: 7bit
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2450 Subject: [PATCH 1 of 2 R0] a
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2451 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2452 X-Mercurial-Series-Index: 1
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2453 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2454 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2455 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2456 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2457 References: <patchbomb.60@test-hostname>
31187
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2458 User-Agent: Mercurial-patchbomb/* (glob)
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2459 Date: Thu, 01 Jan 1970 00:01:01 +0000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2460 From: quux
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2461 To: foo
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2462
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2463 # HG changeset patch
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2464 # User test
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2465 # Date 1 0
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2466 # Thu Jan 01 00:00:01 1970 +0000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2467 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2468 # Parent 0000000000000000000000000000000000000000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2469 a
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2470
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2471 diff -r 000000000000 -r 8580ff50825a a
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2472 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2473 +++ b/a Thu Jan 01 00:00:01 1970 +0000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2474 @@ -0,0 +1,1 @@
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2475 +a
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2476
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2477 displaying [PATCH 2 of 2 R1] b ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2478 MIME-Version: 1.0
31187
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2479 Content-Type: text/plain; charset="us-ascii"
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2480 Content-Transfer-Encoding: 7bit
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2481 Subject: [PATCH 2 of 2 R1] b
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2482 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2483 X-Mercurial-Series-Index: 2
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2484 X-Mercurial-Series-Total: 2
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2485 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2486 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2487 In-Reply-To: <patchbomb.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2488 References: <patchbomb.60@test-hostname>
31187
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2489 User-Agent: Mercurial-patchbomb/* (glob)
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2490 Date: Thu, 01 Jan 1970 00:01:02 +0000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2491 From: quux
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2492 To: foo
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2493
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2494 # HG changeset patch
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2495 # User test
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2496 # Date 2 0
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2497 # Thu Jan 01 00:00:02 1970 +0000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2498 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2499 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2500 b
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2501
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2502 diff -r 8580ff50825a -r 97d72e5f12c7 b
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2503 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2504 +++ b/b Thu Jan 01 00:00:02 1970 +0000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2505 @@ -0,0 +1,1 @@
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2506 +b
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2507
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2508
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2509 test flag template plus --flag:
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2510 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -r 0 --flag 'V2' \
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2511 > --config patchbomb.flagtemplate='{branch} {flags}'
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2512 this patch series consists of 1 patches.
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2513
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2514 Cc:
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2515
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2516 displaying [PATCH default V2] a ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2517 MIME-Version: 1.0
31187
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2518 Content-Type: text/plain; charset="us-ascii"
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2519 Content-Transfer-Encoding: 7bit
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2520 Subject: [PATCH default V2] a
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2521 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2522 X-Mercurial-Series-Index: 1
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2523 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2524 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2525 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
31187
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2526 User-Agent: Mercurial-patchbomb/* (glob)
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2527 Date: Thu, 01 Jan 1970 00:01:00 +0000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2528 From: quux
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2529 To: foo
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2530
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2531 # HG changeset patch
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2532 # User test
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2533 # Date 1 0
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2534 # Thu Jan 01 00:00:01 1970 +0000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2535 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2536 # Parent 0000000000000000000000000000000000000000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2537 a
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2538
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2539 diff -r 000000000000 -r 8580ff50825a a
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2540 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2541 +++ b/a Thu Jan 01 00:00:01 1970 +0000
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2542 @@ -0,0 +1,1 @@
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2543 +a
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2544
6b8e1a08ef1d patchbomb: add config knob to generate flags by template (issue5354)
Yuya Nishihara <yuya@tcha.org>
parents: 30211
diff changeset
2545
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2546 test multi-byte domain parsing:
39036
598467614c15 tests: put some Python 3 polish on inline Python invocations
Augie Fackler <augie@google.com>
parents: 39030
diff changeset
2547 >>> with open('toaddress.txt', 'wb') as f:
598467614c15 tests: put some Python 3 polish on inline Python invocations
Augie Fackler <augie@google.com>
parents: 39030
diff changeset
2548 ... f.write(b'bar@\xfcnicode.com') and None
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2549 $ HGENCODING=iso-8859-1
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2550 $ export HGENCODING
39036
598467614c15 tests: put some Python 3 polish on inline Python invocations
Augie Fackler <augie@google.com>
parents: 39030
diff changeset
2551 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "`cat toaddress.txt`" -s test -r 0
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2552 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2553
15165
3a55cee825ba patchbomb: use prompt even in non-interactive mode
Matt Mackall <mpm@selenic.com>
parents: 15164
diff changeset
2554 Cc:
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2555
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2556 sending [PATCH] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2557
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2558 $ cat tmp.mbox
15559
1830d0cc4bc1 patchbomb: minor refactoring of mbox functionality, preparing for move
Mads Kiilerich <mads@kiilerich.com>
parents: 15547
diff changeset
2559 From quux ... ... .. ..:..:.. .... (re)
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2560 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2561 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2562 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2563 Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2564 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2565 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2566 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2567 Message-Id: <8580ff50825a50c8f716.315532860@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2568 X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@test-hostname>
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
2569 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2570 Date: Tue, 01 Jan 1980 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2571 From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2572 To: bar@xn--nicode-2ya.com
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2573
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2574 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2575 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2576 # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2577 # Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2578 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2579 # Parent 0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2580 a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2581
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2582 diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2583 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2584 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2585 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2586 +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2587
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2588
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2589
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2590 test outgoing:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2591 $ hg up 1
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2592 0 files updated, 0 files merged, 6 files removed, 0 files unresolved
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2593
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2594 $ hg branch test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2595 marked working directory as branch test
15615
41885892796e branch: warn on branching
Matt Mackall <mpm@selenic.com>
parents: 15165
diff changeset
2596 (branches are permanent and global, did you want a bookmark?)
9346
bb3f8f692bc6 patchbomb: add --flag to put flags in subject prefixes
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 8514
diff changeset
2597
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2598 $ echo d > d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2599 $ hg add d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2600 $ hg ci -md -d '4 0'
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2601 $ echo d >> d
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2602 $ hg ci -mdd -d '5 0'
20117
aa9385f983fa tests: don't load unnecessary graphlog extension
Martin Geisler <martin@geisler.net>
parents: 18648
diff changeset
2603 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2604 @ 10:3b6f1ec9dde9 dd
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2605 |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2606 o 9:2f9fa9b998c5 d
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2607 |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2608 | o 8:7aead2484924 Added tag two, two.diff for changeset ff2c9fa2018b
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2609 | |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2610 | o 7:045ca29b1ea2 Added tag one, one.patch for changeset 97d72e5f12c7
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2611 | |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2612 | o 6:5d5ef15dfe5e Added tag zero, zero.foo for changeset 8580ff50825a
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2613 | |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2614 | o 5:240fb913fc1b isolatin 8-bit encoding
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2615 | |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2616 | o 4:a2ea8fc83dd8 long line
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2617 | |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2618 | o 3:909a00e13e9d utf-8 content
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2619 | |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2620 | o 2:ff2c9fa2018b c
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2621 |/
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2622 o 1:97d72e5f12c7 b
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2623 |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2624 o 0:8580ff50825a a
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2625
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2626 $ hg phase --force --secret -r 10
17177
ef507130fc92 patchbomb: support --outgoing and revsets
Patrick Mezard <patrick@mezard.eu>
parents: 17176
diff changeset
2627 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t -r 'rev(10) or rev(6)'
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2628 comparing with ../t
15165
3a55cee825ba patchbomb: use prompt even in non-interactive mode
Matt Mackall <mpm@selenic.com>
parents: 15164
diff changeset
2629 From [test]: test
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2630 this patch series consists of 6 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2631
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2632
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2633 Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2634
15165
3a55cee825ba patchbomb: use prompt even in non-interactive mode
Matt Mackall <mpm@selenic.com>
parents: 15164
diff changeset
2635 Cc:
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2636
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2637 displaying [PATCH 0 of 6] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2638 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2639 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2640 Content-Transfer-Encoding: 7bit
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2641 Subject: [PATCH 0 of 6] test
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2642 Message-Id: <patchbomb.315532860@test-hostname>
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
2643 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2644 Date: Tue, 01 Jan 1980 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2645 From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2646 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2647
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2648
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2649 displaying [PATCH 1 of 6] c ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2650 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2651 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2652 Content-Transfer-Encoding: 7bit
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2653 Subject: [PATCH 1 of 6] c
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2654 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2655 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2656 X-Mercurial-Series-Total: 6
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2657 Message-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2658 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2659 In-Reply-To: <patchbomb.315532860@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2660 References: <patchbomb.315532860@test-hostname>
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
2661 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2662 Date: Tue, 01 Jan 1980 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2663 From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2664 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2665
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2666 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2667 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2668 # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2669 # Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2670 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2671 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2672 c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2673
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2674 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2675 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2676 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2677 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2678 +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2679
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2680 displaying [PATCH 2 of 6] utf-8 content ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2681 MIME-Version: 1.0
39037
ede768cfe83e mail: always fall back to iso-8859-1 if us-ascii won't work (BC)
Augie Fackler <augie@google.com>
parents: 39036
diff changeset
2682 Content-Type: text/plain; charset="iso-8859-1"
ede768cfe83e mail: always fall back to iso-8859-1 if us-ascii won't work (BC)
Augie Fackler <augie@google.com>
parents: 39036
diff changeset
2683 Content-Transfer-Encoding: quoted-printable
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2684 Subject: [PATCH 2 of 6] utf-8 content
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2685 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2686 X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2687 X-Mercurial-Series-Total: 6
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2688 Message-Id: <909a00e13e9d78b575ae.315532862@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2689 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2690 In-Reply-To: <patchbomb.315532860@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2691 References: <patchbomb.315532860@test-hostname>
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
2692 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2693 Date: Tue, 01 Jan 1980 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2694 From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2695 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2696
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2697 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2698 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2699 # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2700 # Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2701 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2702 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2703 utf-8 content
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2704
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2705 diff -r ff2c9fa2018b -r 909a00e13e9d description
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2706 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2707 +++ b/description Thu Jan 01 00:00:04 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2708 @@ -0,0 +1,3 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2709 +a multiline
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2710 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2711 +description
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2712 diff -r ff2c9fa2018b -r 909a00e13e9d utf
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2713 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2714 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2715 @@ -0,0 +1,1 @@
39037
ede768cfe83e mail: always fall back to iso-8859-1 if us-ascii won't work (BC)
Augie Fackler <augie@google.com>
parents: 39036
diff changeset
2716 +h=C3=B6mma!
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2717
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2718 displaying [PATCH 3 of 6] long line ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2719 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2720 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2721 Content-Transfer-Encoding: quoted-printable
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2722 Subject: [PATCH 3 of 6] long line
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2723 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2724 X-Mercurial-Series-Index: 3
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2725 X-Mercurial-Series-Total: 6
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2726 Message-Id: <a2ea8fc83dd8b93cfd86.315532863@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2727 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2728 In-Reply-To: <patchbomb.315532860@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2729 References: <patchbomb.315532860@test-hostname>
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
2730 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2731 Date: Tue, 01 Jan 1980 00:01:03 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2732 From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2733 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2734
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2735 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2736 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2737 # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2738 # Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2739 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2740 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2741 long line
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2742
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2743 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2744 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2745 +++ b/long Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2746 @@ -0,0 +1,4 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2747 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2748 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2749 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2750 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2751 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2752 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2753 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2754 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2755 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2756 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2757 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2758 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2759 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2760 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2761 +foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2762 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2763 +bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2764
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2765 displaying [PATCH 4 of 6] isolatin 8-bit encoding ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2766 MIME-Version: 1.0
39037
ede768cfe83e mail: always fall back to iso-8859-1 if us-ascii won't work (BC)
Augie Fackler <augie@google.com>
parents: 39036
diff changeset
2767 Content-Type: text/plain; charset="iso-8859-1"
ede768cfe83e mail: always fall back to iso-8859-1 if us-ascii won't work (BC)
Augie Fackler <augie@google.com>
parents: 39036
diff changeset
2768 Content-Transfer-Encoding: quoted-printable
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2769 Subject: [PATCH 4 of 6] isolatin 8-bit encoding
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2770 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2771 X-Mercurial-Series-Index: 4
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2772 X-Mercurial-Series-Total: 6
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2773 Message-Id: <240fb913fc1b7ff15ddb.315532864@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2774 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2775 In-Reply-To: <patchbomb.315532860@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2776 References: <patchbomb.315532860@test-hostname>
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
2777 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2778 Date: Tue, 01 Jan 1980 00:01:04 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2779 From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2780 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2781
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2782 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2783 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2784 # Date 5 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2785 # Thu Jan 01 00:00:05 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2786 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2787 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2788 isolatin 8-bit encoding
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2789
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2790 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2791 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2792 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2793 @@ -0,0 +1,1 @@
39037
ede768cfe83e mail: always fall back to iso-8859-1 if us-ascii won't work (BC)
Augie Fackler <augie@google.com>
parents: 39036
diff changeset
2794 +h=F6mma!
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2795
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2796 displaying [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2797 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2798 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2799 Content-Transfer-Encoding: 7bit
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2800 Subject: [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2801 X-Mercurial-Node: 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2802 X-Mercurial-Series-Index: 5
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2803 X-Mercurial-Series-Total: 6
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2804 Message-Id: <5d5ef15dfe5e7bd3a4ee.315532865@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2805 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2806 In-Reply-To: <patchbomb.315532860@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2807 References: <patchbomb.315532860@test-hostname>
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
2808 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2809 Date: Tue, 01 Jan 1980 00:01:05 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2810 From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2811 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2812
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2813 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2814 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2815 # Date 0 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2816 # Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2817 # Node ID 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2818 # Parent 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2819 Added tag zero, zero.foo for changeset 8580ff50825a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2820
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
2821 diff -r 240fb913fc1b -r 5d5ef15dfe5e .hgtags
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2822 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2823 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2824 @@ -0,0 +1,2 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2825 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2826 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2827
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2828 displaying [PATCH 6 of 6] d ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2829 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2830 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2831 Content-Transfer-Encoding: 7bit
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2832 Subject: [PATCH 6 of 6] d
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
2833 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2834 X-Mercurial-Series-Index: 6
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2835 X-Mercurial-Series-Total: 6
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2836 Message-Id: <2f9fa9b998c5fe3ac2bd.315532866@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2837 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2838 In-Reply-To: <patchbomb.315532860@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2839 References: <patchbomb.315532860@test-hostname>
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
2840 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2841 Date: Tue, 01 Jan 1980 00:01:06 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2842 From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2843 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2844
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2845 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2846 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2847 # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2848 # Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2849 # Branch test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2850 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2851 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2852 d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2853
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2854 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2855 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2856 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2857 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2858 +d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2859
9947
4600e6222efb patchbomb: fix parsing of multiple addresses, allow multiple addrs in --to/cc/bcc
Marti Raudsepp <marti@juffo.org>
parents: 9913
diff changeset
2860
27697
0ce0cfee497f patchbomb: treat empty address list as no addresses
Bryan O'Sullivan <bos@serpentine.com>
parents: 27659
diff changeset
2861 Don't prompt for a CC header.
0ce0cfee497f patchbomb: treat empty address list as no addresses
Bryan O'Sullivan <bos@serpentine.com>
parents: 27659
diff changeset
2862
0ce0cfee497f patchbomb: treat empty address list as no addresses
Bryan O'Sullivan <bos@serpentine.com>
parents: 27659
diff changeset
2863 $ echo "[email]" >> $HGRCPATH
0ce0cfee497f patchbomb: treat empty address list as no addresses
Bryan O'Sullivan <bos@serpentine.com>
parents: 27659
diff changeset
2864 $ echo "cc=" >> $HGRCPATH
0ce0cfee497f patchbomb: treat empty address list as no addresses
Bryan O'Sullivan <bos@serpentine.com>
parents: 27659
diff changeset
2865
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2866 dest#branch URIs:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2867 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2868 comparing with ../t
15165
3a55cee825ba patchbomb: use prompt even in non-interactive mode
Matt Mackall <mpm@selenic.com>
parents: 15164
diff changeset
2869 From [test]: test
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2870 this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2871
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2872
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
2873 displaying [PATCH] test ...
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
2874 MIME-Version: 1.0
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2875 Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2876 Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2877 Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2878 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2879 X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
2880 X-Mercurial-Series-Total: 1
39120
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2881 Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@test-hostname>
d7007b807fa2 tests: un-glob patchbomb test lines that were only globbing a hostname
Augie Fackler <raf@durin42.com>
parents: 39040
diff changeset
2882 X-Mercurial-Series-Id: <2f9fa9b998c5fe3ac2bd.315532860@test-hostname>
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
2883 User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2884 Date: Tue, 01 Jan 1980 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2885 From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2886 To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2887
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2888 # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2889 # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2890 # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
2891 # Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2892 # Branch test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2893 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2894 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2895 d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2896
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2897 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2898 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2899 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2900 @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2901 +d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
2902
31860
56f58027a513 test-patchbomb: disable sendmail tests on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 31489
diff changeset
2903 #if no-windows
16913
f2719b387380 tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents: 16901
diff changeset
2904
27658
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
2905 Set up a fake sendmail program
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
2906
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
2907 $ cat > pretendmail.sh << 'EOF'
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
2908 > #!/bin/sh
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
2909 > echo "$@"
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
2910 > cat
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
2911 > EOF
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
2912 $ chmod +x pretendmail.sh
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
2913
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
2914 $ echo '[email]' >> $HGRCPATH
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
2915 $ echo "method=`pwd`/pretendmail.sh" >> $HGRCPATH
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
2916
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2917 Test introduction configuration
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2918 =================================
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2919
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2920 $ echo '[patchbomb]' >> $HGRCPATH
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2921
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2922 "auto" setting
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2923 ----------------
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2924
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2925 $ echo 'intro=auto' >> $HGRCPATH
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2926
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2927 single rev
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2928
27659
abc91688fa2c test-patchbomb.t: drop a number of now-redundant uses of "-n"
Bryan O'Sullivan <bos@serpentine.com>
parents: 27658
diff changeset
2929 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2930 [1]
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2931
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2932 single rev + flag
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2933
27659
abc91688fa2c test-patchbomb.t: drop a number of now-redundant uses of "-n"
Bryan O'Sullivan <bos@serpentine.com>
parents: 27658
diff changeset
2934 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2935 Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2936
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2937
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2938 Multi rev
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2939
27659
abc91688fa2c test-patchbomb.t: drop a number of now-redundant uses of "-n"
Bryan O'Sullivan <bos@serpentine.com>
parents: 27658
diff changeset
2940 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2941 Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2942
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2943 "never" setting
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2944 -----------------
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2945
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2946 $ echo 'intro=never' >> $HGRCPATH
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2947
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2948 single rev
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2949
27659
abc91688fa2c test-patchbomb.t: drop a number of now-redundant uses of "-n"
Bryan O'Sullivan <bos@serpentine.com>
parents: 27658
diff changeset
2950 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2951 [1]
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2952
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2953 single rev + flag
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2954
27659
abc91688fa2c test-patchbomb.t: drop a number of now-redundant uses of "-n"
Bryan O'Sullivan <bos@serpentine.com>
parents: 27658
diff changeset
2955 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2956 Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2957
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2958
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2959 Multi rev
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2960
27659
abc91688fa2c test-patchbomb.t: drop a number of now-redundant uses of "-n"
Bryan O'Sullivan <bos@serpentine.com>
parents: 27658
diff changeset
2961 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2962 [1]
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2963
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2964 Multi rev + flag
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2965
27659
abc91688fa2c test-patchbomb.t: drop a number of now-redundant uses of "-n"
Bryan O'Sullivan <bos@serpentine.com>
parents: 27658
diff changeset
2966 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' --intro | grep "Write the introductory message for the patch series."
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2967 Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2968
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2969 "always" setting
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2970 -----------------
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2971
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2972 $ echo 'intro=always' >> $HGRCPATH
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2973
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2974 single rev
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2975
27659
abc91688fa2c test-patchbomb.t: drop a number of now-redundant uses of "-n"
Bryan O'Sullivan <bos@serpentine.com>
parents: 27658
diff changeset
2976 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2977 Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2978
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2979 single rev + flag
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2980
27659
abc91688fa2c test-patchbomb.t: drop a number of now-redundant uses of "-n"
Bryan O'Sullivan <bos@serpentine.com>
parents: 27658
diff changeset
2981 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2982 Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2983
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2984
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2985 Multi rev
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2986
27659
abc91688fa2c test-patchbomb.t: drop a number of now-redundant uses of "-n"
Bryan O'Sullivan <bos@serpentine.com>
parents: 27658
diff changeset
2987 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2988 Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2989
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2990 Multi rev + flag
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2991
27659
abc91688fa2c test-patchbomb.t: drop a number of now-redundant uses of "-n"
Bryan O'Sullivan <bos@serpentine.com>
parents: 27658
diff changeset
2992 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' --intro | grep "Write the introductory message for the patch series."
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2993 Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2994
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2995 bad value setting
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2996 -----------------
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2997
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2998 $ echo 'intro=mpmwearaclownnose' >> $HGRCPATH
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
2999
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3000 single rev
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3001
27658
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
3002 $ hg email --date '1980-1-1 0:1' -v -t foo -s test -r '10'
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3003 From [test]: test
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3004 this patch series consists of 1 patches.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3005
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3006 warning: invalid patchbomb.intro value "mpmwearaclownnose"
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3007 (should be one of always, never, auto)
27658
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
3008 -f test foo
34310
2d0c306a88c2 mail: encode long unicode lines in emails properly (issue5687)
Igor Ippolitov <iippolitov@gmail.com>
parents: 34301
diff changeset
3009 MIME-Version: 1.0
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3010 Content-Type: text/plain; charset="us-ascii"
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3011 Content-Transfer-Encoding: 7bit
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3012 Subject: [PATCH] test
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3013 X-Mercurial-Node: 3b6f1ec9dde933a40a115a7990f8b320477231af
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3014 X-Mercurial-Series-Index: 1
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3015 X-Mercurial-Series-Total: 1
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3016 Message-Id: <3b6f1ec9dde933a40a11*> (glob)
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3017 X-Mercurial-Series-Id: <3b6f1ec9dde933a40a11.*> (glob)
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3018 User-Agent: Mercurial-patchbomb/* (glob)
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3019 Date: Tue, 01 Jan 1980 00:01:00 +0000
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3020 From: test
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3021 To: foo
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3022
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3023 # HG changeset patch
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3024 # User test
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3025 # Date 5 0
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3026 # Thu Jan 01 00:00:05 1970 +0000
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3027 # Branch test
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3028 # Node ID 3b6f1ec9dde933a40a115a7990f8b320477231af
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3029 # Parent 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3030 dd
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3031
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3032 diff -r 2f9fa9b998c5 -r 3b6f1ec9dde9 d
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3033 --- a/d Thu Jan 01 00:00:04 1970 +0000
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3034 +++ b/d Thu Jan 01 00:00:05 1970 +0000
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3035 @@ -1,1 +1,2 @@
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3036 d
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
3037 +d
27658
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
3038
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
3039 sending [PATCH] test ...
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
3040 sending mail: $TESTTMP/t2/pretendmail.sh -f test foo
a6eddc8be811 test-patchbomb.t: test use of sendmail program
Bryan O'Sullivan <bos@serpentine.com>
parents: 26925
diff changeset
3041
43019
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3042 Shell characters in addresses
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3043
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3044 $ hg email --date '1980-1-1 0:1' -v -t '~foo/bar@example.com' -f 'me*@example.com' -r '10'
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3045 this patch series consists of 1 patches.
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3046
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3047 warning: invalid patchbomb.intro value "mpmwearaclownnose"
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3048 (should be one of always, never, auto)
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3049 -f me*@example.com ~foo/bar@example.com
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3050 MIME-Version: 1.0
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3051 Content-Type: text/plain; charset="us-ascii"
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3052 Content-Transfer-Encoding: 7bit
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3053 Subject: [PATCH] dd
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3054 X-Mercurial-Node: 3b6f1ec9dde933a40a115a7990f8b320477231af
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3055 X-Mercurial-Series-Index: 1
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3056 X-Mercurial-Series-Total: 1
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3057 Message-Id: <3b6f1ec9dde933a40a11.315532860@test-hostname>
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3058 X-Mercurial-Series-Id: <3b6f1ec9dde933a40a11.315532860@test-hostname>
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3059 User-Agent: Mercurial-patchbomb/* (glob)
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3060 Date: Tue, 01 Jan 1980 00:01:00 +0000
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3061 From: me*@example.com
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3062 To: ~foo/bar@example.com
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3063
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3064 # HG changeset patch
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3065 # User test
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3066 # Date 5 0
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3067 # Thu Jan 01 00:00:05 1970 +0000
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3068 # Branch test
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3069 # Node ID 3b6f1ec9dde933a40a115a7990f8b320477231af
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3070 # Parent 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3071 dd
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3072
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3073 diff -r 2f9fa9b998c5 -r 3b6f1ec9dde9 d
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3074 --- a/d Thu Jan 01 00:00:04 1970 +0000
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3075 +++ b/d Thu Jan 01 00:00:05 1970 +0000
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3076 @@ -1,1 +1,2 @@
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3077 d
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3078 +d
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3079
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3080 sending [PATCH] dd ...
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3081 sending mail: $TESTTMP/t2/pretendmail.sh -f 'me*@example.com' '~foo/bar@example.com'
2cc453284d5c patchbomb: protect email addresses from shell
Floris Bruynooghe <flub@google.com>
parents: 40969
diff changeset
3082
26546
500386e65759 patchbomb: add experimental config of a "pullurl" and export it
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25482
diff changeset
3083 Test pull url header
500386e65759 patchbomb: add experimental config of a "pullurl" and export it
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25482
diff changeset
3084 =================================
500386e65759 patchbomb: add experimental config of a "pullurl" and export it
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25482
diff changeset
3085
26626
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3086 basic version
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3087
26546
500386e65759 patchbomb: add experimental config of a "pullurl" and export it
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 25482
diff changeset
3088 $ echo 'intro=auto' >> $HGRCPATH
26626
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3089 $ echo "publicurl=$TESTTMP/t2" >> $HGRCPATH
27659
abc91688fa2c test-patchbomb.t: drop a number of now-redundant uses of "-n"
Bryan O'Sullivan <bos@serpentine.com>
parents: 27658
diff changeset
3090 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep '^#'
26626
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3091 abort: public url $TESTTMP/t2 is missing 3b6f1ec9dde9
28981
7b188bc23942 patchbomb: use single quotes around command hint
timeless <timeless@mozdev.org>
parents: 28907
diff changeset
3092 (use 'hg push $TESTTMP/t2 -r 3b6f1ec9dde9')
26626
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3093 [1]
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3094
28906
ac1bb8ca6d39 tests: clarify patchbomb repo is public not remote
timeless <timeless@mozdev.org>
parents: 28051
diff changeset
3095 public missing
26626
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3096
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3097 $ echo 'publicurl=$TESTTMP/missing' >> $HGRCPATH
27659
abc91688fa2c test-patchbomb.t: drop a number of now-redundant uses of "-n"
Bryan O'Sullivan <bos@serpentine.com>
parents: 27658
diff changeset
3098 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10'
26626
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3099 unable to access public repo: $TESTTMP/missing
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3100 abort: repository $TESTTMP/missing not found!
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3101 [255]
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3102
28906
ac1bb8ca6d39 tests: clarify patchbomb repo is public not remote
timeless <timeless@mozdev.org>
parents: 28051
diff changeset
3103 node missing at public
26626
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3104
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3105 $ hg clone -r '9' . ../t3
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3106 adding changesets
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3107 adding manifests
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3108 adding file changes
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3109 added 3 changesets with 3 changes to 3 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 34316
diff changeset
3110 new changesets 8580ff50825a:2f9fa9b998c5
26626
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3111 updating to branch test
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3112 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3113 $ echo 'publicurl=$TESTTMP/t3' >> $HGRCPATH
27659
abc91688fa2c test-patchbomb.t: drop a number of now-redundant uses of "-n"
Bryan O'Sullivan <bos@serpentine.com>
parents: 27658
diff changeset
3114 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10'
26626
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3115 abort: public url $TESTTMP/t3 is missing 3b6f1ec9dde9
28981
7b188bc23942 patchbomb: use single quotes around command hint
timeless <timeless@mozdev.org>
parents: 28907
diff changeset
3116 (use 'hg push $TESTTMP/t3 -r 3b6f1ec9dde9')
26626
dca161728dc9 patchbomb: check that targets exist at the publicurl
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 26563
diff changeset
3117 [255]
28907
66e647312d30 patchbomb: fix public-is-missing hint
timeless <timeless@mozdev.org>
parents: 28906
diff changeset
3118
66e647312d30 patchbomb: fix public-is-missing hint
timeless <timeless@mozdev.org>
parents: 28906
diff changeset
3119 multiple heads are missing at public
66e647312d30 patchbomb: fix public-is-missing hint
timeless <timeless@mozdev.org>
parents: 28906
diff changeset
3120
66e647312d30 patchbomb: fix public-is-missing hint
timeless <timeless@mozdev.org>
parents: 28906
diff changeset
3121 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '2+10'
66e647312d30 patchbomb: fix public-is-missing hint
timeless <timeless@mozdev.org>
parents: 28906
diff changeset
3122 abort: public "$TESTTMP/t3" is missing ff2c9fa2018b and 1 others
28981
7b188bc23942 patchbomb: use single quotes around command hint
timeless <timeless@mozdev.org>
parents: 28907
diff changeset
3123 (use 'hg push $TESTTMP/t3 -r ff2c9fa2018b -r 3b6f1ec9dde9')
28907
66e647312d30 patchbomb: fix public-is-missing hint
timeless <timeless@mozdev.org>
parents: 28906
diff changeset
3124 [255]
66e647312d30 patchbomb: fix public-is-missing hint
timeless <timeless@mozdev.org>
parents: 28906
diff changeset
3125
31860
56f58027a513 test-patchbomb: disable sendmail tests on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 31489
diff changeset
3126 #endif