##// END OF EJS Templates
tests: un-glob patchbomb test lines that were only globbing a hostname...
Augie Fackler -
r39156:d7007b80 default
parent child Browse files
Show More
@@ -1,168 +1,168 b''
1 Create @ bookmark as main reference
1 Create @ bookmark as main reference
2
2
3 $ hg init repo
3 $ hg init repo
4 $ cd repo
4 $ cd repo
5 $ echo "[extensions]" >> $HGRCPATH
5 $ echo "[extensions]" >> $HGRCPATH
6 $ echo "patchbomb=" >> $HGRCPATH
6 $ echo "patchbomb=" >> $HGRCPATH
7 $ hg book @
7 $ hg book @
8
8
9 Create a dummy revision that must never be exported
9 Create a dummy revision that must never be exported
10
10
11 $ echo no > no
11 $ echo no > no
12 $ hg ci -Amno -d '6 0'
12 $ hg ci -Amno -d '6 0'
13 adding no
13 adding no
14
14
15 Create a feature and use -B
15 Create a feature and use -B
16
16
17 $ hg book booktest
17 $ hg book booktest
18 $ echo first > a
18 $ echo first > a
19 $ hg ci -Amfirst -d '7 0'
19 $ hg ci -Amfirst -d '7 0'
20 adding a
20 adding a
21 $ echo second > b
21 $ echo second > b
22 $ hg ci -Amsecond -d '8 0'
22 $ hg ci -Amsecond -d '8 0'
23 adding b
23 adding b
24 $ hg email --date '1981-1-1 0:1' -n -t foo -s bookmark -B booktest
24 $ hg email --date '1981-1-1 0:1' -n -t foo -s bookmark -B booktest
25 From [test]: test
25 From [test]: test
26 this patch series consists of 2 patches.
26 this patch series consists of 2 patches.
27
27
28
28
29 Write the introductory message for the patch series.
29 Write the introductory message for the patch series.
30
30
31 Cc:
31 Cc:
32
32
33 displaying [PATCH 0 of 2] bookmark ...
33 displaying [PATCH 0 of 2] bookmark ...
34 MIME-Version: 1.0
34 MIME-Version: 1.0
35 Content-Type: text/plain; charset="us-ascii"
35 Content-Type: text/plain; charset="us-ascii"
36 Content-Transfer-Encoding: 7bit
36 Content-Transfer-Encoding: 7bit
37 Subject: [PATCH 0 of 2] bookmark
37 Subject: [PATCH 0 of 2] bookmark
38 Message-Id: <patchbomb.347155260@*> (glob)
38 Message-Id: <patchbomb.347155260@test-hostname>
39 User-Agent: Mercurial-patchbomb/* (glob)
39 User-Agent: Mercurial-patchbomb/* (glob)
40 Date: Thu, 01 Jan 1981 00:01:00 +0000
40 Date: Thu, 01 Jan 1981 00:01:00 +0000
41 From: test
41 From: test
42 To: foo
42 To: foo
43
43
44
44
45 displaying [PATCH 1 of 2] first ...
45 displaying [PATCH 1 of 2] first ...
46 MIME-Version: 1.0
46 MIME-Version: 1.0
47 Content-Type: text/plain; charset="us-ascii"
47 Content-Type: text/plain; charset="us-ascii"
48 Content-Transfer-Encoding: 7bit
48 Content-Transfer-Encoding: 7bit
49 Subject: [PATCH 1 of 2] first
49 Subject: [PATCH 1 of 2] first
50 X-Mercurial-Node: accde9b8b6dce861c185d0825c1affc09a79cb26
50 X-Mercurial-Node: accde9b8b6dce861c185d0825c1affc09a79cb26
51 X-Mercurial-Series-Index: 1
51 X-Mercurial-Series-Index: 1
52 X-Mercurial-Series-Total: 2
52 X-Mercurial-Series-Total: 2
53 Message-Id: <accde9b8b6dce861c185.347155261@*> (glob)
53 Message-Id: <accde9b8b6dce861c185.347155261@test-hostname>
54 X-Mercurial-Series-Id: <accde9b8b6dce861c185.347155261@*> (glob)
54 X-Mercurial-Series-Id: <accde9b8b6dce861c185.347155261@test-hostname>
55 In-Reply-To: <patchbomb.347155260@*> (glob)
55 In-Reply-To: <patchbomb.347155260@test-hostname>
56 References: <patchbomb.347155260@*> (glob)
56 References: <patchbomb.347155260@test-hostname>
57 User-Agent: Mercurial-patchbomb/* (glob)
57 User-Agent: Mercurial-patchbomb/* (glob)
58 Date: Thu, 01 Jan 1981 00:01:01 +0000
58 Date: Thu, 01 Jan 1981 00:01:01 +0000
59 From: test
59 From: test
60 To: foo
60 To: foo
61
61
62 # HG changeset patch
62 # HG changeset patch
63 # User test
63 # User test
64 # Date 7 0
64 # Date 7 0
65 # Thu Jan 01 00:00:07 1970 +0000
65 # Thu Jan 01 00:00:07 1970 +0000
66 # Node ID accde9b8b6dce861c185d0825c1affc09a79cb26
66 # Node ID accde9b8b6dce861c185d0825c1affc09a79cb26
67 # Parent 043bd3889e5aaf7d88fe3713cf425f782ad2fb71
67 # Parent 043bd3889e5aaf7d88fe3713cf425f782ad2fb71
68 first
68 first
69
69
70 diff -r 043bd3889e5a -r accde9b8b6dc a
70 diff -r 043bd3889e5a -r accde9b8b6dc a
71 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
71 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
72 +++ b/a Thu Jan 01 00:00:07 1970 +0000
72 +++ b/a Thu Jan 01 00:00:07 1970 +0000
73 @@ -0,0 +1,1 @@
73 @@ -0,0 +1,1 @@
74 +first
74 +first
75
75
76 displaying [PATCH 2 of 2] second ...
76 displaying [PATCH 2 of 2] second ...
77 MIME-Version: 1.0
77 MIME-Version: 1.0
78 Content-Type: text/plain; charset="us-ascii"
78 Content-Type: text/plain; charset="us-ascii"
79 Content-Transfer-Encoding: 7bit
79 Content-Transfer-Encoding: 7bit
80 Subject: [PATCH 2 of 2] second
80 Subject: [PATCH 2 of 2] second
81 X-Mercurial-Node: 417defd1559c396ba06a44dce8dc1c2d2d653f3f
81 X-Mercurial-Node: 417defd1559c396ba06a44dce8dc1c2d2d653f3f
82 X-Mercurial-Series-Index: 2
82 X-Mercurial-Series-Index: 2
83 X-Mercurial-Series-Total: 2
83 X-Mercurial-Series-Total: 2
84 Message-Id: <417defd1559c396ba06a.347155262@*> (glob)
84 Message-Id: <417defd1559c396ba06a.347155262@test-hostname>
85 X-Mercurial-Series-Id: <accde9b8b6dce861c185.347155261@*> (glob)
85 X-Mercurial-Series-Id: <accde9b8b6dce861c185.347155261@test-hostname>
86 In-Reply-To: <patchbomb.347155260@*> (glob)
86 In-Reply-To: <patchbomb.347155260@test-hostname>
87 References: <patchbomb.347155260@*> (glob)
87 References: <patchbomb.347155260@test-hostname>
88 User-Agent: Mercurial-patchbomb/* (glob)
88 User-Agent: Mercurial-patchbomb/* (glob)
89 Date: Thu, 01 Jan 1981 00:01:02 +0000
89 Date: Thu, 01 Jan 1981 00:01:02 +0000
90 From: test
90 From: test
91 To: foo
91 To: foo
92
92
93 # HG changeset patch
93 # HG changeset patch
94 # User test
94 # User test
95 # Date 8 0
95 # Date 8 0
96 # Thu Jan 01 00:00:08 1970 +0000
96 # Thu Jan 01 00:00:08 1970 +0000
97 # Node ID 417defd1559c396ba06a44dce8dc1c2d2d653f3f
97 # Node ID 417defd1559c396ba06a44dce8dc1c2d2d653f3f
98 # Parent accde9b8b6dce861c185d0825c1affc09a79cb26
98 # Parent accde9b8b6dce861c185d0825c1affc09a79cb26
99 second
99 second
100
100
101 diff -r accde9b8b6dc -r 417defd1559c b
101 diff -r accde9b8b6dc -r 417defd1559c b
102 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
102 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
103 +++ b/b Thu Jan 01 00:00:08 1970 +0000
103 +++ b/b Thu Jan 01 00:00:08 1970 +0000
104 @@ -0,0 +1,1 @@
104 @@ -0,0 +1,1 @@
105 +second
105 +second
106
106
107 Do the same and combine with -o only one must be exported
107 Do the same and combine with -o only one must be exported
108
108
109 $ cd ..
109 $ cd ..
110 $ hg clone repo repo2
110 $ hg clone repo repo2
111 updating to bookmark @
111 updating to bookmark @
112 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
112 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
113 $ cd repo
113 $ cd repo
114 $ hg up @
114 $ hg up @
115 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
115 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
116 (activating bookmark @)
116 (activating bookmark @)
117 $ hg book outgoing
117 $ hg book outgoing
118 $ echo 1 > x
118 $ echo 1 > x
119 $ hg ci -Am1 -d '8 0'
119 $ hg ci -Am1 -d '8 0'
120 adding x
120 adding x
121 created new head
121 created new head
122 $ hg push ../repo2 -B outgoing
122 $ hg push ../repo2 -B outgoing
123 pushing to ../repo2
123 pushing to ../repo2
124 searching for changes
124 searching for changes
125 adding changesets
125 adding changesets
126 adding manifests
126 adding manifests
127 adding file changes
127 adding file changes
128 added 1 changesets with 1 changes to 1 files (+1 heads)
128 added 1 changesets with 1 changes to 1 files (+1 heads)
129 exporting bookmark outgoing
129 exporting bookmark outgoing
130 $ echo 2 > y
130 $ echo 2 > y
131 $ hg ci -Am2 -d '9 0'
131 $ hg ci -Am2 -d '9 0'
132 adding y
132 adding y
133 $ hg email --date '1982-1-1 0:1' -n -t foo -s bookmark -B outgoing -o ../repo2
133 $ hg email --date '1982-1-1 0:1' -n -t foo -s bookmark -B outgoing -o ../repo2
134 comparing with ../repo2
134 comparing with ../repo2
135 From [test]: test
135 From [test]: test
136 this patch series consists of 1 patches.
136 this patch series consists of 1 patches.
137
137
138 Cc:
138 Cc:
139
139
140 displaying [PATCH] bookmark ...
140 displaying [PATCH] bookmark ...
141 MIME-Version: 1.0
141 MIME-Version: 1.0
142 Content-Type: text/plain; charset="us-ascii"
142 Content-Type: text/plain; charset="us-ascii"
143 Content-Transfer-Encoding: 7bit
143 Content-Transfer-Encoding: 7bit
144 Subject: [PATCH] bookmark
144 Subject: [PATCH] bookmark
145 X-Mercurial-Node: 8dab2639fd35f1e337ad866c372a5c44f1064e3c
145 X-Mercurial-Node: 8dab2639fd35f1e337ad866c372a5c44f1064e3c
146 X-Mercurial-Series-Index: 1
146 X-Mercurial-Series-Index: 1
147 X-Mercurial-Series-Total: 1
147 X-Mercurial-Series-Total: 1
148 Message-Id: <8dab2639fd35f1e337ad.378691260@*> (glob)
148 Message-Id: <8dab2639fd35f1e337ad.378691260@test-hostname>
149 X-Mercurial-Series-Id: <8dab2639fd35f1e337ad.378691260@*> (glob)
149 X-Mercurial-Series-Id: <8dab2639fd35f1e337ad.378691260@test-hostname>
150 User-Agent: Mercurial-patchbomb/* (glob)
150 User-Agent: Mercurial-patchbomb/* (glob)
151 Date: Fri, 01 Jan 1982 00:01:00 +0000
151 Date: Fri, 01 Jan 1982 00:01:00 +0000
152 From: test
152 From: test
153 To: foo
153 To: foo
154
154
155 # HG changeset patch
155 # HG changeset patch
156 # User test
156 # User test
157 # Date 9 0
157 # Date 9 0
158 # Thu Jan 01 00:00:09 1970 +0000
158 # Thu Jan 01 00:00:09 1970 +0000
159 # Node ID 8dab2639fd35f1e337ad866c372a5c44f1064e3c
159 # Node ID 8dab2639fd35f1e337ad866c372a5c44f1064e3c
160 # Parent 0b24b8316483bf30bfc3e4d4168e922b169dbe66
160 # Parent 0b24b8316483bf30bfc3e4d4168e922b169dbe66
161 2
161 2
162
162
163 diff -r 0b24b8316483 -r 8dab2639fd35 y
163 diff -r 0b24b8316483 -r 8dab2639fd35 y
164 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
164 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
165 +++ b/y Thu Jan 01 00:00:09 1970 +0000
165 +++ b/y Thu Jan 01 00:00:09 1970 +0000
166 @@ -0,0 +1,1 @@
166 @@ -0,0 +1,1 @@
167 +2
167 +2
168
168
@@ -1,3080 +1,3079 b''
1 Note for future hackers of patchbomb: this file is a bit heavy on
1 Note for future hackers of patchbomb: this file is a bit heavy on
2 wildcards in test expectations due to how many things like hostnames
2 wildcards in test expectations due to how many things like hostnames
3 tend to make it into outputs. As a result, you may need to perform the
3 tend to make it into outputs. As a result, you may need to perform the
4 following regular expression substitutions:
4 following regular expression substitutions:
5 @$HOSTNAME> -> @*> (glob)
6 Mercurial-patchbomb/.* -> Mercurial-patchbomb/* (glob)
5 Mercurial-patchbomb/.* -> Mercurial-patchbomb/* (glob)
7 /mixed; boundary="===+[0-9]+==" -> /mixed; boundary="===*== (glob)"
6 /mixed; boundary="===+[0-9]+==" -> /mixed; boundary="===*== (glob)"
8 --===+[0-9]+=+--$ -> --===*=-- (glob)
7 --===+[0-9]+=+--$ -> --===*=-- (glob)
9 --===+[0-9]+=+$ -> --===*= (glob)
8 --===+[0-9]+=+$ -> --===*= (glob)
10
9
11 $ cat > prune-blank-after-boundary.py <<EOF
10 $ cat > prune-blank-after-boundary.py <<EOF
12 > from __future__ import absolute_import, print_function
11 > from __future__ import absolute_import, print_function
13 > import sys
12 > import sys
14 > skipblank = False
13 > skipblank = False
15 > trim = lambda x: x.strip(' \r\n')
14 > trim = lambda x: x.strip(' \r\n')
16 > for l in sys.stdin:
15 > for l in sys.stdin:
17 > if trim(l).endswith('=--') or trim(l).endswith('=='):
16 > if trim(l).endswith('=--') or trim(l).endswith('=='):
18 > skipblank = True
17 > skipblank = True
19 > print(l, end='')
18 > print(l, end='')
20 > continue
19 > continue
21 > if not trim(l) and skipblank:
20 > if not trim(l) and skipblank:
22 > continue
21 > continue
23 > skipblank = False
22 > skipblank = False
24 > print(l, end='')
23 > print(l, end='')
25 > EOF
24 > EOF
26 $ FILTERBOUNDARY="$PYTHON `pwd`/prune-blank-after-boundary.py"
25 $ FILTERBOUNDARY="$PYTHON `pwd`/prune-blank-after-boundary.py"
27 $ echo "[extensions]" >> $HGRCPATH
26 $ echo "[extensions]" >> $HGRCPATH
28 $ echo "patchbomb=" >> $HGRCPATH
27 $ echo "patchbomb=" >> $HGRCPATH
29
28
30 $ hg init t
29 $ hg init t
31 $ cd t
30 $ cd t
32 $ echo a > a
31 $ echo a > a
33 $ hg commit -Ama -d '1 0'
32 $ hg commit -Ama -d '1 0'
34 adding a
33 adding a
35
34
36 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
35 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
37 this patch series consists of 1 patches.
36 this patch series consists of 1 patches.
38
37
39
38
40 displaying [PATCH] a ...
39 displaying [PATCH] a ...
41 MIME-Version: 1.0
40 MIME-Version: 1.0
42 Content-Type: text/plain; charset="us-ascii"
41 Content-Type: text/plain; charset="us-ascii"
43 Content-Transfer-Encoding: 7bit
42 Content-Transfer-Encoding: 7bit
44 Subject: [PATCH] a
43 Subject: [PATCH] a
45 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
44 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
46 X-Mercurial-Series-Index: 1
45 X-Mercurial-Series-Index: 1
47 X-Mercurial-Series-Total: 1
46 X-Mercurial-Series-Total: 1
48 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
47 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
49 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
48 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
50 User-Agent: Mercurial-patchbomb/* (glob)
49 User-Agent: Mercurial-patchbomb/* (glob)
51 Date: Thu, 01 Jan 1970 00:01:00 +0000
50 Date: Thu, 01 Jan 1970 00:01:00 +0000
52 From: quux
51 From: quux
53 To: foo
52 To: foo
54 Cc: bar
53 Cc: bar
55
54
56 # HG changeset patch
55 # HG changeset patch
57 # User test
56 # User test
58 # Date 1 0
57 # Date 1 0
59 # Thu Jan 01 00:00:01 1970 +0000
58 # Thu Jan 01 00:00:01 1970 +0000
60 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
59 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
61 # Parent 0000000000000000000000000000000000000000
60 # Parent 0000000000000000000000000000000000000000
62 a
61 a
63
62
64 diff -r 000000000000 -r 8580ff50825a a
63 diff -r 000000000000 -r 8580ff50825a a
65 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
64 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
66 +++ b/a Thu Jan 01 00:00:01 1970 +0000
65 +++ b/a Thu Jan 01 00:00:01 1970 +0000
67 @@ -0,0 +1,1 @@
66 @@ -0,0 +1,1 @@
68 +a
67 +a
69
68
70
69
71 If --to is specified on the command line, it should override any
70 If --to is specified on the command line, it should override any
72 email.to config setting. Same for --cc:
71 email.to config setting. Same for --cc:
73
72
74 $ hg email --date '1970-1-1 0:1' -n -f quux --to foo --cc bar -r tip \
73 $ hg email --date '1970-1-1 0:1' -n -f quux --to foo --cc bar -r tip \
75 > --config email.to=bob@example.com --config email.cc=alice@example.com
74 > --config email.to=bob@example.com --config email.cc=alice@example.com
76 this patch series consists of 1 patches.
75 this patch series consists of 1 patches.
77
76
78
77
79 displaying [PATCH] a ...
78 displaying [PATCH] a ...
80 MIME-Version: 1.0
79 MIME-Version: 1.0
81 Content-Type: text/plain; charset="us-ascii"
80 Content-Type: text/plain; charset="us-ascii"
82 Content-Transfer-Encoding: 7bit
81 Content-Transfer-Encoding: 7bit
83 Subject: [PATCH] a
82 Subject: [PATCH] a
84 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
83 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
85 X-Mercurial-Series-Index: 1
84 X-Mercurial-Series-Index: 1
86 X-Mercurial-Series-Total: 1
85 X-Mercurial-Series-Total: 1
87 Message-Id: <*@*> (glob)
86 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
88 X-Mercurial-Series-Id: <*@*> (glob)
87 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
89 User-Agent: Mercurial-patchbomb/* (glob)
88 User-Agent: Mercurial-patchbomb/* (glob)
90 Date: Thu, 01 Jan 1970 00:01:00 +0000
89 Date: Thu, 01 Jan 1970 00:01:00 +0000
91 From: quux
90 From: quux
92 To: foo
91 To: foo
93 Cc: bar
92 Cc: bar
94
93
95 # HG changeset patch
94 # HG changeset patch
96 # User test
95 # User test
97 # Date 1 0
96 # Date 1 0
98 # Thu Jan 01 00:00:01 1970 +0000
97 # Thu Jan 01 00:00:01 1970 +0000
99 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
98 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
100 # Parent 0000000000000000000000000000000000000000
99 # Parent 0000000000000000000000000000000000000000
101 a
100 a
102
101
103 diff -r 000000000000 -r 8580ff50825a a
102 diff -r 000000000000 -r 8580ff50825a a
104 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
103 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
105 +++ b/a Thu Jan 01 00:00:01 1970 +0000
104 +++ b/a Thu Jan 01 00:00:01 1970 +0000
106 @@ -0,0 +1,1 @@
105 @@ -0,0 +1,1 @@
107 +a
106 +a
108
107
109
108
110 $ hg --config ui.interactive=1 email --confirm -n -f quux -t foo -c bar -r tip<<EOF
109 $ hg --config ui.interactive=1 email --confirm -n -f quux -t foo -c bar -r tip<<EOF
111 > n
110 > n
112 > EOF
111 > EOF
113 this patch series consists of 1 patches.
112 this patch series consists of 1 patches.
114
113
115
114
116 Final summary:
115 Final summary:
117
116
118 From: quux
117 From: quux
119 To: foo
118 To: foo
120 Cc: bar
119 Cc: bar
121 Subject: [PATCH] a
120 Subject: [PATCH] a
122 a | 1 +
121 a | 1 +
123 1 files changed, 1 insertions(+), 0 deletions(-)
122 1 files changed, 1 insertions(+), 0 deletions(-)
124
123
125 are you sure you want to send (yn)? n
124 are you sure you want to send (yn)? n
126 abort: patchbomb canceled
125 abort: patchbomb canceled
127 [255]
126 [255]
128
127
129 $ hg --config ui.interactive=1 --config patchbomb.confirm=true email -n -f quux -t foo -c bar -r tip<<EOF
128 $ hg --config ui.interactive=1 --config patchbomb.confirm=true email -n -f quux -t foo -c bar -r tip<<EOF
130 > n
129 > n
131 > EOF
130 > EOF
132 this patch series consists of 1 patches.
131 this patch series consists of 1 patches.
133
132
134
133
135 Final summary:
134 Final summary:
136
135
137 From: quux
136 From: quux
138 To: foo
137 To: foo
139 Cc: bar
138 Cc: bar
140 Subject: [PATCH] a
139 Subject: [PATCH] a
141 a | 1 +
140 a | 1 +
142 1 files changed, 1 insertions(+), 0 deletions(-)
141 1 files changed, 1 insertions(+), 0 deletions(-)
143
142
144 are you sure you want to send (yn)? n
143 are you sure you want to send (yn)? n
145 abort: patchbomb canceled
144 abort: patchbomb canceled
146 [255]
145 [255]
147
146
148
147
149 Test diff.git is respected
148 Test diff.git is respected
150 $ hg --config diff.git=True email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
149 $ hg --config diff.git=True email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
151 this patch series consists of 1 patches.
150 this patch series consists of 1 patches.
152
151
153
152
154 displaying [PATCH] a ...
153 displaying [PATCH] a ...
155 MIME-Version: 1.0
154 MIME-Version: 1.0
156 Content-Type: text/plain; charset="us-ascii"
155 Content-Type: text/plain; charset="us-ascii"
157 Content-Transfer-Encoding: 7bit
156 Content-Transfer-Encoding: 7bit
158 Subject: [PATCH] a
157 Subject: [PATCH] a
159 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
158 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
160 X-Mercurial-Series-Index: 1
159 X-Mercurial-Series-Index: 1
161 X-Mercurial-Series-Total: 1
160 X-Mercurial-Series-Total: 1
162 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
161 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
163 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
162 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
164 User-Agent: Mercurial-patchbomb/* (glob)
163 User-Agent: Mercurial-patchbomb/* (glob)
165 Date: Thu, 01 Jan 1970 00:01:00 +0000
164 Date: Thu, 01 Jan 1970 00:01:00 +0000
166 From: quux
165 From: quux
167 To: foo
166 To: foo
168 Cc: bar
167 Cc: bar
169
168
170 # HG changeset patch
169 # HG changeset patch
171 # User test
170 # User test
172 # Date 1 0
171 # Date 1 0
173 # Thu Jan 01 00:00:01 1970 +0000
172 # Thu Jan 01 00:00:01 1970 +0000
174 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
173 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
175 # Parent 0000000000000000000000000000000000000000
174 # Parent 0000000000000000000000000000000000000000
176 a
175 a
177
176
178 diff --git a/a b/a
177 diff --git a/a b/a
179 new file mode 100644
178 new file mode 100644
180 --- /dev/null
179 --- /dev/null
181 +++ b/a
180 +++ b/a
182 @@ -0,0 +1,1 @@
181 @@ -0,0 +1,1 @@
183 +a
182 +a
184
183
185
184
186
185
187 Test breaking format changes aren't
186 Test breaking format changes aren't
188 $ hg --config diff.noprefix=True email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
187 $ hg --config diff.noprefix=True email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
189 this patch series consists of 1 patches.
188 this patch series consists of 1 patches.
190
189
191
190
192 displaying [PATCH] a ...
191 displaying [PATCH] a ...
193 MIME-Version: 1.0
192 MIME-Version: 1.0
194 Content-Type: text/plain; charset="us-ascii"
193 Content-Type: text/plain; charset="us-ascii"
195 Content-Transfer-Encoding: 7bit
194 Content-Transfer-Encoding: 7bit
196 Subject: [PATCH] a
195 Subject: [PATCH] a
197 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
196 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
198 X-Mercurial-Series-Index: 1
197 X-Mercurial-Series-Index: 1
199 X-Mercurial-Series-Total: 1
198 X-Mercurial-Series-Total: 1
200 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
199 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
201 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
200 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
202 User-Agent: Mercurial-patchbomb/* (glob)
201 User-Agent: Mercurial-patchbomb/* (glob)
203 Date: Thu, 01 Jan 1970 00:01:00 +0000
202 Date: Thu, 01 Jan 1970 00:01:00 +0000
204 From: quux
203 From: quux
205 To: foo
204 To: foo
206 Cc: bar
205 Cc: bar
207
206
208 # HG changeset patch
207 # HG changeset patch
209 # User test
208 # User test
210 # Date 1 0
209 # Date 1 0
211 # Thu Jan 01 00:00:01 1970 +0000
210 # Thu Jan 01 00:00:01 1970 +0000
212 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
211 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
213 # Parent 0000000000000000000000000000000000000000
212 # Parent 0000000000000000000000000000000000000000
214 a
213 a
215
214
216 diff -r 000000000000 -r 8580ff50825a a
215 diff -r 000000000000 -r 8580ff50825a a
217 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
216 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
218 +++ b/a Thu Jan 01 00:00:01 1970 +0000
217 +++ b/a Thu Jan 01 00:00:01 1970 +0000
219 @@ -0,0 +1,1 @@
218 @@ -0,0 +1,1 @@
220 +a
219 +a
221
220
222
221
223 $ echo b > b
222 $ echo b > b
224 $ hg commit -Amb -d '2 0'
223 $ hg commit -Amb -d '2 0'
225 adding b
224 adding b
226
225
227 $ hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test -r 0:tip
226 $ hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test -r 0:tip
228 this patch series consists of 2 patches.
227 this patch series consists of 2 patches.
229
228
230
229
231 Write the introductory message for the patch series.
230 Write the introductory message for the patch series.
232
231
233
232
234 displaying [PATCH 0 of 2] test ...
233 displaying [PATCH 0 of 2] test ...
235 MIME-Version: 1.0
234 MIME-Version: 1.0
236 Content-Type: text/plain; charset="us-ascii"
235 Content-Type: text/plain; charset="us-ascii"
237 Content-Transfer-Encoding: 7bit
236 Content-Transfer-Encoding: 7bit
238 Subject: [PATCH 0 of 2] test
237 Subject: [PATCH 0 of 2] test
239 Message-Id: <patchbomb.120@*> (glob)
238 Message-Id: <patchbomb.120@test-hostname>
240 User-Agent: Mercurial-patchbomb/* (glob)
239 User-Agent: Mercurial-patchbomb/* (glob)
241 Date: Thu, 01 Jan 1970 00:02:00 +0000
240 Date: Thu, 01 Jan 1970 00:02:00 +0000
242 From: quux
241 From: quux
243 To: foo
242 To: foo
244 Cc: bar
243 Cc: bar
245
244
246
245
247 displaying [PATCH 1 of 2] a ...
246 displaying [PATCH 1 of 2] a ...
248 MIME-Version: 1.0
247 MIME-Version: 1.0
249 Content-Type: text/plain; charset="us-ascii"
248 Content-Type: text/plain; charset="us-ascii"
250 Content-Transfer-Encoding: 7bit
249 Content-Transfer-Encoding: 7bit
251 Subject: [PATCH 1 of 2] a
250 Subject: [PATCH 1 of 2] a
252 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
251 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
253 X-Mercurial-Series-Index: 1
252 X-Mercurial-Series-Index: 1
254 X-Mercurial-Series-Total: 2
253 X-Mercurial-Series-Total: 2
255 Message-Id: <8580ff50825a50c8f716.121@*> (glob)
254 Message-Id: <8580ff50825a50c8f716.121@test-hostname>
256 X-Mercurial-Series-Id: <8580ff50825a50c8f716.121@*> (glob)
255 X-Mercurial-Series-Id: <8580ff50825a50c8f716.121@test-hostname>
257 In-Reply-To: <patchbomb.120@*> (glob)
256 In-Reply-To: <patchbomb.120@test-hostname>
258 References: <patchbomb.120@*> (glob)
257 References: <patchbomb.120@test-hostname>
259 User-Agent: Mercurial-patchbomb/* (glob)
258 User-Agent: Mercurial-patchbomb/* (glob)
260 Date: Thu, 01 Jan 1970 00:02:01 +0000
259 Date: Thu, 01 Jan 1970 00:02:01 +0000
261 From: quux
260 From: quux
262 To: foo
261 To: foo
263 Cc: bar
262 Cc: bar
264
263
265 # HG changeset patch
264 # HG changeset patch
266 # User test
265 # User test
267 # Date 1 0
266 # Date 1 0
268 # Thu Jan 01 00:00:01 1970 +0000
267 # Thu Jan 01 00:00:01 1970 +0000
269 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
268 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
270 # Parent 0000000000000000000000000000000000000000
269 # Parent 0000000000000000000000000000000000000000
271 a
270 a
272
271
273 diff -r 000000000000 -r 8580ff50825a a
272 diff -r 000000000000 -r 8580ff50825a a
274 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
273 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
275 +++ b/a Thu Jan 01 00:00:01 1970 +0000
274 +++ b/a Thu Jan 01 00:00:01 1970 +0000
276 @@ -0,0 +1,1 @@
275 @@ -0,0 +1,1 @@
277 +a
276 +a
278
277
279 displaying [PATCH 2 of 2] b ...
278 displaying [PATCH 2 of 2] b ...
280 MIME-Version: 1.0
279 MIME-Version: 1.0
281 Content-Type: text/plain; charset="us-ascii"
280 Content-Type: text/plain; charset="us-ascii"
282 Content-Transfer-Encoding: 7bit
281 Content-Transfer-Encoding: 7bit
283 Subject: [PATCH 2 of 2] b
282 Subject: [PATCH 2 of 2] b
284 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
283 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
285 X-Mercurial-Series-Index: 2
284 X-Mercurial-Series-Index: 2
286 X-Mercurial-Series-Total: 2
285 X-Mercurial-Series-Total: 2
287 Message-Id: <97d72e5f12c7e84f8506.122@*> (glob)
286 Message-Id: <97d72e5f12c7e84f8506.122@test-hostname>
288 X-Mercurial-Series-Id: <8580ff50825a50c8f716.121@*> (glob)
287 X-Mercurial-Series-Id: <8580ff50825a50c8f716.121@test-hostname>
289 In-Reply-To: <patchbomb.120@*> (glob)
288 In-Reply-To: <patchbomb.120@test-hostname>
290 References: <patchbomb.120@*> (glob)
289 References: <patchbomb.120@test-hostname>
291 User-Agent: Mercurial-patchbomb/* (glob)
290 User-Agent: Mercurial-patchbomb/* (glob)
292 Date: Thu, 01 Jan 1970 00:02:02 +0000
291 Date: Thu, 01 Jan 1970 00:02:02 +0000
293 From: quux
292 From: quux
294 To: foo
293 To: foo
295 Cc: bar
294 Cc: bar
296
295
297 # HG changeset patch
296 # HG changeset patch
298 # User test
297 # User test
299 # Date 2 0
298 # Date 2 0
300 # Thu Jan 01 00:00:02 1970 +0000
299 # Thu Jan 01 00:00:02 1970 +0000
301 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
300 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
302 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
301 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
303 b
302 b
304
303
305 diff -r 8580ff50825a -r 97d72e5f12c7 b
304 diff -r 8580ff50825a -r 97d72e5f12c7 b
306 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
305 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
307 +++ b/b Thu Jan 01 00:00:02 1970 +0000
306 +++ b/b Thu Jan 01 00:00:02 1970 +0000
308 @@ -0,0 +1,1 @@
307 @@ -0,0 +1,1 @@
309 +b
308 +b
310
309
311
310
312 .hg/last-email.txt
311 .hg/last-email.txt
313
312
314 $ cat > editor.sh << '__EOF__'
313 $ cat > editor.sh << '__EOF__'
315 > echo "a precious introductory message" > "$1"
314 > echo "a precious introductory message" > "$1"
316 > __EOF__
315 > __EOF__
317 $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg email -n -t foo -s test -r 0:tip > /dev/null
316 $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg email -n -t foo -s test -r 0:tip > /dev/null
318 $ cat .hg/last-email.txt
317 $ cat .hg/last-email.txt
319 a precious introductory message
318 a precious introductory message
320
319
321 $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip \
320 $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip \
322 > --config extensions.progress= --config progress.assume-tty=1 \
321 > --config extensions.progress= --config progress.assume-tty=1 \
323 > --config progress.delay=0 --config progress.refresh=0 \
322 > --config progress.delay=0 --config progress.refresh=0 \
324 > --config progress.width=60 \
323 > --config progress.width=60 \
325 > --config extensions.mocktime=$TESTDIR/mocktime.py
324 > --config extensions.mocktime=$TESTDIR/mocktime.py
326 this patch series consists of 2 patches.
325 this patch series consists of 2 patches.
327
326
328
327
329 Write the introductory message for the patch series.
328 Write the introductory message for the patch series.
330
329
331 \r (no-eol) (esc)
330 \r (no-eol) (esc)
332 sending [ ] 0/3\r (no-eol) (esc)
331 sending [ ] 0/3\r (no-eol) (esc)
333 \r (no-eol) (esc)
332 \r (no-eol) (esc)
334 \r (no-eol) (esc)
333 \r (no-eol) (esc)
335 sending [============> ] 1/3 01s\r (no-eol) (esc)
334 sending [============> ] 1/3 01s\r (no-eol) (esc)
336 \r (no-eol) (esc)
335 \r (no-eol) (esc)
337 \r (no-eol) (esc)
336 \r (no-eol) (esc)
338 sending [==========================> ] 2/3 01s\r (no-eol) (esc)
337 sending [==========================> ] 2/3 01s\r (no-eol) (esc)
339 \r (esc)
338 \r (esc)
340 sending [PATCH 0 of 2] test ...
339 sending [PATCH 0 of 2] test ...
341 sending [PATCH 1 of 2] a ...
340 sending [PATCH 1 of 2] a ...
342 sending [PATCH 2 of 2] b ...
341 sending [PATCH 2 of 2] b ...
343
342
344 $ cd ..
343 $ cd ..
345
344
346 $ hg clone -q t t2
345 $ hg clone -q t t2
347 $ cd t2
346 $ cd t2
348 $ echo c > c
347 $ echo c > c
349 $ hg commit -Amc -d '3 0'
348 $ hg commit -Amc -d '3 0'
350 adding c
349 adding c
351
350
352 $ cat > description <<EOF
351 $ cat > description <<EOF
353 > a multiline
352 > a multiline
354 >
353 >
355 > description
354 > description
356 > EOF
355 > EOF
357
356
358
357
359 test bundle and description:
358 test bundle and description:
360 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
359 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
361 > -c bar -s test -r tip -b --desc description | $FILTERBOUNDARY
360 > -c bar -s test -r tip -b --desc description | $FILTERBOUNDARY
362 searching for changes
361 searching for changes
363 1 changesets found
362 1 changesets found
364
363
365 displaying test ...
364 displaying test ...
366 Content-Type: multipart/mixed; boundary="===*==" (glob)
365 Content-Type: multipart/mixed; boundary="===*==" (glob)
367 MIME-Version: 1.0
366 MIME-Version: 1.0
368 Subject: test
367 Subject: test
369 Message-Id: <patchbomb.180@*> (glob)
368 Message-Id: <patchbomb.180@test-hostname>
370 User-Agent: Mercurial-patchbomb/* (glob)
369 User-Agent: Mercurial-patchbomb/* (glob)
371 Date: Thu, 01 Jan 1970 00:03:00 +0000
370 Date: Thu, 01 Jan 1970 00:03:00 +0000
372 From: quux
371 From: quux
373 To: foo
372 To: foo
374 Cc: bar
373 Cc: bar
375
374
376 --===*= (glob)
375 --===*= (glob)
377 MIME-Version: 1.0
376 MIME-Version: 1.0
378 Content-Type: text/plain; charset="us-ascii"
377 Content-Type: text/plain; charset="us-ascii"
379 Content-Transfer-Encoding: 7bit
378 Content-Transfer-Encoding: 7bit
380
379
381 a multiline
380 a multiline
382
381
383 description
382 description
384
383
385 --===*= (glob)
384 --===*= (glob)
386 Content-Type: application/x-mercurial-bundle
385 Content-Type: application/x-mercurial-bundle
387 MIME-Version: 1.0
386 MIME-Version: 1.0
388 Content-Disposition: attachment; filename="bundle.hg"
387 Content-Disposition: attachment; filename="bundle.hg"
389 Content-Transfer-Encoding: base64
388 Content-Transfer-Encoding: base64
390
389
391 SEcyMAAAAA5Db21wcmVzc2lvbj1CWkJaaDkxQVkmU1l91TAVAAAN////vFcSXL9/8H7R09C/578I
390 SEcyMAAAAA5Db21wcmVzc2lvbj1CWkJaaDkxQVkmU1l91TAVAAAN////vFcSXL9/8H7R09C/578I
392 Ak0E4pe4SIIIgQSgGEQOcLABGYYNKgJgmhpp6mmjIZMCZNMhpgBBpkaYJpo9QaZMg02iaY2lCImK
391 Ak0E4pe4SIIIgQSgGEQOcLABGYYNKgJgmhpp6mmjIZMCZNMhpgBBpkaYJpo9QaZMg02iaY2lCImK
393 emk02kmEAeoA0D01ANBoHqHqADTaj1NAAyZqA0Gg0KiYnqaepk0eoNDTCGj1A0eoyBoGjRkYBqAB
392 emk02kmEAeoA0D01ANBoHqHqADTaj1NAAyZqA0Gg0KiYnqaepk0eoNDTCGj1A0eoyBoGjRkYBqAB
394 poNMmhkBhENSP0knlYZbqyEIYxkFdpDUS6roBDMgAGhkAqd92kEcgyeMo2MM366gpLNHjfKrhJPN
393 poNMmhkBhENSP0knlYZbqyEIYxkFdpDUS6roBDMgAGhkAqd92kEcgyeMo2MM366gpLNHjfKrhJPN
395 vdBCHAEDsYzAvzkHKxy5KWBAmh5e1nFttGChpsxrgmutRG0YrsSLWEBH9h95cbZEKFeUKYykRXHa
394 vdBCHAEDsYzAvzkHKxy5KWBAmh5e1nFttGChpsxrgmutRG0YrsSLWEBH9h95cbZEKFeUKYykRXHa
396 Bkt2OSgELsqqnWKeMudBR+YSZCOSHrwPz7B/Gfou7/L6QV6S0IgclBCitBVHMxMFq/vGwp5WHezM
395 Bkt2OSgELsqqnWKeMudBR+YSZCOSHrwPz7B/Gfou7/L6QV6S0IgclBCitBVHMxMFq/vGwp5WHezM
397 JwhKTnH0OkMbmVjrAkQKR7VM2aNSXn+GzLOCzOQm0AJ1TLCpdSgnfFPcY7mGxAOyHXS1YEFVi5O9
396 JwhKTnH0OkMbmVjrAkQKR7VM2aNSXn+GzLOCzOQm0AJ1TLCpdSgnfFPcY7mGxAOyHXS1YEFVi5O9
398 I4EVBBd8VRgN4n1MAm8l6QQ+yB60hkeX/0ZZmKoQRINkEBxEDZU2HjIZMcwWRvZtbRIa5kgkGIb/
397 I4EVBBd8VRgN4n1MAm8l6QQ+yB60hkeX/0ZZmKoQRINkEBxEDZU2HjIZMcwWRvZtbRIa5kgkGIb/
399 SkImFwIkDtQxyX+LuSKcKEg+6pgKgA==
398 SkImFwIkDtQxyX+LuSKcKEg+6pgKgA==
400 --===============*==-- (glob)
399 --===============*==-- (glob)
401
400
402 with a specific bundle type
401 with a specific bundle type
403 (binary part must be different)
402 (binary part must be different)
404
403
405 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
404 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
406 > -c bar -s test -r tip -b --desc description \
405 > -c bar -s test -r tip -b --desc description \
407 > --config patchbomb.bundletype=gzip-v1 | $FILTERBOUNDARY
406 > --config patchbomb.bundletype=gzip-v1 | $FILTERBOUNDARY
408 searching for changes
407 searching for changes
409 1 changesets found
408 1 changesets found
410
409
411 displaying test ...
410 displaying test ...
412 Content-Type: multipart/mixed; boundary="===*==" (glob)
411 Content-Type: multipart/mixed; boundary="===*==" (glob)
413 MIME-Version: 1.0
412 MIME-Version: 1.0
414 Subject: test
413 Subject: test
415 Message-Id: <patchbomb.180@*> (glob)
414 Message-Id: <patchbomb.180@test-hostname>
416 User-Agent: Mercurial-patchbomb/* (glob)
415 User-Agent: Mercurial-patchbomb/* (glob)
417 Date: Thu, 01 Jan 1970 00:03:00 +0000
416 Date: Thu, 01 Jan 1970 00:03:00 +0000
418 From: quux
417 From: quux
419 To: foo
418 To: foo
420 Cc: bar
419 Cc: bar
421
420
422 --===*= (glob)
421 --===*= (glob)
423 MIME-Version: 1.0
422 MIME-Version: 1.0
424 Content-Type: text/plain; charset="us-ascii"
423 Content-Type: text/plain; charset="us-ascii"
425 Content-Transfer-Encoding: 7bit
424 Content-Transfer-Encoding: 7bit
426
425
427 a multiline
426 a multiline
428
427
429 description
428 description
430
429
431 --===*= (glob)
430 --===*= (glob)
432 Content-Type: application/x-mercurial-bundle
431 Content-Type: application/x-mercurial-bundle
433 MIME-Version: 1.0
432 MIME-Version: 1.0
434 Content-Disposition: attachment; filename="bundle.hg"
433 Content-Disposition: attachment; filename="bundle.hg"
435 Content-Transfer-Encoding: base64
434 Content-Transfer-Encoding: base64
436
435
437 SEcxMEdaeJxjYGBY8V9n/iLGbtFfJZuNk/euDCpWfrRy/vTrevFCx1/4t7J5LdeL0ix0Opx3kwEL
436 SEcxMEdaeJxjYGBY8V9n/iLGbtFfJZuNk/euDCpWfrRy/vTrevFCx1/4t7J5LdeL0ix0Opx3kwEL
438 wKYXKqUJwqnG5sYWSWmmJsaWlqYWaRaWJpaWiWamZpYWRgZGxolJiabmSQbmZqlcQMV6QGwCxGzG
437 wKYXKqUJwqnG5sYWSWmmJsaWlqYWaRaWJpaWiWamZpYWRgZGxolJiabmSQbmZqlcQMV6QGwCxGzG
439 CgZcySARUyA2A2LGZKiZ3Y+Lu786z4z4MWXmsrAZCsqrl1az5y21PMcjpbThzWeXGT+/nutbmvvz
438 CgZcySARUyA2A2LGZKiZ3Y+Lu786z4z4MWXmsrAZCsqrl1az5y21PMcjpbThzWeXGT+/nutbmvvz
440 zXYS3BoGxdrJDIYmlimJJiZpRokmqYYmaSYWFknmSSkmhqbmliamiZYWxuYmBhbJBgZcUBNZQe5K
439 zXYS3BoGxdrJDIYmlimJJiZpRokmqYYmaSYWFknmSSkmhqbmliamiZYWxuYmBhbJBgZcUBNZQe5K
441 Epm7xF/LT+RLx/a9juFTomaYO/Rgsx4rwBN+IMCUDLOKAQBrsmti
440 Epm7xF/LT+RLx/a9juFTomaYO/Rgsx4rwBN+IMCUDLOKAQBrsmti
442 (?)
441 (?)
443 --===============*==-- (glob)
442 --===============*==-- (glob)
444
443
445 utf-8 patch:
444 utf-8 patch:
446 $ $PYTHON -c 'fp = open("utf", "wb"); fp.write(b"h\xC3\xB6mma!\n"); fp.close();'
445 $ $PYTHON -c 'fp = open("utf", "wb"); fp.write(b"h\xC3\xB6mma!\n"); fp.close();'
447 $ hg commit -A -d '4 0' -m 'utf-8 content'
446 $ hg commit -A -d '4 0' -m 'utf-8 content'
448 adding description
447 adding description
449 adding utf
448 adding utf
450
449
451 no mime encoding for email --test:
450 no mime encoding for email --test:
452 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
451 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
453 this patch series consists of 1 patches.
452 this patch series consists of 1 patches.
454
453
455
454
456 displaying [PATCH] utf-8 content ...
455 displaying [PATCH] utf-8 content ...
457 MIME-Version: 1.0
456 MIME-Version: 1.0
458 Content-Type: text/plain; charset="iso-8859-1"
457 Content-Type: text/plain; charset="iso-8859-1"
459 Content-Transfer-Encoding: quoted-printable
458 Content-Transfer-Encoding: quoted-printable
460 Subject: [PATCH] utf-8 content
459 Subject: [PATCH] utf-8 content
461 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
460 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
462 X-Mercurial-Series-Index: 1
461 X-Mercurial-Series-Index: 1
463 X-Mercurial-Series-Total: 1
462 X-Mercurial-Series-Total: 1
464 Message-Id: <909a00e13e9d78b575ae.240@*> (glob)
463 Message-Id: <909a00e13e9d78b575ae.240@test-hostname>
465 X-Mercurial-Series-Id: <909a00e13e9d78b575ae.240@*> (glob)
464 X-Mercurial-Series-Id: <909a00e13e9d78b575ae.240@test-hostname>
466 User-Agent: Mercurial-patchbomb/* (glob)
465 User-Agent: Mercurial-patchbomb/* (glob)
467 Date: Thu, 01 Jan 1970 00:04:00 +0000
466 Date: Thu, 01 Jan 1970 00:04:00 +0000
468 From: quux
467 From: quux
469 To: foo
468 To: foo
470 Cc: bar
469 Cc: bar
471
470
472 # HG changeset patch
471 # HG changeset patch
473 # User test
472 # User test
474 # Date 4 0
473 # Date 4 0
475 # Thu Jan 01 00:00:04 1970 +0000
474 # Thu Jan 01 00:00:04 1970 +0000
476 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
475 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
477 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
476 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
478 utf-8 content
477 utf-8 content
479
478
480 diff -r ff2c9fa2018b -r 909a00e13e9d description
479 diff -r ff2c9fa2018b -r 909a00e13e9d description
481 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
480 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
482 +++ b/description Thu Jan 01 00:00:04 1970 +0000
481 +++ b/description Thu Jan 01 00:00:04 1970 +0000
483 @@ -0,0 +1,3 @@
482 @@ -0,0 +1,3 @@
484 +a multiline
483 +a multiline
485 +
484 +
486 +description
485 +description
487 diff -r ff2c9fa2018b -r 909a00e13e9d utf
486 diff -r ff2c9fa2018b -r 909a00e13e9d utf
488 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
487 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
489 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
488 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
490 @@ -0,0 +1,1 @@
489 @@ -0,0 +1,1 @@
491 +h=C3=B6mma!
490 +h=C3=B6mma!
492
491
493
492
494 mime encoded mbox (base64):
493 mime encoded mbox (base64):
495 $ hg email --date '1970-1-1 0:4' -f 'Q <quux>' -t foo -c bar -r tip -m mbox
494 $ hg email --date '1970-1-1 0:4' -f 'Q <quux>' -t foo -c bar -r tip -m mbox
496 this patch series consists of 1 patches.
495 this patch series consists of 1 patches.
497
496
498
497
499 sending [PATCH] utf-8 content ...
498 sending [PATCH] utf-8 content ...
500
499
501 $ cat mbox
500 $ cat mbox
502 From quux ... ... .. ..:..:.. .... (re)
501 From quux ... ... .. ..:..:.. .... (re)
503 MIME-Version: 1.0
502 MIME-Version: 1.0
504 Content-Type: text/plain; charset="utf-8"
503 Content-Type: text/plain; charset="utf-8"
505 Content-Transfer-Encoding: base64
504 Content-Transfer-Encoding: base64
506 Subject: [PATCH] utf-8 content
505 Subject: [PATCH] utf-8 content
507 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
506 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
508 X-Mercurial-Series-Index: 1
507 X-Mercurial-Series-Index: 1
509 X-Mercurial-Series-Total: 1
508 X-Mercurial-Series-Total: 1
510 Message-Id: <909a00e13e9d78b575ae.240@*> (glob)
509 Message-Id: <909a00e13e9d78b575ae.240@test-hostname>
511 X-Mercurial-Series-Id: <909a00e13e9d78b575ae.240@*> (glob)
510 X-Mercurial-Series-Id: <909a00e13e9d78b575ae.240@test-hostname>
512 User-Agent: Mercurial-patchbomb/* (glob)
511 User-Agent: Mercurial-patchbomb/* (glob)
513 Date: Thu, 01 Jan 1970 00:04:00 +0000
512 Date: Thu, 01 Jan 1970 00:04:00 +0000
514 From: Q <quux>
513 From: Q <quux>
515 To: foo
514 To: foo
516 Cc: bar
515 Cc: bar
517
516
518 IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojICAgICAgVGh1IEph
517 IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojICAgICAgVGh1IEph
519 biAwMSAwMDowMDowNCAxOTcwICswMDAwCiMgTm9kZSBJRCA5MDlhMDBlMTNlOWQ3OGI1NzVhZWVl
518 biAwMSAwMDowMDowNCAxOTcwICswMDAwCiMgTm9kZSBJRCA5MDlhMDBlMTNlOWQ3OGI1NzVhZWVl
520 MjNkZGRiYWRhNDZkNWExNDNmCiMgUGFyZW50ICBmZjJjOWZhMjAxOGIxNWZhNzRiMzMzNjNiZGE5
519 MjNkZGRiYWRhNDZkNWExNDNmCiMgUGFyZW50ICBmZjJjOWZhMjAxOGIxNWZhNzRiMzMzNjNiZGE5
521 NTI3MzIzZTJhOTlmCnV0Zi04IGNvbnRlbnQKCmRpZmYgLXIgZmYyYzlmYTIwMThiIC1yIDkwOWEw
520 NTI3MzIzZTJhOTlmCnV0Zi04IGNvbnRlbnQKCmRpZmYgLXIgZmYyYzlmYTIwMThiIC1yIDkwOWEw
522 MGUxM2U5ZCBkZXNjcmlwdGlvbgotLS0gL2Rldi9udWxsCVRodSBKYW4gMDEgMDA6MDA6MDAgMTk3
521 MGUxM2U5ZCBkZXNjcmlwdGlvbgotLS0gL2Rldi9udWxsCVRodSBKYW4gMDEgMDA6MDA6MDAgMTk3
523 MCArMDAwMAorKysgYi9kZXNjcmlwdGlvbglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
522 MCArMDAwMAorKysgYi9kZXNjcmlwdGlvbglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
524 QEAgLTAsMCArMSwzIEBACithIG11bHRpbGluZQorCitkZXNjcmlwdGlvbgpkaWZmIC1yIGZmMmM5
523 QEAgLTAsMCArMSwzIEBACithIG11bHRpbGluZQorCitkZXNjcmlwdGlvbgpkaWZmIC1yIGZmMmM5
525 ZmEyMDE4YiAtciA5MDlhMDBlMTNlOWQgdXRmCi0tLSAvZGV2L251bGwJVGh1IEphbiAwMSAwMDow
524 ZmEyMDE4YiAtciA5MDlhMDBlMTNlOWQgdXRmCi0tLSAvZGV2L251bGwJVGh1IEphbiAwMSAwMDow
526 MDowMCAxOTcwICswMDAwCisrKyBiL3V0ZglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
525 MDowMCAxOTcwICswMDAwCisrKyBiL3V0ZglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
527 QEAgLTAsMCArMSwxIEBACitow7ZtbWEhCg==
526 QEAgLTAsMCArMSwxIEBACitow7ZtbWEhCg==
528
527
529
528
530 >>> import base64
529 >>> import base64
531 >>> patch = base64.b64decode(open("mbox").read().split("\n\n")[1])
530 >>> patch = base64.b64decode(open("mbox").read().split("\n\n")[1])
532 >>> if not isinstance(patch, str):
531 >>> if not isinstance(patch, str):
533 ... import sys
532 ... import sys
534 ... sys.stdout.flush()
533 ... sys.stdout.flush()
535 ... junk = sys.stdout.buffer.write(patch + b"\n")
534 ... junk = sys.stdout.buffer.write(patch + b"\n")
536 ... else:
535 ... else:
537 ... print(patch)
536 ... print(patch)
538 # HG changeset patch
537 # HG changeset patch
539 # User test
538 # User test
540 # Date 4 0
539 # Date 4 0
541 # Thu Jan 01 00:00:04 1970 +0000
540 # Thu Jan 01 00:00:04 1970 +0000
542 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
541 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
543 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
542 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
544 utf-8 content
543 utf-8 content
545
544
546 diff -r ff2c9fa2018b -r 909a00e13e9d description
545 diff -r ff2c9fa2018b -r 909a00e13e9d description
547 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
546 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
548 +++ b/description Thu Jan 01 00:00:04 1970 +0000
547 +++ b/description Thu Jan 01 00:00:04 1970 +0000
549 @@ -0,0 +1,3 @@
548 @@ -0,0 +1,3 @@
550 +a multiline
549 +a multiline
551 +
550 +
552 +description
551 +description
553 diff -r ff2c9fa2018b -r 909a00e13e9d utf
552 diff -r ff2c9fa2018b -r 909a00e13e9d utf
554 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
553 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
555 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
554 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
556 @@ -0,0 +1,1 @@
555 @@ -0,0 +1,1 @@
557 +h\xc3\xb6mma! (esc)
556 +h\xc3\xb6mma! (esc)
558
557
559 $ rm mbox
558 $ rm mbox
560
559
561 mime encoded mbox (quoted-printable):
560 mime encoded mbox (quoted-printable):
562 $ $PYTHON -c 'fp = open("long", "wb"); fp.write(b"%s\nfoo\n\nbar\n" % (b"x" * 1024)); fp.close();'
561 $ $PYTHON -c 'fp = open("long", "wb"); fp.write(b"%s\nfoo\n\nbar\n" % (b"x" * 1024)); fp.close();'
563 $ hg commit -A -d '4 0' -m 'long line'
562 $ hg commit -A -d '4 0' -m 'long line'
564 adding long
563 adding long
565
564
566 no mime encoding for email --test:
565 no mime encoding for email --test:
567 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
566 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
568 this patch series consists of 1 patches.
567 this patch series consists of 1 patches.
569
568
570
569
571 displaying [PATCH] long line ...
570 displaying [PATCH] long line ...
572 MIME-Version: 1.0
571 MIME-Version: 1.0
573 Content-Type: text/plain; charset="us-ascii"
572 Content-Type: text/plain; charset="us-ascii"
574 Content-Transfer-Encoding: quoted-printable
573 Content-Transfer-Encoding: quoted-printable
575 Subject: [PATCH] long line
574 Subject: [PATCH] long line
576 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
575 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
577 X-Mercurial-Series-Index: 1
576 X-Mercurial-Series-Index: 1
578 X-Mercurial-Series-Total: 1
577 X-Mercurial-Series-Total: 1
579 Message-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
578 Message-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
580 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
579 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
581 User-Agent: Mercurial-patchbomb/* (glob)
580 User-Agent: Mercurial-patchbomb/* (glob)
582 Date: Thu, 01 Jan 1970 00:04:00 +0000
581 Date: Thu, 01 Jan 1970 00:04:00 +0000
583 From: quux
582 From: quux
584 To: foo
583 To: foo
585 Cc: bar
584 Cc: bar
586
585
587 # HG changeset patch
586 # HG changeset patch
588 # User test
587 # User test
589 # Date 4 0
588 # Date 4 0
590 # Thu Jan 01 00:00:04 1970 +0000
589 # Thu Jan 01 00:00:04 1970 +0000
591 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
590 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
592 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
591 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
593 long line
592 long line
594
593
595 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
594 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
596 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
595 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
597 +++ b/long Thu Jan 01 00:00:04 1970 +0000
596 +++ b/long Thu Jan 01 00:00:04 1970 +0000
598 @@ -0,0 +1,4 @@
597 @@ -0,0 +1,4 @@
599 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
598 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
600 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
599 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
601 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
600 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
602 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
601 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
603 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
602 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
604 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
603 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
605 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
604 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
606 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
605 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
607 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
606 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
608 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
607 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
609 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
608 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
610 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
609 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
611 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
610 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
612 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
611 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
613 +foo
612 +foo
614 +
613 +
615 +bar
614 +bar
616
615
617
616
618 mime encoded mbox (quoted-printable):
617 mime encoded mbox (quoted-printable):
619 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
618 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
620 this patch series consists of 1 patches.
619 this patch series consists of 1 patches.
621
620
622
621
623 sending [PATCH] long line ...
622 sending [PATCH] long line ...
624 $ cat mbox
623 $ cat mbox
625 From quux ... ... .. ..:..:.. .... (re)
624 From quux ... ... .. ..:..:.. .... (re)
626 MIME-Version: 1.0
625 MIME-Version: 1.0
627 Content-Type: text/plain; charset="us-ascii"
626 Content-Type: text/plain; charset="us-ascii"
628 Content-Transfer-Encoding: quoted-printable
627 Content-Transfer-Encoding: quoted-printable
629 Subject: [PATCH] long line
628 Subject: [PATCH] long line
630 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
629 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
631 X-Mercurial-Series-Index: 1
630 X-Mercurial-Series-Index: 1
632 X-Mercurial-Series-Total: 1
631 X-Mercurial-Series-Total: 1
633 Message-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
632 Message-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
634 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
633 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
635 User-Agent: Mercurial-patchbomb/* (glob)
634 User-Agent: Mercurial-patchbomb/* (glob)
636 Date: Thu, 01 Jan 1970 00:04:00 +0000
635 Date: Thu, 01 Jan 1970 00:04:00 +0000
637 From: quux
636 From: quux
638 To: foo
637 To: foo
639 Cc: bar
638 Cc: bar
640
639
641 # HG changeset patch
640 # HG changeset patch
642 # User test
641 # User test
643 # Date 4 0
642 # Date 4 0
644 # Thu Jan 01 00:00:04 1970 +0000
643 # Thu Jan 01 00:00:04 1970 +0000
645 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
644 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
646 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
645 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
647 long line
646 long line
648
647
649 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
648 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
650 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
649 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
651 +++ b/long Thu Jan 01 00:00:04 1970 +0000
650 +++ b/long Thu Jan 01 00:00:04 1970 +0000
652 @@ -0,0 +1,4 @@
651 @@ -0,0 +1,4 @@
653 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
652 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
654 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
653 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
655 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
654 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
656 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
655 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
657 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
656 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
658 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
657 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
659 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
658 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
660 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
659 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
661 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
660 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
662 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
661 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
663 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
662 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
664 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
663 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
665 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
664 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
666 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
665 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
667 +foo
666 +foo
668 +
667 +
669 +bar
668 +bar
670
669
671
670
672
671
673 $ rm mbox
672 $ rm mbox
674
673
675 iso-8859-1 patch:
674 iso-8859-1 patch:
676 $ $PYTHON -c 'fp = open("isolatin", "wb"); fp.write(b"h\xF6mma!\n"); fp.close();'
675 $ $PYTHON -c 'fp = open("isolatin", "wb"); fp.write(b"h\xF6mma!\n"); fp.close();'
677 $ hg commit -A -d '5 0' -m 'isolatin 8-bit encoding'
676 $ hg commit -A -d '5 0' -m 'isolatin 8-bit encoding'
678 adding isolatin
677 adding isolatin
679
678
680 iso-8859-1 mbox:
679 iso-8859-1 mbox:
681 $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
680 $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
682 this patch series consists of 1 patches.
681 this patch series consists of 1 patches.
683
682
684
683
685 sending [PATCH] isolatin 8-bit encoding ...
684 sending [PATCH] isolatin 8-bit encoding ...
686 $ cat mbox
685 $ cat mbox
687 From quux ... ... .. ..:..:.. .... (re)
686 From quux ... ... .. ..:..:.. .... (re)
688 MIME-Version: 1.0
687 MIME-Version: 1.0
689 Content-Type: text/plain; charset="iso-8859-1"
688 Content-Type: text/plain; charset="iso-8859-1"
690 Content-Transfer-Encoding: quoted-printable
689 Content-Transfer-Encoding: quoted-printable
691 Subject: [PATCH] isolatin 8-bit encoding
690 Subject: [PATCH] isolatin 8-bit encoding
692 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
691 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
693 X-Mercurial-Series-Index: 1
692 X-Mercurial-Series-Index: 1
694 X-Mercurial-Series-Total: 1
693 X-Mercurial-Series-Total: 1
695 Message-Id: <240fb913fc1b7ff15ddb.300@*> (glob)
694 Message-Id: <240fb913fc1b7ff15ddb.300@test-hostname>
696 X-Mercurial-Series-Id: <240fb913fc1b7ff15ddb.300@*> (glob)
695 X-Mercurial-Series-Id: <240fb913fc1b7ff15ddb.300@test-hostname>
697 User-Agent: Mercurial-patchbomb/* (glob)
696 User-Agent: Mercurial-patchbomb/* (glob)
698 Date: Thu, 01 Jan 1970 00:05:00 +0000
697 Date: Thu, 01 Jan 1970 00:05:00 +0000
699 From: quux
698 From: quux
700 To: foo
699 To: foo
701 Cc: bar
700 Cc: bar
702
701
703 # HG changeset patch
702 # HG changeset patch
704 # User test
703 # User test
705 # Date 5 0
704 # Date 5 0
706 # Thu Jan 01 00:00:05 1970 +0000
705 # Thu Jan 01 00:00:05 1970 +0000
707 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
706 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
708 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
707 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
709 isolatin 8-bit encoding
708 isolatin 8-bit encoding
710
709
711 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
710 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
712 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
711 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
713 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
712 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
714 @@ -0,0 +1,1 @@
713 @@ -0,0 +1,1 @@
715 +h=F6mma!
714 +h=F6mma!
716
715
717
716
718
717
719 test diffstat for single patch:
718 test diffstat for single patch:
720 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2
719 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2
721 this patch series consists of 1 patches.
720 this patch series consists of 1 patches.
722
721
723
722
724 Final summary:
723 Final summary:
725
724
726 From: quux
725 From: quux
727 To: foo
726 To: foo
728 Cc: bar
727 Cc: bar
729 Subject: [PATCH] test
728 Subject: [PATCH] test
730 c | 1 +
729 c | 1 +
731 1 files changed, 1 insertions(+), 0 deletions(-)
730 1 files changed, 1 insertions(+), 0 deletions(-)
732
731
733 are you sure you want to send (yn)? y
732 are you sure you want to send (yn)? y
734
733
735 displaying [PATCH] test ...
734 displaying [PATCH] test ...
736 MIME-Version: 1.0
735 MIME-Version: 1.0
737 Content-Type: text/plain; charset="us-ascii"
736 Content-Type: text/plain; charset="us-ascii"
738 Content-Transfer-Encoding: 7bit
737 Content-Transfer-Encoding: 7bit
739 Subject: [PATCH] test
738 Subject: [PATCH] test
740 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
739 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
741 X-Mercurial-Series-Index: 1
740 X-Mercurial-Series-Index: 1
742 X-Mercurial-Series-Total: 1
741 X-Mercurial-Series-Total: 1
743 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
742 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
744 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
743 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
745 User-Agent: Mercurial-patchbomb/* (glob)
744 User-Agent: Mercurial-patchbomb/* (glob)
746 Date: Thu, 01 Jan 1970 00:01:00 +0000
745 Date: Thu, 01 Jan 1970 00:01:00 +0000
747 From: quux
746 From: quux
748 To: foo
747 To: foo
749 Cc: bar
748 Cc: bar
750
749
751 c | 1 +
750 c | 1 +
752 1 files changed, 1 insertions(+), 0 deletions(-)
751 1 files changed, 1 insertions(+), 0 deletions(-)
753
752
754
753
755 # HG changeset patch
754 # HG changeset patch
756 # User test
755 # User test
757 # Date 3 0
756 # Date 3 0
758 # Thu Jan 01 00:00:03 1970 +0000
757 # Thu Jan 01 00:00:03 1970 +0000
759 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
758 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
760 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
759 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
761 c
760 c
762
761
763 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
762 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
764 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
763 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
765 +++ b/c Thu Jan 01 00:00:03 1970 +0000
764 +++ b/c Thu Jan 01 00:00:03 1970 +0000
766 @@ -0,0 +1,1 @@
765 @@ -0,0 +1,1 @@
767 +c
766 +c
768
767
769
768
770 test diffstat for multiple patches:
769 test diffstat for multiple patches:
771 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \
770 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \
772 > -r 0:1
771 > -r 0:1
773 this patch series consists of 2 patches.
772 this patch series consists of 2 patches.
774
773
775
774
776 Write the introductory message for the patch series.
775 Write the introductory message for the patch series.
777
776
778
777
779 Final summary:
778 Final summary:
780
779
781 From: quux
780 From: quux
782 To: foo
781 To: foo
783 Cc: bar
782 Cc: bar
784 Subject: [PATCH 0 of 2] test
783 Subject: [PATCH 0 of 2] test
785 a | 1 +
784 a | 1 +
786 b | 1 +
785 b | 1 +
787 2 files changed, 2 insertions(+), 0 deletions(-)
786 2 files changed, 2 insertions(+), 0 deletions(-)
788 Subject: [PATCH 1 of 2] a
787 Subject: [PATCH 1 of 2] a
789 a | 1 +
788 a | 1 +
790 1 files changed, 1 insertions(+), 0 deletions(-)
789 1 files changed, 1 insertions(+), 0 deletions(-)
791 Subject: [PATCH 2 of 2] b
790 Subject: [PATCH 2 of 2] b
792 b | 1 +
791 b | 1 +
793 1 files changed, 1 insertions(+), 0 deletions(-)
792 1 files changed, 1 insertions(+), 0 deletions(-)
794
793
795 are you sure you want to send (yn)? y
794 are you sure you want to send (yn)? y
796
795
797 displaying [PATCH 0 of 2] test ...
796 displaying [PATCH 0 of 2] test ...
798 MIME-Version: 1.0
797 MIME-Version: 1.0
799 Content-Type: text/plain; charset="us-ascii"
798 Content-Type: text/plain; charset="us-ascii"
800 Content-Transfer-Encoding: 7bit
799 Content-Transfer-Encoding: 7bit
801 Subject: [PATCH 0 of 2] test
800 Subject: [PATCH 0 of 2] test
802 Message-Id: <patchbomb.60@*> (glob)
801 Message-Id: <patchbomb.60@test-hostname>
803 User-Agent: Mercurial-patchbomb/* (glob)
802 User-Agent: Mercurial-patchbomb/* (glob)
804 Date: Thu, 01 Jan 1970 00:01:00 +0000
803 Date: Thu, 01 Jan 1970 00:01:00 +0000
805 From: quux
804 From: quux
806 To: foo
805 To: foo
807 Cc: bar
806 Cc: bar
808
807
809
808
810 a | 1 +
809 a | 1 +
811 b | 1 +
810 b | 1 +
812 2 files changed, 2 insertions(+), 0 deletions(-)
811 2 files changed, 2 insertions(+), 0 deletions(-)
813
812
814 displaying [PATCH 1 of 2] a ...
813 displaying [PATCH 1 of 2] a ...
815 MIME-Version: 1.0
814 MIME-Version: 1.0
816 Content-Type: text/plain; charset="us-ascii"
815 Content-Type: text/plain; charset="us-ascii"
817 Content-Transfer-Encoding: 7bit
816 Content-Transfer-Encoding: 7bit
818 Subject: [PATCH 1 of 2] a
817 Subject: [PATCH 1 of 2] a
819 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
818 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
820 X-Mercurial-Series-Index: 1
819 X-Mercurial-Series-Index: 1
821 X-Mercurial-Series-Total: 2
820 X-Mercurial-Series-Total: 2
822 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
821 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
823 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
822 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
824 In-Reply-To: <patchbomb.60@*> (glob)
823 In-Reply-To: <patchbomb.60@test-hostname>
825 References: <patchbomb.60@*> (glob)
824 References: <patchbomb.60@test-hostname>
826 User-Agent: Mercurial-patchbomb/* (glob)
825 User-Agent: Mercurial-patchbomb/* (glob)
827 Date: Thu, 01 Jan 1970 00:01:01 +0000
826 Date: Thu, 01 Jan 1970 00:01:01 +0000
828 From: quux
827 From: quux
829 To: foo
828 To: foo
830 Cc: bar
829 Cc: bar
831
830
832 a | 1 +
831 a | 1 +
833 1 files changed, 1 insertions(+), 0 deletions(-)
832 1 files changed, 1 insertions(+), 0 deletions(-)
834
833
835
834
836 # HG changeset patch
835 # HG changeset patch
837 # User test
836 # User test
838 # Date 1 0
837 # Date 1 0
839 # Thu Jan 01 00:00:01 1970 +0000
838 # Thu Jan 01 00:00:01 1970 +0000
840 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
839 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
841 # Parent 0000000000000000000000000000000000000000
840 # Parent 0000000000000000000000000000000000000000
842 a
841 a
843
842
844 diff -r 000000000000 -r 8580ff50825a a
843 diff -r 000000000000 -r 8580ff50825a a
845 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
844 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
846 +++ b/a Thu Jan 01 00:00:01 1970 +0000
845 +++ b/a Thu Jan 01 00:00:01 1970 +0000
847 @@ -0,0 +1,1 @@
846 @@ -0,0 +1,1 @@
848 +a
847 +a
849
848
850 displaying [PATCH 2 of 2] b ...
849 displaying [PATCH 2 of 2] b ...
851 MIME-Version: 1.0
850 MIME-Version: 1.0
852 Content-Type: text/plain; charset="us-ascii"
851 Content-Type: text/plain; charset="us-ascii"
853 Content-Transfer-Encoding: 7bit
852 Content-Transfer-Encoding: 7bit
854 Subject: [PATCH 2 of 2] b
853 Subject: [PATCH 2 of 2] b
855 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
854 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
856 X-Mercurial-Series-Index: 2
855 X-Mercurial-Series-Index: 2
857 X-Mercurial-Series-Total: 2
856 X-Mercurial-Series-Total: 2
858 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
857 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
859 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
858 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
860 In-Reply-To: <patchbomb.60@*> (glob)
859 In-Reply-To: <patchbomb.60@test-hostname>
861 References: <patchbomb.60@*> (glob)
860 References: <patchbomb.60@test-hostname>
862 User-Agent: Mercurial-patchbomb/* (glob)
861 User-Agent: Mercurial-patchbomb/* (glob)
863 Date: Thu, 01 Jan 1970 00:01:02 +0000
862 Date: Thu, 01 Jan 1970 00:01:02 +0000
864 From: quux
863 From: quux
865 To: foo
864 To: foo
866 Cc: bar
865 Cc: bar
867
866
868 b | 1 +
867 b | 1 +
869 1 files changed, 1 insertions(+), 0 deletions(-)
868 1 files changed, 1 insertions(+), 0 deletions(-)
870
869
871
870
872 # HG changeset patch
871 # HG changeset patch
873 # User test
872 # User test
874 # Date 2 0
873 # Date 2 0
875 # Thu Jan 01 00:00:02 1970 +0000
874 # Thu Jan 01 00:00:02 1970 +0000
876 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
875 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
877 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
876 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
878 b
877 b
879
878
880 diff -r 8580ff50825a -r 97d72e5f12c7 b
879 diff -r 8580ff50825a -r 97d72e5f12c7 b
881 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
880 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
882 +++ b/b Thu Jan 01 00:00:02 1970 +0000
881 +++ b/b Thu Jan 01 00:00:02 1970 +0000
883 @@ -0,0 +1,1 @@
882 @@ -0,0 +1,1 @@
884 +b
883 +b
885
884
886
885
887 test inline for single patch:
886 test inline for single patch:
888 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | $FILTERBOUNDARY
887 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | $FILTERBOUNDARY
889 this patch series consists of 1 patches.
888 this patch series consists of 1 patches.
890
889
891
890
892 displaying [PATCH] test ...
891 displaying [PATCH] test ...
893 Content-Type: multipart/mixed; boundary="===*==" (glob)
892 Content-Type: multipart/mixed; boundary="===*==" (glob)
894 MIME-Version: 1.0
893 MIME-Version: 1.0
895 Subject: [PATCH] test
894 Subject: [PATCH] test
896 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
895 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
897 X-Mercurial-Series-Index: 1
896 X-Mercurial-Series-Index: 1
898 X-Mercurial-Series-Total: 1
897 X-Mercurial-Series-Total: 1
899 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
898 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
900 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
899 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
901 User-Agent: Mercurial-patchbomb/* (glob)
900 User-Agent: Mercurial-patchbomb/* (glob)
902 Date: Thu, 01 Jan 1970 00:01:00 +0000
901 Date: Thu, 01 Jan 1970 00:01:00 +0000
903 From: quux
902 From: quux
904 To: foo
903 To: foo
905 Cc: bar
904 Cc: bar
906
905
907 --===*= (glob)
906 --===*= (glob)
908 MIME-Version: 1.0
907 MIME-Version: 1.0
909 Content-Type: text/x-patch; charset="us-ascii"
908 Content-Type: text/x-patch; charset="us-ascii"
910 Content-Transfer-Encoding: 7bit
909 Content-Transfer-Encoding: 7bit
911 Content-Disposition: inline; filename=t2.patch
910 Content-Disposition: inline; filename=t2.patch
912
911
913 # HG changeset patch
912 # HG changeset patch
914 # User test
913 # User test
915 # Date 3 0
914 # Date 3 0
916 # Thu Jan 01 00:00:03 1970 +0000
915 # Thu Jan 01 00:00:03 1970 +0000
917 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
916 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
918 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
917 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
919 c
918 c
920
919
921 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
920 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
922 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
921 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
923 +++ b/c Thu Jan 01 00:00:03 1970 +0000
922 +++ b/c Thu Jan 01 00:00:03 1970 +0000
924 @@ -0,0 +1,1 @@
923 @@ -0,0 +1,1 @@
925 +c
924 +c
926
925
927 --===*=-- (glob)
926 --===*=-- (glob)
928
927
929
928
930 test inline for single patch (quoted-printable):
929 test inline for single patch (quoted-printable):
931 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4 | $FILTERBOUNDARY
930 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4 | $FILTERBOUNDARY
932 this patch series consists of 1 patches.
931 this patch series consists of 1 patches.
933
932
934
933
935 displaying [PATCH] test ...
934 displaying [PATCH] test ...
936 Content-Type: multipart/mixed; boundary="===*==" (glob)
935 Content-Type: multipart/mixed; boundary="===*==" (glob)
937 MIME-Version: 1.0
936 MIME-Version: 1.0
938 Subject: [PATCH] test
937 Subject: [PATCH] test
939 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
938 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
940 X-Mercurial-Series-Index: 1
939 X-Mercurial-Series-Index: 1
941 X-Mercurial-Series-Total: 1
940 X-Mercurial-Series-Total: 1
942 Message-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
941 Message-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
943 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
942 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
944 User-Agent: Mercurial-patchbomb/* (glob)
943 User-Agent: Mercurial-patchbomb/* (glob)
945 Date: Thu, 01 Jan 1970 00:01:00 +0000
944 Date: Thu, 01 Jan 1970 00:01:00 +0000
946 From: quux
945 From: quux
947 To: foo
946 To: foo
948 Cc: bar
947 Cc: bar
949
948
950 --===*= (glob)
949 --===*= (glob)
951 MIME-Version: 1.0
950 MIME-Version: 1.0
952 Content-Type: text/x-patch; charset="us-ascii"
951 Content-Type: text/x-patch; charset="us-ascii"
953 Content-Transfer-Encoding: quoted-printable
952 Content-Transfer-Encoding: quoted-printable
954 Content-Disposition: inline; filename=t2.patch
953 Content-Disposition: inline; filename=t2.patch
955
954
956 # HG changeset patch
955 # HG changeset patch
957 # User test
956 # User test
958 # Date 4 0
957 # Date 4 0
959 # Thu Jan 01 00:00:04 1970 +0000
958 # Thu Jan 01 00:00:04 1970 +0000
960 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
959 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
961 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
960 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
962 long line
961 long line
963
962
964 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
963 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
965 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
964 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
966 +++ b/long Thu Jan 01 00:00:04 1970 +0000
965 +++ b/long Thu Jan 01 00:00:04 1970 +0000
967 @@ -0,0 +1,4 @@
966 @@ -0,0 +1,4 @@
968 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
967 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
969 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
968 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
970 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
969 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
971 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
970 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
972 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
971 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
973 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
972 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
974 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
973 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
975 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
974 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
976 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
975 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
977 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
976 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
978 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
977 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
979 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
978 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
980 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
979 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
981 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
980 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
982 +foo
981 +foo
983 +
982 +
984 +bar
983 +bar
985
984
986 --===*=-- (glob)
985 --===*=-- (glob)
987
986
988 test inline for multiple patches:
987 test inline for multiple patches:
989 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
988 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
990 > -r 0:1 -r 4 | $FILTERBOUNDARY
989 > -r 0:1 -r 4 | $FILTERBOUNDARY
991 this patch series consists of 3 patches.
990 this patch series consists of 3 patches.
992
991
993
992
994 Write the introductory message for the patch series.
993 Write the introductory message for the patch series.
995
994
996
995
997 displaying [PATCH 0 of 3] test ...
996 displaying [PATCH 0 of 3] test ...
998 MIME-Version: 1.0
997 MIME-Version: 1.0
999 Content-Type: text/plain; charset="us-ascii"
998 Content-Type: text/plain; charset="us-ascii"
1000 Content-Transfer-Encoding: 7bit
999 Content-Transfer-Encoding: 7bit
1001 Subject: [PATCH 0 of 3] test
1000 Subject: [PATCH 0 of 3] test
1002 Message-Id: <patchbomb.60@*> (glob)
1001 Message-Id: <patchbomb.60@test-hostname>
1003 User-Agent: Mercurial-patchbomb/* (glob)
1002 User-Agent: Mercurial-patchbomb/* (glob)
1004 Date: Thu, 01 Jan 1970 00:01:00 +0000
1003 Date: Thu, 01 Jan 1970 00:01:00 +0000
1005 From: quux
1004 From: quux
1006 To: foo
1005 To: foo
1007 Cc: bar
1006 Cc: bar
1008
1007
1009
1008
1010 displaying [PATCH 1 of 3] a ...
1009 displaying [PATCH 1 of 3] a ...
1011 Content-Type: multipart/mixed; boundary="===*==" (glob)
1010 Content-Type: multipart/mixed; boundary="===*==" (glob)
1012 MIME-Version: 1.0
1011 MIME-Version: 1.0
1013 Subject: [PATCH 1 of 3] a
1012 Subject: [PATCH 1 of 3] a
1014 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1013 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1015 X-Mercurial-Series-Index: 1
1014 X-Mercurial-Series-Index: 1
1016 X-Mercurial-Series-Total: 3
1015 X-Mercurial-Series-Total: 3
1017 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1016 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
1018 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1017 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1019 In-Reply-To: <patchbomb.60@*> (glob)
1018 In-Reply-To: <patchbomb.60@test-hostname>
1020 References: <patchbomb.60@*> (glob)
1019 References: <patchbomb.60@test-hostname>
1021 User-Agent: Mercurial-patchbomb/* (glob)
1020 User-Agent: Mercurial-patchbomb/* (glob)
1022 Date: Thu, 01 Jan 1970 00:01:01 +0000
1021 Date: Thu, 01 Jan 1970 00:01:01 +0000
1023 From: quux
1022 From: quux
1024 To: foo
1023 To: foo
1025 Cc: bar
1024 Cc: bar
1026
1025
1027 --===*= (glob)
1026 --===*= (glob)
1028 MIME-Version: 1.0
1027 MIME-Version: 1.0
1029 Content-Type: text/x-patch; charset="us-ascii"
1028 Content-Type: text/x-patch; charset="us-ascii"
1030 Content-Transfer-Encoding: 7bit
1029 Content-Transfer-Encoding: 7bit
1031 Content-Disposition: inline; filename=t2-1.patch
1030 Content-Disposition: inline; filename=t2-1.patch
1032
1031
1033 # HG changeset patch
1032 # HG changeset patch
1034 # User test
1033 # User test
1035 # Date 1 0
1034 # Date 1 0
1036 # Thu Jan 01 00:00:01 1970 +0000
1035 # Thu Jan 01 00:00:01 1970 +0000
1037 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1036 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1038 # Parent 0000000000000000000000000000000000000000
1037 # Parent 0000000000000000000000000000000000000000
1039 a
1038 a
1040
1039
1041 diff -r 000000000000 -r 8580ff50825a a
1040 diff -r 000000000000 -r 8580ff50825a a
1042 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1041 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1043 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1042 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1044 @@ -0,0 +1,1 @@
1043 @@ -0,0 +1,1 @@
1045 +a
1044 +a
1046
1045
1047 --===*=-- (glob)
1046 --===*=-- (glob)
1048 displaying [PATCH 2 of 3] b ...
1047 displaying [PATCH 2 of 3] b ...
1049 Content-Type: multipart/mixed; boundary="===*==" (glob)
1048 Content-Type: multipart/mixed; boundary="===*==" (glob)
1050 MIME-Version: 1.0
1049 MIME-Version: 1.0
1051 Subject: [PATCH 2 of 3] b
1050 Subject: [PATCH 2 of 3] b
1052 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1051 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1053 X-Mercurial-Series-Index: 2
1052 X-Mercurial-Series-Index: 2
1054 X-Mercurial-Series-Total: 3
1053 X-Mercurial-Series-Total: 3
1055 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1054 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
1056 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1055 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1057 In-Reply-To: <patchbomb.60@*> (glob)
1056 In-Reply-To: <patchbomb.60@test-hostname>
1058 References: <patchbomb.60@*> (glob)
1057 References: <patchbomb.60@test-hostname>
1059 User-Agent: Mercurial-patchbomb/* (glob)
1058 User-Agent: Mercurial-patchbomb/* (glob)
1060 Date: Thu, 01 Jan 1970 00:01:02 +0000
1059 Date: Thu, 01 Jan 1970 00:01:02 +0000
1061 From: quux
1060 From: quux
1062 To: foo
1061 To: foo
1063 Cc: bar
1062 Cc: bar
1064
1063
1065 --===*= (glob)
1064 --===*= (glob)
1066 MIME-Version: 1.0
1065 MIME-Version: 1.0
1067 Content-Type: text/x-patch; charset="us-ascii"
1066 Content-Type: text/x-patch; charset="us-ascii"
1068 Content-Transfer-Encoding: 7bit
1067 Content-Transfer-Encoding: 7bit
1069 Content-Disposition: inline; filename=t2-2.patch
1068 Content-Disposition: inline; filename=t2-2.patch
1070
1069
1071 # HG changeset patch
1070 # HG changeset patch
1072 # User test
1071 # User test
1073 # Date 2 0
1072 # Date 2 0
1074 # Thu Jan 01 00:00:02 1970 +0000
1073 # Thu Jan 01 00:00:02 1970 +0000
1075 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1074 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1076 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1075 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1077 b
1076 b
1078
1077
1079 diff -r 8580ff50825a -r 97d72e5f12c7 b
1078 diff -r 8580ff50825a -r 97d72e5f12c7 b
1080 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1079 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1081 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1080 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1082 @@ -0,0 +1,1 @@
1081 @@ -0,0 +1,1 @@
1083 +b
1082 +b
1084
1083
1085 --===*=-- (glob)
1084 --===*=-- (glob)
1086 displaying [PATCH 3 of 3] long line ...
1085 displaying [PATCH 3 of 3] long line ...
1087 Content-Type: multipart/mixed; boundary="===*==" (glob)
1086 Content-Type: multipart/mixed; boundary="===*==" (glob)
1088 MIME-Version: 1.0
1087 MIME-Version: 1.0
1089 Subject: [PATCH 3 of 3] long line
1088 Subject: [PATCH 3 of 3] long line
1090 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1089 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1091 X-Mercurial-Series-Index: 3
1090 X-Mercurial-Series-Index: 3
1092 X-Mercurial-Series-Total: 3
1091 X-Mercurial-Series-Total: 3
1093 Message-Id: <a2ea8fc83dd8b93cfd86.63@*> (glob)
1092 Message-Id: <a2ea8fc83dd8b93cfd86.63@test-hostname>
1094 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1093 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1095 In-Reply-To: <patchbomb.60@*> (glob)
1094 In-Reply-To: <patchbomb.60@test-hostname>
1096 References: <patchbomb.60@*> (glob)
1095 References: <patchbomb.60@test-hostname>
1097 User-Agent: Mercurial-patchbomb/* (glob)
1096 User-Agent: Mercurial-patchbomb/* (glob)
1098 Date: Thu, 01 Jan 1970 00:01:03 +0000
1097 Date: Thu, 01 Jan 1970 00:01:03 +0000
1099 From: quux
1098 From: quux
1100 To: foo
1099 To: foo
1101 Cc: bar
1100 Cc: bar
1102
1101
1103 --===*= (glob)
1102 --===*= (glob)
1104 MIME-Version: 1.0
1103 MIME-Version: 1.0
1105 Content-Type: text/x-patch; charset="us-ascii"
1104 Content-Type: text/x-patch; charset="us-ascii"
1106 Content-Transfer-Encoding: quoted-printable
1105 Content-Transfer-Encoding: quoted-printable
1107 Content-Disposition: inline; filename=t2-3.patch
1106 Content-Disposition: inline; filename=t2-3.patch
1108
1107
1109 # HG changeset patch
1108 # HG changeset patch
1110 # User test
1109 # User test
1111 # Date 4 0
1110 # Date 4 0
1112 # Thu Jan 01 00:00:04 1970 +0000
1111 # Thu Jan 01 00:00:04 1970 +0000
1113 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1112 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1114 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1113 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1115 long line
1114 long line
1116
1115
1117 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1116 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1118 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1117 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1119 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1118 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1120 @@ -0,0 +1,4 @@
1119 @@ -0,0 +1,4 @@
1121 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1120 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1122 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1121 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1123 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1122 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1124 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1123 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1125 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1124 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1126 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1125 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1127 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1126 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1128 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1127 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1129 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1128 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1130 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1129 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1131 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1130 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1132 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1131 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1133 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1132 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1134 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1133 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1135 +foo
1134 +foo
1136 +
1135 +
1137 +bar
1136 +bar
1138
1137
1139 --===*=-- (glob)
1138 --===*=-- (glob)
1140
1139
1141 test attach for single patch:
1140 test attach for single patch:
1142 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2 | $FILTERBOUNDARY
1141 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2 | $FILTERBOUNDARY
1143 this patch series consists of 1 patches.
1142 this patch series consists of 1 patches.
1144
1143
1145
1144
1146 displaying [PATCH] test ...
1145 displaying [PATCH] test ...
1147 Content-Type: multipart/mixed; boundary="===*==" (glob)
1146 Content-Type: multipart/mixed; boundary="===*==" (glob)
1148 MIME-Version: 1.0
1147 MIME-Version: 1.0
1149 Subject: [PATCH] test
1148 Subject: [PATCH] test
1150 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1149 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1151 X-Mercurial-Series-Index: 1
1150 X-Mercurial-Series-Index: 1
1152 X-Mercurial-Series-Total: 1
1151 X-Mercurial-Series-Total: 1
1153 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1152 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1154 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1153 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1155 User-Agent: Mercurial-patchbomb/* (glob)
1154 User-Agent: Mercurial-patchbomb/* (glob)
1156 Date: Thu, 01 Jan 1970 00:01:00 +0000
1155 Date: Thu, 01 Jan 1970 00:01:00 +0000
1157 From: quux
1156 From: quux
1158 To: foo
1157 To: foo
1159 Cc: bar
1158 Cc: bar
1160
1159
1161 --===*= (glob)
1160 --===*= (glob)
1162 MIME-Version: 1.0
1161 MIME-Version: 1.0
1163 Content-Type: text/plain; charset="us-ascii"
1162 Content-Type: text/plain; charset="us-ascii"
1164 Content-Transfer-Encoding: 7bit
1163 Content-Transfer-Encoding: 7bit
1165
1164
1166 Patch subject is complete summary.
1165 Patch subject is complete summary.
1167
1166
1168
1167
1169
1168
1170 --===*= (glob)
1169 --===*= (glob)
1171 MIME-Version: 1.0
1170 MIME-Version: 1.0
1172 Content-Type: text/x-patch; charset="us-ascii"
1171 Content-Type: text/x-patch; charset="us-ascii"
1173 Content-Transfer-Encoding: 7bit
1172 Content-Transfer-Encoding: 7bit
1174 Content-Disposition: attachment; filename=t2.patch
1173 Content-Disposition: attachment; filename=t2.patch
1175
1174
1176 # HG changeset patch
1175 # HG changeset patch
1177 # User test
1176 # User test
1178 # Date 3 0
1177 # Date 3 0
1179 # Thu Jan 01 00:00:03 1970 +0000
1178 # Thu Jan 01 00:00:03 1970 +0000
1180 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1179 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1181 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1180 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1182 c
1181 c
1183
1182
1184 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1183 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1185 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1184 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1186 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1185 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1187 @@ -0,0 +1,1 @@
1186 @@ -0,0 +1,1 @@
1188 +c
1187 +c
1189
1188
1190 --===*=-- (glob)
1189 --===*=-- (glob)
1191
1190
1192 test attach for single patch (quoted-printable):
1191 test attach for single patch (quoted-printable):
1193 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4 | $FILTERBOUNDARY
1192 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4 | $FILTERBOUNDARY
1194 this patch series consists of 1 patches.
1193 this patch series consists of 1 patches.
1195
1194
1196
1195
1197 displaying [PATCH] test ...
1196 displaying [PATCH] test ...
1198 Content-Type: multipart/mixed; boundary="===*==" (glob)
1197 Content-Type: multipart/mixed; boundary="===*==" (glob)
1199 MIME-Version: 1.0
1198 MIME-Version: 1.0
1200 Subject: [PATCH] test
1199 Subject: [PATCH] test
1201 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1200 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1202 X-Mercurial-Series-Index: 1
1201 X-Mercurial-Series-Index: 1
1203 X-Mercurial-Series-Total: 1
1202 X-Mercurial-Series-Total: 1
1204 Message-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
1203 Message-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
1205 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
1204 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
1206 User-Agent: Mercurial-patchbomb/* (glob)
1205 User-Agent: Mercurial-patchbomb/* (glob)
1207 Date: Thu, 01 Jan 1970 00:01:00 +0000
1206 Date: Thu, 01 Jan 1970 00:01:00 +0000
1208 From: quux
1207 From: quux
1209 To: foo
1208 To: foo
1210 Cc: bar
1209 Cc: bar
1211
1210
1212 --===*= (glob)
1211 --===*= (glob)
1213 MIME-Version: 1.0
1212 MIME-Version: 1.0
1214 Content-Type: text/plain; charset="us-ascii"
1213 Content-Type: text/plain; charset="us-ascii"
1215 Content-Transfer-Encoding: 7bit
1214 Content-Transfer-Encoding: 7bit
1216
1215
1217 Patch subject is complete summary.
1216 Patch subject is complete summary.
1218
1217
1219
1218
1220
1219
1221 --===*= (glob)
1220 --===*= (glob)
1222 MIME-Version: 1.0
1221 MIME-Version: 1.0
1223 Content-Type: text/x-patch; charset="us-ascii"
1222 Content-Type: text/x-patch; charset="us-ascii"
1224 Content-Transfer-Encoding: quoted-printable
1223 Content-Transfer-Encoding: quoted-printable
1225 Content-Disposition: attachment; filename=t2.patch
1224 Content-Disposition: attachment; filename=t2.patch
1226
1225
1227 # HG changeset patch
1226 # HG changeset patch
1228 # User test
1227 # User test
1229 # Date 4 0
1228 # Date 4 0
1230 # Thu Jan 01 00:00:04 1970 +0000
1229 # Thu Jan 01 00:00:04 1970 +0000
1231 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1230 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1232 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1231 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1233 long line
1232 long line
1234
1233
1235 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1234 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1236 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1235 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1237 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1236 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1238 @@ -0,0 +1,4 @@
1237 @@ -0,0 +1,4 @@
1239 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1238 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1240 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1239 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1241 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1240 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1242 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1241 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1243 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1242 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1244 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1243 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1245 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1244 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1246 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1245 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1247 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1246 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1248 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1247 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1249 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1248 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1250 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1249 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1251 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1250 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1252 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1251 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1253 +foo
1252 +foo
1254 +
1253 +
1255 +bar
1254 +bar
1256
1255
1257 --===*=-- (glob)
1256 --===*=-- (glob)
1258
1257
1259 test attach and body for single patch:
1258 test attach and body for single patch:
1260 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a --body -r 2 | $FILTERBOUNDARY
1259 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a --body -r 2 | $FILTERBOUNDARY
1261 this patch series consists of 1 patches.
1260 this patch series consists of 1 patches.
1262
1261
1263
1262
1264 displaying [PATCH] test ...
1263 displaying [PATCH] test ...
1265 Content-Type: multipart/mixed; boundary="===*==" (glob)
1264 Content-Type: multipart/mixed; boundary="===*==" (glob)
1266 MIME-Version: 1.0
1265 MIME-Version: 1.0
1267 Subject: [PATCH] test
1266 Subject: [PATCH] test
1268 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1267 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1269 X-Mercurial-Series-Index: 1
1268 X-Mercurial-Series-Index: 1
1270 X-Mercurial-Series-Total: 1
1269 X-Mercurial-Series-Total: 1
1271 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1270 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1272 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1271 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1273 User-Agent: Mercurial-patchbomb/* (glob)
1272 User-Agent: Mercurial-patchbomb/* (glob)
1274 Date: Thu, 01 Jan 1970 00:01:00 +0000
1273 Date: Thu, 01 Jan 1970 00:01:00 +0000
1275 From: quux
1274 From: quux
1276 To: foo
1275 To: foo
1277 Cc: bar
1276 Cc: bar
1278
1277
1279 --===*= (glob)
1278 --===*= (glob)
1280 MIME-Version: 1.0
1279 MIME-Version: 1.0
1281 Content-Type: text/plain; charset="us-ascii"
1280 Content-Type: text/plain; charset="us-ascii"
1282 Content-Transfer-Encoding: 7bit
1281 Content-Transfer-Encoding: 7bit
1283
1282
1284 # HG changeset patch
1283 # HG changeset patch
1285 # User test
1284 # User test
1286 # Date 3 0
1285 # Date 3 0
1287 # Thu Jan 01 00:00:03 1970 +0000
1286 # Thu Jan 01 00:00:03 1970 +0000
1288 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1287 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1289 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1288 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1290 c
1289 c
1291
1290
1292 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1291 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1293 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1292 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1294 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1293 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1295 @@ -0,0 +1,1 @@
1294 @@ -0,0 +1,1 @@
1296 +c
1295 +c
1297
1296
1298 --===*= (glob)
1297 --===*= (glob)
1299 MIME-Version: 1.0
1298 MIME-Version: 1.0
1300 Content-Type: text/x-patch; charset="us-ascii"
1299 Content-Type: text/x-patch; charset="us-ascii"
1301 Content-Transfer-Encoding: 7bit
1300 Content-Transfer-Encoding: 7bit
1302 Content-Disposition: attachment; filename=t2.patch
1301 Content-Disposition: attachment; filename=t2.patch
1303
1302
1304 # HG changeset patch
1303 # HG changeset patch
1305 # User test
1304 # User test
1306 # Date 3 0
1305 # Date 3 0
1307 # Thu Jan 01 00:00:03 1970 +0000
1306 # Thu Jan 01 00:00:03 1970 +0000
1308 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1307 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1309 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1308 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1310 c
1309 c
1311
1310
1312 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1311 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1313 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1312 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1314 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1313 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1315 @@ -0,0 +1,1 @@
1314 @@ -0,0 +1,1 @@
1316 +c
1315 +c
1317
1316
1318 --===*=-- (glob)
1317 --===*=-- (glob)
1319
1318
1320 test attach for multiple patches:
1319 test attach for multiple patches:
1321 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
1320 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
1322 > -r 0:1 -r 4 | $FILTERBOUNDARY
1321 > -r 0:1 -r 4 | $FILTERBOUNDARY
1323 this patch series consists of 3 patches.
1322 this patch series consists of 3 patches.
1324
1323
1325
1324
1326 Write the introductory message for the patch series.
1325 Write the introductory message for the patch series.
1327
1326
1328
1327
1329 displaying [PATCH 0 of 3] test ...
1328 displaying [PATCH 0 of 3] test ...
1330 MIME-Version: 1.0
1329 MIME-Version: 1.0
1331 Content-Type: text/plain; charset="us-ascii"
1330 Content-Type: text/plain; charset="us-ascii"
1332 Content-Transfer-Encoding: 7bit
1331 Content-Transfer-Encoding: 7bit
1333 Subject: [PATCH 0 of 3] test
1332 Subject: [PATCH 0 of 3] test
1334 Message-Id: <patchbomb.60@*> (glob)
1333 Message-Id: <patchbomb.60@test-hostname>
1335 User-Agent: Mercurial-patchbomb/* (glob)
1334 User-Agent: Mercurial-patchbomb/* (glob)
1336 Date: Thu, 01 Jan 1970 00:01:00 +0000
1335 Date: Thu, 01 Jan 1970 00:01:00 +0000
1337 From: quux
1336 From: quux
1338 To: foo
1337 To: foo
1339 Cc: bar
1338 Cc: bar
1340
1339
1341
1340
1342 displaying [PATCH 1 of 3] a ...
1341 displaying [PATCH 1 of 3] a ...
1343 Content-Type: multipart/mixed; boundary="===*==" (glob)
1342 Content-Type: multipart/mixed; boundary="===*==" (glob)
1344 MIME-Version: 1.0
1343 MIME-Version: 1.0
1345 Subject: [PATCH 1 of 3] a
1344 Subject: [PATCH 1 of 3] a
1346 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1345 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1347 X-Mercurial-Series-Index: 1
1346 X-Mercurial-Series-Index: 1
1348 X-Mercurial-Series-Total: 3
1347 X-Mercurial-Series-Total: 3
1349 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1348 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
1350 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1349 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1351 In-Reply-To: <patchbomb.60@*> (glob)
1350 In-Reply-To: <patchbomb.60@test-hostname>
1352 References: <patchbomb.60@*> (glob)
1351 References: <patchbomb.60@test-hostname>
1353 User-Agent: Mercurial-patchbomb/* (glob)
1352 User-Agent: Mercurial-patchbomb/* (glob)
1354 Date: Thu, 01 Jan 1970 00:01:01 +0000
1353 Date: Thu, 01 Jan 1970 00:01:01 +0000
1355 From: quux
1354 From: quux
1356 To: foo
1355 To: foo
1357 Cc: bar
1356 Cc: bar
1358
1357
1359 --===*= (glob)
1358 --===*= (glob)
1360 MIME-Version: 1.0
1359 MIME-Version: 1.0
1361 Content-Type: text/plain; charset="us-ascii"
1360 Content-Type: text/plain; charset="us-ascii"
1362 Content-Transfer-Encoding: 7bit
1361 Content-Transfer-Encoding: 7bit
1363
1362
1364 Patch subject is complete summary.
1363 Patch subject is complete summary.
1365
1364
1366
1365
1367
1366
1368 --===*= (glob)
1367 --===*= (glob)
1369 MIME-Version: 1.0
1368 MIME-Version: 1.0
1370 Content-Type: text/x-patch; charset="us-ascii"
1369 Content-Type: text/x-patch; charset="us-ascii"
1371 Content-Transfer-Encoding: 7bit
1370 Content-Transfer-Encoding: 7bit
1372 Content-Disposition: attachment; filename=t2-1.patch
1371 Content-Disposition: attachment; filename=t2-1.patch
1373
1372
1374 # HG changeset patch
1373 # HG changeset patch
1375 # User test
1374 # User test
1376 # Date 1 0
1375 # Date 1 0
1377 # Thu Jan 01 00:00:01 1970 +0000
1376 # Thu Jan 01 00:00:01 1970 +0000
1378 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1377 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1379 # Parent 0000000000000000000000000000000000000000
1378 # Parent 0000000000000000000000000000000000000000
1380 a
1379 a
1381
1380
1382 diff -r 000000000000 -r 8580ff50825a a
1381 diff -r 000000000000 -r 8580ff50825a a
1383 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1382 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1384 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1383 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1385 @@ -0,0 +1,1 @@
1384 @@ -0,0 +1,1 @@
1386 +a
1385 +a
1387
1386
1388 --===*=-- (glob)
1387 --===*=-- (glob)
1389 displaying [PATCH 2 of 3] b ...
1388 displaying [PATCH 2 of 3] b ...
1390 Content-Type: multipart/mixed; boundary="===*==" (glob)
1389 Content-Type: multipart/mixed; boundary="===*==" (glob)
1391 MIME-Version: 1.0
1390 MIME-Version: 1.0
1392 Subject: [PATCH 2 of 3] b
1391 Subject: [PATCH 2 of 3] b
1393 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1392 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1394 X-Mercurial-Series-Index: 2
1393 X-Mercurial-Series-Index: 2
1395 X-Mercurial-Series-Total: 3
1394 X-Mercurial-Series-Total: 3
1396 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1395 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
1397 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1396 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1398 In-Reply-To: <patchbomb.60@*> (glob)
1397 In-Reply-To: <patchbomb.60@test-hostname>
1399 References: <patchbomb.60@*> (glob)
1398 References: <patchbomb.60@test-hostname>
1400 User-Agent: Mercurial-patchbomb/* (glob)
1399 User-Agent: Mercurial-patchbomb/* (glob)
1401 Date: Thu, 01 Jan 1970 00:01:02 +0000
1400 Date: Thu, 01 Jan 1970 00:01:02 +0000
1402 From: quux
1401 From: quux
1403 To: foo
1402 To: foo
1404 Cc: bar
1403 Cc: bar
1405
1404
1406 --===*= (glob)
1405 --===*= (glob)
1407 MIME-Version: 1.0
1406 MIME-Version: 1.0
1408 Content-Type: text/plain; charset="us-ascii"
1407 Content-Type: text/plain; charset="us-ascii"
1409 Content-Transfer-Encoding: 7bit
1408 Content-Transfer-Encoding: 7bit
1410
1409
1411 Patch subject is complete summary.
1410 Patch subject is complete summary.
1412
1411
1413
1412
1414
1413
1415 --===*= (glob)
1414 --===*= (glob)
1416 MIME-Version: 1.0
1415 MIME-Version: 1.0
1417 Content-Type: text/x-patch; charset="us-ascii"
1416 Content-Type: text/x-patch; charset="us-ascii"
1418 Content-Transfer-Encoding: 7bit
1417 Content-Transfer-Encoding: 7bit
1419 Content-Disposition: attachment; filename=t2-2.patch
1418 Content-Disposition: attachment; filename=t2-2.patch
1420
1419
1421 # HG changeset patch
1420 # HG changeset patch
1422 # User test
1421 # User test
1423 # Date 2 0
1422 # Date 2 0
1424 # Thu Jan 01 00:00:02 1970 +0000
1423 # Thu Jan 01 00:00:02 1970 +0000
1425 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1424 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1426 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1425 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1427 b
1426 b
1428
1427
1429 diff -r 8580ff50825a -r 97d72e5f12c7 b
1428 diff -r 8580ff50825a -r 97d72e5f12c7 b
1430 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1429 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1431 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1430 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1432 @@ -0,0 +1,1 @@
1431 @@ -0,0 +1,1 @@
1433 +b
1432 +b
1434
1433
1435 --===*=-- (glob)
1434 --===*=-- (glob)
1436 displaying [PATCH 3 of 3] long line ...
1435 displaying [PATCH 3 of 3] long line ...
1437 Content-Type: multipart/mixed; boundary="===*==" (glob)
1436 Content-Type: multipart/mixed; boundary="===*==" (glob)
1438 MIME-Version: 1.0
1437 MIME-Version: 1.0
1439 Subject: [PATCH 3 of 3] long line
1438 Subject: [PATCH 3 of 3] long line
1440 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1439 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1441 X-Mercurial-Series-Index: 3
1440 X-Mercurial-Series-Index: 3
1442 X-Mercurial-Series-Total: 3
1441 X-Mercurial-Series-Total: 3
1443 Message-Id: <a2ea8fc83dd8b93cfd86.63@*> (glob)
1442 Message-Id: <a2ea8fc83dd8b93cfd86.63@test-hostname>
1444 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1443 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1445 In-Reply-To: <patchbomb.60@*> (glob)
1444 In-Reply-To: <patchbomb.60@test-hostname>
1446 References: <patchbomb.60@*> (glob)
1445 References: <patchbomb.60@test-hostname>
1447 User-Agent: Mercurial-patchbomb/* (glob)
1446 User-Agent: Mercurial-patchbomb/* (glob)
1448 Date: Thu, 01 Jan 1970 00:01:03 +0000
1447 Date: Thu, 01 Jan 1970 00:01:03 +0000
1449 From: quux
1448 From: quux
1450 To: foo
1449 To: foo
1451 Cc: bar
1450 Cc: bar
1452
1451
1453 --===*= (glob)
1452 --===*= (glob)
1454 MIME-Version: 1.0
1453 MIME-Version: 1.0
1455 Content-Type: text/plain; charset="us-ascii"
1454 Content-Type: text/plain; charset="us-ascii"
1456 Content-Transfer-Encoding: 7bit
1455 Content-Transfer-Encoding: 7bit
1457
1456
1458 Patch subject is complete summary.
1457 Patch subject is complete summary.
1459
1458
1460
1459
1461
1460
1462 --===*= (glob)
1461 --===*= (glob)
1463 MIME-Version: 1.0
1462 MIME-Version: 1.0
1464 Content-Type: text/x-patch; charset="us-ascii"
1463 Content-Type: text/x-patch; charset="us-ascii"
1465 Content-Transfer-Encoding: quoted-printable
1464 Content-Transfer-Encoding: quoted-printable
1466 Content-Disposition: attachment; filename=t2-3.patch
1465 Content-Disposition: attachment; filename=t2-3.patch
1467
1466
1468 # HG changeset patch
1467 # HG changeset patch
1469 # User test
1468 # User test
1470 # Date 4 0
1469 # Date 4 0
1471 # Thu Jan 01 00:00:04 1970 +0000
1470 # Thu Jan 01 00:00:04 1970 +0000
1472 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1471 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1473 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1472 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1474 long line
1473 long line
1475
1474
1476 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1475 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1477 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1476 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1478 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1477 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1479 @@ -0,0 +1,4 @@
1478 @@ -0,0 +1,4 @@
1480 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1479 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1481 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1480 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1482 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1481 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1483 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1482 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1484 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1483 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1485 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1484 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1486 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1485 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1487 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1486 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1488 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1487 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1489 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1488 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1490 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1489 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1491 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1490 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1492 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1491 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1493 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1492 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1494 +foo
1493 +foo
1495 +
1494 +
1496 +bar
1495 +bar
1497
1496
1498 --===*=-- (glob)
1497 --===*=-- (glob)
1499
1498
1500 test intro for single patch:
1499 test intro for single patch:
1501 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1500 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1502 > -r 2
1501 > -r 2
1503 this patch series consists of 1 patches.
1502 this patch series consists of 1 patches.
1504
1503
1505
1504
1506 Write the introductory message for the patch series.
1505 Write the introductory message for the patch series.
1507
1506
1508
1507
1509 displaying [PATCH 0 of 1] test ...
1508 displaying [PATCH 0 of 1] test ...
1510 MIME-Version: 1.0
1509 MIME-Version: 1.0
1511 Content-Type: text/plain; charset="us-ascii"
1510 Content-Type: text/plain; charset="us-ascii"
1512 Content-Transfer-Encoding: 7bit
1511 Content-Transfer-Encoding: 7bit
1513 Subject: [PATCH 0 of 1] test
1512 Subject: [PATCH 0 of 1] test
1514 Message-Id: <patchbomb.60@*> (glob)
1513 Message-Id: <patchbomb.60@test-hostname>
1515 User-Agent: Mercurial-patchbomb/* (glob)
1514 User-Agent: Mercurial-patchbomb/* (glob)
1516 Date: Thu, 01 Jan 1970 00:01:00 +0000
1515 Date: Thu, 01 Jan 1970 00:01:00 +0000
1517 From: quux
1516 From: quux
1518 To: foo
1517 To: foo
1519 Cc: bar
1518 Cc: bar
1520
1519
1521
1520
1522 displaying [PATCH 1 of 1] c ...
1521 displaying [PATCH 1 of 1] c ...
1523 MIME-Version: 1.0
1522 MIME-Version: 1.0
1524 Content-Type: text/plain; charset="us-ascii"
1523 Content-Type: text/plain; charset="us-ascii"
1525 Content-Transfer-Encoding: 7bit
1524 Content-Transfer-Encoding: 7bit
1526 Subject: [PATCH 1 of 1] c
1525 Subject: [PATCH 1 of 1] c
1527 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1526 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1528 X-Mercurial-Series-Index: 1
1527 X-Mercurial-Series-Index: 1
1529 X-Mercurial-Series-Total: 1
1528 X-Mercurial-Series-Total: 1
1530 Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1529 Message-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
1531 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1530 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
1532 In-Reply-To: <patchbomb.60@*> (glob)
1531 In-Reply-To: <patchbomb.60@test-hostname>
1533 References: <patchbomb.60@*> (glob)
1532 References: <patchbomb.60@test-hostname>
1534 User-Agent: Mercurial-patchbomb/* (glob)
1533 User-Agent: Mercurial-patchbomb/* (glob)
1535 Date: Thu, 01 Jan 1970 00:01:01 +0000
1534 Date: Thu, 01 Jan 1970 00:01:01 +0000
1536 From: quux
1535 From: quux
1537 To: foo
1536 To: foo
1538 Cc: bar
1537 Cc: bar
1539
1538
1540 # HG changeset patch
1539 # HG changeset patch
1541 # User test
1540 # User test
1542 # Date 3 0
1541 # Date 3 0
1543 # Thu Jan 01 00:00:03 1970 +0000
1542 # Thu Jan 01 00:00:03 1970 +0000
1544 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1543 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1545 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1544 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1546 c
1545 c
1547
1546
1548 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1547 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1549 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1548 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1550 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1549 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1551 @@ -0,0 +1,1 @@
1550 @@ -0,0 +1,1 @@
1552 +c
1551 +c
1553
1552
1554
1553
1555 test --desc without --intro for a single patch:
1554 test --desc without --intro for a single patch:
1556 $ echo foo > intro.text
1555 $ echo foo > intro.text
1557 $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \
1556 $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \
1558 > -s test -r 2
1557 > -s test -r 2
1559 this patch series consists of 1 patches.
1558 this patch series consists of 1 patches.
1560
1559
1561
1560
1562 displaying [PATCH 0 of 1] test ...
1561 displaying [PATCH 0 of 1] test ...
1563 MIME-Version: 1.0
1562 MIME-Version: 1.0
1564 Content-Type: text/plain; charset="us-ascii"
1563 Content-Type: text/plain; charset="us-ascii"
1565 Content-Transfer-Encoding: 7bit
1564 Content-Transfer-Encoding: 7bit
1566 Subject: [PATCH 0 of 1] test
1565 Subject: [PATCH 0 of 1] test
1567 Message-Id: <patchbomb.60@*> (glob)
1566 Message-Id: <patchbomb.60@test-hostname>
1568 User-Agent: Mercurial-patchbomb/* (glob)
1567 User-Agent: Mercurial-patchbomb/* (glob)
1569 Date: Thu, 01 Jan 1970 00:01:00 +0000
1568 Date: Thu, 01 Jan 1970 00:01:00 +0000
1570 From: quux
1569 From: quux
1571 To: foo
1570 To: foo
1572 Cc: bar
1571 Cc: bar
1573
1572
1574 foo
1573 foo
1575
1574
1576 displaying [PATCH 1 of 1] c ...
1575 displaying [PATCH 1 of 1] c ...
1577 MIME-Version: 1.0
1576 MIME-Version: 1.0
1578 Content-Type: text/plain; charset="us-ascii"
1577 Content-Type: text/plain; charset="us-ascii"
1579 Content-Transfer-Encoding: 7bit
1578 Content-Transfer-Encoding: 7bit
1580 Subject: [PATCH 1 of 1] c
1579 Subject: [PATCH 1 of 1] c
1581 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1580 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1582 X-Mercurial-Series-Index: 1
1581 X-Mercurial-Series-Index: 1
1583 X-Mercurial-Series-Total: 1
1582 X-Mercurial-Series-Total: 1
1584 Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1583 Message-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
1585 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1584 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
1586 In-Reply-To: <patchbomb.60@*> (glob)
1585 In-Reply-To: <patchbomb.60@test-hostname>
1587 References: <patchbomb.60@*> (glob)
1586 References: <patchbomb.60@test-hostname>
1588 User-Agent: Mercurial-patchbomb/* (glob)
1587 User-Agent: Mercurial-patchbomb/* (glob)
1589 Date: Thu, 01 Jan 1970 00:01:01 +0000
1588 Date: Thu, 01 Jan 1970 00:01:01 +0000
1590 From: quux
1589 From: quux
1591 To: foo
1590 To: foo
1592 Cc: bar
1591 Cc: bar
1593
1592
1594 # HG changeset patch
1593 # HG changeset patch
1595 # User test
1594 # User test
1596 # Date 3 0
1595 # Date 3 0
1597 # Thu Jan 01 00:00:03 1970 +0000
1596 # Thu Jan 01 00:00:03 1970 +0000
1598 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1597 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1599 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1598 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1600 c
1599 c
1601
1600
1602 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1601 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1603 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1602 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1604 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1603 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1605 @@ -0,0 +1,1 @@
1604 @@ -0,0 +1,1 @@
1606 +c
1605 +c
1607
1606
1608
1607
1609 test intro for multiple patches:
1608 test intro for multiple patches:
1610 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1609 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1611 > -r 0:1
1610 > -r 0:1
1612 this patch series consists of 2 patches.
1611 this patch series consists of 2 patches.
1613
1612
1614
1613
1615 Write the introductory message for the patch series.
1614 Write the introductory message for the patch series.
1616
1615
1617
1616
1618 displaying [PATCH 0 of 2] test ...
1617 displaying [PATCH 0 of 2] test ...
1619 MIME-Version: 1.0
1618 MIME-Version: 1.0
1620 Content-Type: text/plain; charset="us-ascii"
1619 Content-Type: text/plain; charset="us-ascii"
1621 Content-Transfer-Encoding: 7bit
1620 Content-Transfer-Encoding: 7bit
1622 Subject: [PATCH 0 of 2] test
1621 Subject: [PATCH 0 of 2] test
1623 Message-Id: <patchbomb.60@*> (glob)
1622 Message-Id: <patchbomb.60@test-hostname>
1624 User-Agent: Mercurial-patchbomb/* (glob)
1623 User-Agent: Mercurial-patchbomb/* (glob)
1625 Date: Thu, 01 Jan 1970 00:01:00 +0000
1624 Date: Thu, 01 Jan 1970 00:01:00 +0000
1626 From: quux
1625 From: quux
1627 To: foo
1626 To: foo
1628 Cc: bar
1627 Cc: bar
1629
1628
1630
1629
1631 displaying [PATCH 1 of 2] a ...
1630 displaying [PATCH 1 of 2] a ...
1632 MIME-Version: 1.0
1631 MIME-Version: 1.0
1633 Content-Type: text/plain; charset="us-ascii"
1632 Content-Type: text/plain; charset="us-ascii"
1634 Content-Transfer-Encoding: 7bit
1633 Content-Transfer-Encoding: 7bit
1635 Subject: [PATCH 1 of 2] a
1634 Subject: [PATCH 1 of 2] a
1636 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1635 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1637 X-Mercurial-Series-Index: 1
1636 X-Mercurial-Series-Index: 1
1638 X-Mercurial-Series-Total: 2
1637 X-Mercurial-Series-Total: 2
1639 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1638 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
1640 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1639 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1641 In-Reply-To: <patchbomb.60@*> (glob)
1640 In-Reply-To: <patchbomb.60@test-hostname>
1642 References: <patchbomb.60@*> (glob)
1641 References: <patchbomb.60@test-hostname>
1643 User-Agent: Mercurial-patchbomb/* (glob)
1642 User-Agent: Mercurial-patchbomb/* (glob)
1644 Date: Thu, 01 Jan 1970 00:01:01 +0000
1643 Date: Thu, 01 Jan 1970 00:01:01 +0000
1645 From: quux
1644 From: quux
1646 To: foo
1645 To: foo
1647 Cc: bar
1646 Cc: bar
1648
1647
1649 # HG changeset patch
1648 # HG changeset patch
1650 # User test
1649 # User test
1651 # Date 1 0
1650 # Date 1 0
1652 # Thu Jan 01 00:00:01 1970 +0000
1651 # Thu Jan 01 00:00:01 1970 +0000
1653 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1652 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1654 # Parent 0000000000000000000000000000000000000000
1653 # Parent 0000000000000000000000000000000000000000
1655 a
1654 a
1656
1655
1657 diff -r 000000000000 -r 8580ff50825a a
1656 diff -r 000000000000 -r 8580ff50825a a
1658 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1657 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1659 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1658 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1660 @@ -0,0 +1,1 @@
1659 @@ -0,0 +1,1 @@
1661 +a
1660 +a
1662
1661
1663 displaying [PATCH 2 of 2] b ...
1662 displaying [PATCH 2 of 2] b ...
1664 MIME-Version: 1.0
1663 MIME-Version: 1.0
1665 Content-Type: text/plain; charset="us-ascii"
1664 Content-Type: text/plain; charset="us-ascii"
1666 Content-Transfer-Encoding: 7bit
1665 Content-Transfer-Encoding: 7bit
1667 Subject: [PATCH 2 of 2] b
1666 Subject: [PATCH 2 of 2] b
1668 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1667 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1669 X-Mercurial-Series-Index: 2
1668 X-Mercurial-Series-Index: 2
1670 X-Mercurial-Series-Total: 2
1669 X-Mercurial-Series-Total: 2
1671 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1670 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
1672 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1671 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1673 In-Reply-To: <patchbomb.60@*> (glob)
1672 In-Reply-To: <patchbomb.60@test-hostname>
1674 References: <patchbomb.60@*> (glob)
1673 References: <patchbomb.60@test-hostname>
1675 User-Agent: Mercurial-patchbomb/* (glob)
1674 User-Agent: Mercurial-patchbomb/* (glob)
1676 Date: Thu, 01 Jan 1970 00:01:02 +0000
1675 Date: Thu, 01 Jan 1970 00:01:02 +0000
1677 From: quux
1676 From: quux
1678 To: foo
1677 To: foo
1679 Cc: bar
1678 Cc: bar
1680
1679
1681 # HG changeset patch
1680 # HG changeset patch
1682 # User test
1681 # User test
1683 # Date 2 0
1682 # Date 2 0
1684 # Thu Jan 01 00:00:02 1970 +0000
1683 # Thu Jan 01 00:00:02 1970 +0000
1685 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1684 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1686 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1685 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1687 b
1686 b
1688
1687
1689 diff -r 8580ff50825a -r 97d72e5f12c7 b
1688 diff -r 8580ff50825a -r 97d72e5f12c7 b
1690 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1689 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1691 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1690 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1692 @@ -0,0 +1,1 @@
1691 @@ -0,0 +1,1 @@
1693 +b
1692 +b
1694
1693
1695
1694
1696 test reply-to via config:
1695 test reply-to via config:
1697 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1696 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1698 > --config patchbomb.reply-to='baz@example.com'
1697 > --config patchbomb.reply-to='baz@example.com'
1699 this patch series consists of 1 patches.
1698 this patch series consists of 1 patches.
1700
1699
1701
1700
1702 displaying [PATCH] test ...
1701 displaying [PATCH] test ...
1703 MIME-Version: 1.0
1702 MIME-Version: 1.0
1704 Content-Type: text/plain; charset="us-ascii"
1703 Content-Type: text/plain; charset="us-ascii"
1705 Content-Transfer-Encoding: 7bit
1704 Content-Transfer-Encoding: 7bit
1706 Subject: [PATCH] test
1705 Subject: [PATCH] test
1707 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1706 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1708 X-Mercurial-Series-Index: 1
1707 X-Mercurial-Series-Index: 1
1709 X-Mercurial-Series-Total: 1
1708 X-Mercurial-Series-Total: 1
1710 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1709 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1711 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1710 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1712 User-Agent: Mercurial-patchbomb/* (glob)
1711 User-Agent: Mercurial-patchbomb/* (glob)
1713 Date: Thu, 01 Jan 1970 00:01:00 +0000
1712 Date: Thu, 01 Jan 1970 00:01:00 +0000
1714 From: quux
1713 From: quux
1715 To: foo
1714 To: foo
1716 Cc: bar
1715 Cc: bar
1717 Reply-To: baz@example.com
1716 Reply-To: baz@example.com
1718
1717
1719 # HG changeset patch
1718 # HG changeset patch
1720 # User test
1719 # User test
1721 # Date 3 0
1720 # Date 3 0
1722 # Thu Jan 01 00:00:03 1970 +0000
1721 # Thu Jan 01 00:00:03 1970 +0000
1723 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1722 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1724 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1723 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1725 c
1724 c
1726
1725
1727 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1726 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1728 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1727 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1729 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1728 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1730 @@ -0,0 +1,1 @@
1729 @@ -0,0 +1,1 @@
1731 +c
1730 +c
1732
1731
1733
1732
1734 test reply-to via command line:
1733 test reply-to via command line:
1735 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1734 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1736 > --reply-to baz --reply-to fred
1735 > --reply-to baz --reply-to fred
1737 this patch series consists of 1 patches.
1736 this patch series consists of 1 patches.
1738
1737
1739
1738
1740 displaying [PATCH] test ...
1739 displaying [PATCH] test ...
1741 MIME-Version: 1.0
1740 MIME-Version: 1.0
1742 Content-Type: text/plain; charset="us-ascii"
1741 Content-Type: text/plain; charset="us-ascii"
1743 Content-Transfer-Encoding: 7bit
1742 Content-Transfer-Encoding: 7bit
1744 Subject: [PATCH] test
1743 Subject: [PATCH] test
1745 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1744 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1746 X-Mercurial-Series-Index: 1
1745 X-Mercurial-Series-Index: 1
1747 X-Mercurial-Series-Total: 1
1746 X-Mercurial-Series-Total: 1
1748 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1747 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1749 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1748 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1750 User-Agent: Mercurial-patchbomb/* (glob)
1749 User-Agent: Mercurial-patchbomb/* (glob)
1751 Date: Thu, 01 Jan 1970 00:01:00 +0000
1750 Date: Thu, 01 Jan 1970 00:01:00 +0000
1752 From: quux
1751 From: quux
1753 To: foo
1752 To: foo
1754 Cc: bar
1753 Cc: bar
1755 Reply-To: baz, fred
1754 Reply-To: baz, fred
1756
1755
1757 # HG changeset patch
1756 # HG changeset patch
1758 # User test
1757 # User test
1759 # Date 3 0
1758 # Date 3 0
1760 # Thu Jan 01 00:00:03 1970 +0000
1759 # Thu Jan 01 00:00:03 1970 +0000
1761 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1760 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1762 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1761 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1763 c
1762 c
1764
1763
1765 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1764 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1766 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1765 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1767 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1766 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1768 @@ -0,0 +1,1 @@
1767 @@ -0,0 +1,1 @@
1769 +c
1768 +c
1770
1769
1771
1770
1772 tagging csets:
1771 tagging csets:
1773 $ hg tag -r0 zero zero.foo
1772 $ hg tag -r0 zero zero.foo
1774 $ hg tag -r1 one one.patch
1773 $ hg tag -r1 one one.patch
1775 $ hg tag -r2 two two.diff
1774 $ hg tag -r2 two two.diff
1776
1775
1777 test inline for single named patch:
1776 test inline for single named patch:
1778 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
1777 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
1779 > -r 2 | $FILTERBOUNDARY
1778 > -r 2 | $FILTERBOUNDARY
1780 this patch series consists of 1 patches.
1779 this patch series consists of 1 patches.
1781
1780
1782
1781
1783 displaying [PATCH] test ...
1782 displaying [PATCH] test ...
1784 Content-Type: multipart/mixed; boundary="===*==" (glob)
1783 Content-Type: multipart/mixed; boundary="===*==" (glob)
1785 MIME-Version: 1.0
1784 MIME-Version: 1.0
1786 Subject: [PATCH] test
1785 Subject: [PATCH] test
1787 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1786 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1788 X-Mercurial-Series-Index: 1
1787 X-Mercurial-Series-Index: 1
1789 X-Mercurial-Series-Total: 1
1788 X-Mercurial-Series-Total: 1
1790 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1789 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1791 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1790 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1792 User-Agent: Mercurial-patchbomb/* (glob)
1791 User-Agent: Mercurial-patchbomb/* (glob)
1793 Date: Thu, 01 Jan 1970 00:01:00 +0000
1792 Date: Thu, 01 Jan 1970 00:01:00 +0000
1794 From: quux
1793 From: quux
1795 To: foo
1794 To: foo
1796 Cc: bar
1795 Cc: bar
1797
1796
1798 --===*= (glob)
1797 --===*= (glob)
1799 MIME-Version: 1.0
1798 MIME-Version: 1.0
1800 Content-Type: text/x-patch; charset="us-ascii"
1799 Content-Type: text/x-patch; charset="us-ascii"
1801 Content-Transfer-Encoding: 7bit
1800 Content-Transfer-Encoding: 7bit
1802 Content-Disposition: inline; filename=two.diff
1801 Content-Disposition: inline; filename=two.diff
1803
1802
1804 # HG changeset patch
1803 # HG changeset patch
1805 # User test
1804 # User test
1806 # Date 3 0
1805 # Date 3 0
1807 # Thu Jan 01 00:00:03 1970 +0000
1806 # Thu Jan 01 00:00:03 1970 +0000
1808 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1807 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1809 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1808 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1810 c
1809 c
1811
1810
1812 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1811 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1813 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1812 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1814 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1813 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1815 @@ -0,0 +1,1 @@
1814 @@ -0,0 +1,1 @@
1816 +c
1815 +c
1817
1816
1818 --===*=-- (glob)
1817 --===*=-- (glob)
1819
1818
1820 test inline for multiple named/unnamed patches:
1819 test inline for multiple named/unnamed patches:
1821 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
1820 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
1822 > -r 0:1 | $FILTERBOUNDARY
1821 > -r 0:1 | $FILTERBOUNDARY
1823 this patch series consists of 2 patches.
1822 this patch series consists of 2 patches.
1824
1823
1825
1824
1826 Write the introductory message for the patch series.
1825 Write the introductory message for the patch series.
1827
1826
1828
1827
1829 displaying [PATCH 0 of 2] test ...
1828 displaying [PATCH 0 of 2] test ...
1830 MIME-Version: 1.0
1829 MIME-Version: 1.0
1831 Content-Type: text/plain; charset="us-ascii"
1830 Content-Type: text/plain; charset="us-ascii"
1832 Content-Transfer-Encoding: 7bit
1831 Content-Transfer-Encoding: 7bit
1833 Subject: [PATCH 0 of 2] test
1832 Subject: [PATCH 0 of 2] test
1834 Message-Id: <patchbomb.60@*> (glob)
1833 Message-Id: <patchbomb.60@test-hostname>
1835 User-Agent: Mercurial-patchbomb/* (glob)
1834 User-Agent: Mercurial-patchbomb/* (glob)
1836 Date: Thu, 01 Jan 1970 00:01:00 +0000
1835 Date: Thu, 01 Jan 1970 00:01:00 +0000
1837 From: quux
1836 From: quux
1838 To: foo
1837 To: foo
1839 Cc: bar
1838 Cc: bar
1840
1839
1841
1840
1842 displaying [PATCH 1 of 2] a ...
1841 displaying [PATCH 1 of 2] a ...
1843 Content-Type: multipart/mixed; boundary="===*==" (glob)
1842 Content-Type: multipart/mixed; boundary="===*==" (glob)
1844 MIME-Version: 1.0
1843 MIME-Version: 1.0
1845 Subject: [PATCH 1 of 2] a
1844 Subject: [PATCH 1 of 2] a
1846 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1845 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1847 X-Mercurial-Series-Index: 1
1846 X-Mercurial-Series-Index: 1
1848 X-Mercurial-Series-Total: 2
1847 X-Mercurial-Series-Total: 2
1849 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1848 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
1850 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1849 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1851 In-Reply-To: <patchbomb.60@*> (glob)
1850 In-Reply-To: <patchbomb.60@test-hostname>
1852 References: <patchbomb.60@*> (glob)
1851 References: <patchbomb.60@test-hostname>
1853 User-Agent: Mercurial-patchbomb/* (glob)
1852 User-Agent: Mercurial-patchbomb/* (glob)
1854 Date: Thu, 01 Jan 1970 00:01:01 +0000
1853 Date: Thu, 01 Jan 1970 00:01:01 +0000
1855 From: quux
1854 From: quux
1856 To: foo
1855 To: foo
1857 Cc: bar
1856 Cc: bar
1858
1857
1859 --===*= (glob)
1858 --===*= (glob)
1860 MIME-Version: 1.0
1859 MIME-Version: 1.0
1861 Content-Type: text/x-patch; charset="us-ascii"
1860 Content-Type: text/x-patch; charset="us-ascii"
1862 Content-Transfer-Encoding: 7bit
1861 Content-Transfer-Encoding: 7bit
1863 Content-Disposition: inline; filename=t2-1.patch
1862 Content-Disposition: inline; filename=t2-1.patch
1864
1863
1865 # HG changeset patch
1864 # HG changeset patch
1866 # User test
1865 # User test
1867 # Date 1 0
1866 # Date 1 0
1868 # Thu Jan 01 00:00:01 1970 +0000
1867 # Thu Jan 01 00:00:01 1970 +0000
1869 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1868 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1870 # Parent 0000000000000000000000000000000000000000
1869 # Parent 0000000000000000000000000000000000000000
1871 a
1870 a
1872
1871
1873 diff -r 000000000000 -r 8580ff50825a a
1872 diff -r 000000000000 -r 8580ff50825a a
1874 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1873 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1875 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1874 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1876 @@ -0,0 +1,1 @@
1875 @@ -0,0 +1,1 @@
1877 +a
1876 +a
1878
1877
1879 --===*=-- (glob)
1878 --===*=-- (glob)
1880 displaying [PATCH 2 of 2] b ...
1879 displaying [PATCH 2 of 2] b ...
1881 Content-Type: multipart/mixed; boundary="===*==" (glob)
1880 Content-Type: multipart/mixed; boundary="===*==" (glob)
1882 MIME-Version: 1.0
1881 MIME-Version: 1.0
1883 Subject: [PATCH 2 of 2] b
1882 Subject: [PATCH 2 of 2] b
1884 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1883 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1885 X-Mercurial-Series-Index: 2
1884 X-Mercurial-Series-Index: 2
1886 X-Mercurial-Series-Total: 2
1885 X-Mercurial-Series-Total: 2
1887 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1886 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
1888 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
1887 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1889 In-Reply-To: <patchbomb.60@*> (glob)
1888 In-Reply-To: <patchbomb.60@test-hostname>
1890 References: <patchbomb.60@*> (glob)
1889 References: <patchbomb.60@test-hostname>
1891 User-Agent: Mercurial-patchbomb/* (glob)
1890 User-Agent: Mercurial-patchbomb/* (glob)
1892 Date: Thu, 01 Jan 1970 00:01:02 +0000
1891 Date: Thu, 01 Jan 1970 00:01:02 +0000
1893 From: quux
1892 From: quux
1894 To: foo
1893 To: foo
1895 Cc: bar
1894 Cc: bar
1896
1895
1897 --===*= (glob)
1896 --===*= (glob)
1898 MIME-Version: 1.0
1897 MIME-Version: 1.0
1899 Content-Type: text/x-patch; charset="us-ascii"
1898 Content-Type: text/x-patch; charset="us-ascii"
1900 Content-Transfer-Encoding: 7bit
1899 Content-Transfer-Encoding: 7bit
1901 Content-Disposition: inline; filename=one.patch
1900 Content-Disposition: inline; filename=one.patch
1902
1901
1903 # HG changeset patch
1902 # HG changeset patch
1904 # User test
1903 # User test
1905 # Date 2 0
1904 # Date 2 0
1906 # Thu Jan 01 00:00:02 1970 +0000
1905 # Thu Jan 01 00:00:02 1970 +0000
1907 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1906 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1908 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1907 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1909 b
1908 b
1910
1909
1911 diff -r 8580ff50825a -r 97d72e5f12c7 b
1910 diff -r 8580ff50825a -r 97d72e5f12c7 b
1912 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1911 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1913 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1912 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1914 @@ -0,0 +1,1 @@
1913 @@ -0,0 +1,1 @@
1915 +b
1914 +b
1916
1915
1917 --===*=-- (glob)
1916 --===*=-- (glob)
1918
1917
1919
1918
1920 test inreplyto:
1919 test inreplyto:
1921 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1920 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1922 > -r tip
1921 > -r tip
1923 this patch series consists of 1 patches.
1922 this patch series consists of 1 patches.
1924
1923
1925
1924
1926 displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
1925 displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
1927 MIME-Version: 1.0
1926 MIME-Version: 1.0
1928 Content-Type: text/plain; charset="us-ascii"
1927 Content-Type: text/plain; charset="us-ascii"
1929 Content-Transfer-Encoding: 7bit
1928 Content-Transfer-Encoding: 7bit
1930 Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
1929 Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
1931 X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
1930 X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
1932 X-Mercurial-Series-Index: 1
1931 X-Mercurial-Series-Index: 1
1933 X-Mercurial-Series-Total: 1
1932 X-Mercurial-Series-Total: 1
1934 Message-Id: <7aead2484924c445ad8c.60@*> (glob)
1933 Message-Id: <7aead2484924c445ad8c.60@test-hostname>
1935 X-Mercurial-Series-Id: <7aead2484924c445ad8c.60@*> (glob)
1934 X-Mercurial-Series-Id: <7aead2484924c445ad8c.60@test-hostname>
1936 In-Reply-To: <baz>
1935 In-Reply-To: <baz>
1937 References: <baz>
1936 References: <baz>
1938 User-Agent: Mercurial-patchbomb/* (glob)
1937 User-Agent: Mercurial-patchbomb/* (glob)
1939 Date: Thu, 01 Jan 1970 00:01:00 +0000
1938 Date: Thu, 01 Jan 1970 00:01:00 +0000
1940 From: quux
1939 From: quux
1941 To: foo
1940 To: foo
1942 Cc: bar
1941 Cc: bar
1943
1942
1944 # HG changeset patch
1943 # HG changeset patch
1945 # User test
1944 # User test
1946 # Date 0 0
1945 # Date 0 0
1947 # Thu Jan 01 00:00:00 1970 +0000
1946 # Thu Jan 01 00:00:00 1970 +0000
1948 # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
1947 # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
1949 # Parent 045ca29b1ea20e4940411e695e20e521f2f0f98e
1948 # Parent 045ca29b1ea20e4940411e695e20e521f2f0f98e
1950 Added tag two, two.diff for changeset ff2c9fa2018b
1949 Added tag two, two.diff for changeset ff2c9fa2018b
1951
1950
1952 diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
1951 diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
1953 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
1952 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
1954 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
1953 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
1955 @@ -2,3 +2,5 @@
1954 @@ -2,3 +2,5 @@
1956 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
1955 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
1957 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
1956 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
1958 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
1957 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
1959 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
1958 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
1960 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
1959 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
1961
1960
1962 no intro message in non-interactive mode
1961 no intro message in non-interactive mode
1963 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1962 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1964 > -r 0:1
1963 > -r 0:1
1965 this patch series consists of 2 patches.
1964 this patch series consists of 2 patches.
1966
1965
1967 (optional) Subject: [PATCH 0 of 2]
1966 (optional) Subject: [PATCH 0 of 2]
1968
1967
1969 displaying [PATCH 1 of 2] a ...
1968 displaying [PATCH 1 of 2] a ...
1970 MIME-Version: 1.0
1969 MIME-Version: 1.0
1971 Content-Type: text/plain; charset="us-ascii"
1970 Content-Type: text/plain; charset="us-ascii"
1972 Content-Transfer-Encoding: 7bit
1971 Content-Transfer-Encoding: 7bit
1973 Subject: [PATCH 1 of 2] a
1972 Subject: [PATCH 1 of 2] a
1974 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1973 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1975 X-Mercurial-Series-Index: 1
1974 X-Mercurial-Series-Index: 1
1976 X-Mercurial-Series-Total: 2
1975 X-Mercurial-Series-Total: 2
1977 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
1976 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
1978 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
1977 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
1979 In-Reply-To: <baz>
1978 In-Reply-To: <baz>
1980 References: <baz>
1979 References: <baz>
1981 User-Agent: Mercurial-patchbomb/* (glob)
1980 User-Agent: Mercurial-patchbomb/* (glob)
1982 Date: Thu, 01 Jan 1970 00:01:00 +0000
1981 Date: Thu, 01 Jan 1970 00:01:00 +0000
1983 From: quux
1982 From: quux
1984 To: foo
1983 To: foo
1985 Cc: bar
1984 Cc: bar
1986
1985
1987 # HG changeset patch
1986 # HG changeset patch
1988 # User test
1987 # User test
1989 # Date 1 0
1988 # Date 1 0
1990 # Thu Jan 01 00:00:01 1970 +0000
1989 # Thu Jan 01 00:00:01 1970 +0000
1991 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1990 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1992 # Parent 0000000000000000000000000000000000000000
1991 # Parent 0000000000000000000000000000000000000000
1993 a
1992 a
1994
1993
1995 diff -r 000000000000 -r 8580ff50825a a
1994 diff -r 000000000000 -r 8580ff50825a a
1996 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1995 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1997 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1996 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1998 @@ -0,0 +1,1 @@
1997 @@ -0,0 +1,1 @@
1999 +a
1998 +a
2000
1999
2001 displaying [PATCH 2 of 2] b ...
2000 displaying [PATCH 2 of 2] b ...
2002 MIME-Version: 1.0
2001 MIME-Version: 1.0
2003 Content-Type: text/plain; charset="us-ascii"
2002 Content-Type: text/plain; charset="us-ascii"
2004 Content-Transfer-Encoding: 7bit
2003 Content-Transfer-Encoding: 7bit
2005 Subject: [PATCH 2 of 2] b
2004 Subject: [PATCH 2 of 2] b
2006 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2005 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2007 X-Mercurial-Series-Index: 2
2006 X-Mercurial-Series-Index: 2
2008 X-Mercurial-Series-Total: 2
2007 X-Mercurial-Series-Total: 2
2009 Message-Id: <97d72e5f12c7e84f8506.61@*> (glob)
2008 Message-Id: <97d72e5f12c7e84f8506.61@test-hostname>
2010 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
2009 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
2011 In-Reply-To: <baz>
2010 In-Reply-To: <baz>
2012 References: <baz>
2011 References: <baz>
2013 User-Agent: Mercurial-patchbomb/* (glob)
2012 User-Agent: Mercurial-patchbomb/* (glob)
2014 Date: Thu, 01 Jan 1970 00:01:01 +0000
2013 Date: Thu, 01 Jan 1970 00:01:01 +0000
2015 From: quux
2014 From: quux
2016 To: foo
2015 To: foo
2017 Cc: bar
2016 Cc: bar
2018
2017
2019 # HG changeset patch
2018 # HG changeset patch
2020 # User test
2019 # User test
2021 # Date 2 0
2020 # Date 2 0
2022 # Thu Jan 01 00:00:02 1970 +0000
2021 # Thu Jan 01 00:00:02 1970 +0000
2023 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2022 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2024 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2023 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2025 b
2024 b
2026
2025
2027 diff -r 8580ff50825a -r 97d72e5f12c7 b
2026 diff -r 8580ff50825a -r 97d72e5f12c7 b
2028 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2027 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2029 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2028 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2030 @@ -0,0 +1,1 @@
2029 @@ -0,0 +1,1 @@
2031 +b
2030 +b
2032
2031
2033
2032
2034
2033
2035
2034
2036 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
2035 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
2037 > -s test -r 0:1
2036 > -s test -r 0:1
2038 this patch series consists of 2 patches.
2037 this patch series consists of 2 patches.
2039
2038
2040
2039
2041 Write the introductory message for the patch series.
2040 Write the introductory message for the patch series.
2042
2041
2043
2042
2044 displaying [PATCH 0 of 2] test ...
2043 displaying [PATCH 0 of 2] test ...
2045 MIME-Version: 1.0
2044 MIME-Version: 1.0
2046 Content-Type: text/plain; charset="us-ascii"
2045 Content-Type: text/plain; charset="us-ascii"
2047 Content-Transfer-Encoding: 7bit
2046 Content-Transfer-Encoding: 7bit
2048 Subject: [PATCH 0 of 2] test
2047 Subject: [PATCH 0 of 2] test
2049 Message-Id: <patchbomb.60@*> (glob)
2048 Message-Id: <patchbomb.60@test-hostname>
2050 In-Reply-To: <baz>
2049 In-Reply-To: <baz>
2051 References: <baz>
2050 References: <baz>
2052 User-Agent: Mercurial-patchbomb/* (glob)
2051 User-Agent: Mercurial-patchbomb/* (glob)
2053 Date: Thu, 01 Jan 1970 00:01:00 +0000
2052 Date: Thu, 01 Jan 1970 00:01:00 +0000
2054 From: quux
2053 From: quux
2055 To: foo
2054 To: foo
2056 Cc: bar
2055 Cc: bar
2057
2056
2058
2057
2059 displaying [PATCH 1 of 2] a ...
2058 displaying [PATCH 1 of 2] a ...
2060 MIME-Version: 1.0
2059 MIME-Version: 1.0
2061 Content-Type: text/plain; charset="us-ascii"
2060 Content-Type: text/plain; charset="us-ascii"
2062 Content-Transfer-Encoding: 7bit
2061 Content-Transfer-Encoding: 7bit
2063 Subject: [PATCH 1 of 2] a
2062 Subject: [PATCH 1 of 2] a
2064 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2063 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2065 X-Mercurial-Series-Index: 1
2064 X-Mercurial-Series-Index: 1
2066 X-Mercurial-Series-Total: 2
2065 X-Mercurial-Series-Total: 2
2067 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
2066 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
2068 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2067 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2069 In-Reply-To: <patchbomb.60@*> (glob)
2068 In-Reply-To: <patchbomb.60@test-hostname>
2070 References: <patchbomb.60@*> (glob)
2069 References: <patchbomb.60@test-hostname>
2071 User-Agent: Mercurial-patchbomb/* (glob)
2070 User-Agent: Mercurial-patchbomb/* (glob)
2072 Date: Thu, 01 Jan 1970 00:01:01 +0000
2071 Date: Thu, 01 Jan 1970 00:01:01 +0000
2073 From: quux
2072 From: quux
2074 To: foo
2073 To: foo
2075 Cc: bar
2074 Cc: bar
2076
2075
2077 # HG changeset patch
2076 # HG changeset patch
2078 # User test
2077 # User test
2079 # Date 1 0
2078 # Date 1 0
2080 # Thu Jan 01 00:00:01 1970 +0000
2079 # Thu Jan 01 00:00:01 1970 +0000
2081 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2080 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2082 # Parent 0000000000000000000000000000000000000000
2081 # Parent 0000000000000000000000000000000000000000
2083 a
2082 a
2084
2083
2085 diff -r 000000000000 -r 8580ff50825a a
2084 diff -r 000000000000 -r 8580ff50825a a
2086 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2085 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2087 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2086 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2088 @@ -0,0 +1,1 @@
2087 @@ -0,0 +1,1 @@
2089 +a
2088 +a
2090
2089
2091 displaying [PATCH 2 of 2] b ...
2090 displaying [PATCH 2 of 2] b ...
2092 MIME-Version: 1.0
2091 MIME-Version: 1.0
2093 Content-Type: text/plain; charset="us-ascii"
2092 Content-Type: text/plain; charset="us-ascii"
2094 Content-Transfer-Encoding: 7bit
2093 Content-Transfer-Encoding: 7bit
2095 Subject: [PATCH 2 of 2] b
2094 Subject: [PATCH 2 of 2] b
2096 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2095 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2097 X-Mercurial-Series-Index: 2
2096 X-Mercurial-Series-Index: 2
2098 X-Mercurial-Series-Total: 2
2097 X-Mercurial-Series-Total: 2
2099 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
2098 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
2100 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2099 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2101 In-Reply-To: <patchbomb.60@*> (glob)
2100 In-Reply-To: <patchbomb.60@test-hostname>
2102 References: <patchbomb.60@*> (glob)
2101 References: <patchbomb.60@test-hostname>
2103 User-Agent: Mercurial-patchbomb/* (glob)
2102 User-Agent: Mercurial-patchbomb/* (glob)
2104 Date: Thu, 01 Jan 1970 00:01:02 +0000
2103 Date: Thu, 01 Jan 1970 00:01:02 +0000
2105 From: quux
2104 From: quux
2106 To: foo
2105 To: foo
2107 Cc: bar
2106 Cc: bar
2108
2107
2109 # HG changeset patch
2108 # HG changeset patch
2110 # User test
2109 # User test
2111 # Date 2 0
2110 # Date 2 0
2112 # Thu Jan 01 00:00:02 1970 +0000
2111 # Thu Jan 01 00:00:02 1970 +0000
2113 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2112 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2114 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2113 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2115 b
2114 b
2116
2115
2117 diff -r 8580ff50825a -r 97d72e5f12c7 b
2116 diff -r 8580ff50825a -r 97d72e5f12c7 b
2118 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2117 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2119 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2118 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2120 @@ -0,0 +1,1 @@
2119 @@ -0,0 +1,1 @@
2121 +b
2120 +b
2122
2121
2123
2122
2124 test single flag for single patch (and no warning when not mailing dirty rev):
2123 test single flag for single patch (and no warning when not mailing dirty rev):
2125 $ hg up -qr1
2124 $ hg up -qr1
2126 $ echo dirt > a
2125 $ echo dirt > a
2127 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
2126 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
2128 > -r 2 | $FILTERBOUNDARY
2127 > -r 2 | $FILTERBOUNDARY
2129 this patch series consists of 1 patches.
2128 this patch series consists of 1 patches.
2130
2129
2131
2130
2132 displaying [PATCH fooFlag] test ...
2131 displaying [PATCH fooFlag] test ...
2133 MIME-Version: 1.0
2132 MIME-Version: 1.0
2134 Content-Type: text/plain; charset="us-ascii"
2133 Content-Type: text/plain; charset="us-ascii"
2135 Content-Transfer-Encoding: 7bit
2134 Content-Transfer-Encoding: 7bit
2136 Subject: [PATCH fooFlag] test
2135 Subject: [PATCH fooFlag] test
2137 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2136 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2138 X-Mercurial-Series-Index: 1
2137 X-Mercurial-Series-Index: 1
2139 X-Mercurial-Series-Total: 1
2138 X-Mercurial-Series-Total: 1
2140 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
2139 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
2141 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
2140 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
2142 User-Agent: Mercurial-patchbomb/* (glob)
2141 User-Agent: Mercurial-patchbomb/* (glob)
2143 Date: Thu, 01 Jan 1970 00:01:00 +0000
2142 Date: Thu, 01 Jan 1970 00:01:00 +0000
2144 From: quux
2143 From: quux
2145 To: foo
2144 To: foo
2146 Cc: bar
2145 Cc: bar
2147
2146
2148 # HG changeset patch
2147 # HG changeset patch
2149 # User test
2148 # User test
2150 # Date 3 0
2149 # Date 3 0
2151 # Thu Jan 01 00:00:03 1970 +0000
2150 # Thu Jan 01 00:00:03 1970 +0000
2152 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2151 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2153 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2152 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2154 c
2153 c
2155
2154
2156 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2155 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2157 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2156 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2158 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2157 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2159 @@ -0,0 +1,1 @@
2158 @@ -0,0 +1,1 @@
2160 +c
2159 +c
2161
2160
2162
2161
2163 test single flag for multiple patches (and warning when mailing dirty rev):
2162 test single flag for multiple patches (and warning when mailing dirty rev):
2164 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
2163 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
2165 > -r 0:1
2164 > -r 0:1
2166 warning: working directory has uncommitted changes
2165 warning: working directory has uncommitted changes
2167 this patch series consists of 2 patches.
2166 this patch series consists of 2 patches.
2168
2167
2169
2168
2170 Write the introductory message for the patch series.
2169 Write the introductory message for the patch series.
2171
2170
2172
2171
2173 displaying [PATCH 0 of 2 fooFlag] test ...
2172 displaying [PATCH 0 of 2 fooFlag] test ...
2174 MIME-Version: 1.0
2173 MIME-Version: 1.0
2175 Content-Type: text/plain; charset="us-ascii"
2174 Content-Type: text/plain; charset="us-ascii"
2176 Content-Transfer-Encoding: 7bit
2175 Content-Transfer-Encoding: 7bit
2177 Subject: [PATCH 0 of 2 fooFlag] test
2176 Subject: [PATCH 0 of 2 fooFlag] test
2178 Message-Id: <patchbomb.60@*> (glob)
2177 Message-Id: <patchbomb.60@test-hostname>
2179 User-Agent: Mercurial-patchbomb/* (glob)
2178 User-Agent: Mercurial-patchbomb/* (glob)
2180 Date: Thu, 01 Jan 1970 00:01:00 +0000
2179 Date: Thu, 01 Jan 1970 00:01:00 +0000
2181 From: quux
2180 From: quux
2182 To: foo
2181 To: foo
2183 Cc: bar
2182 Cc: bar
2184
2183
2185
2184
2186 displaying [PATCH 1 of 2 fooFlag] a ...
2185 displaying [PATCH 1 of 2 fooFlag] a ...
2187 MIME-Version: 1.0
2186 MIME-Version: 1.0
2188 Content-Type: text/plain; charset="us-ascii"
2187 Content-Type: text/plain; charset="us-ascii"
2189 Content-Transfer-Encoding: 7bit
2188 Content-Transfer-Encoding: 7bit
2190 Subject: [PATCH 1 of 2 fooFlag] a
2189 Subject: [PATCH 1 of 2 fooFlag] a
2191 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2190 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2192 X-Mercurial-Series-Index: 1
2191 X-Mercurial-Series-Index: 1
2193 X-Mercurial-Series-Total: 2
2192 X-Mercurial-Series-Total: 2
2194 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
2193 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
2195 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2194 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2196 In-Reply-To: <patchbomb.60@*> (glob)
2195 In-Reply-To: <patchbomb.60@test-hostname>
2197 References: <patchbomb.60@*> (glob)
2196 References: <patchbomb.60@test-hostname>
2198 User-Agent: Mercurial-patchbomb/* (glob)
2197 User-Agent: Mercurial-patchbomb/* (glob)
2199 Date: Thu, 01 Jan 1970 00:01:01 +0000
2198 Date: Thu, 01 Jan 1970 00:01:01 +0000
2200 From: quux
2199 From: quux
2201 To: foo
2200 To: foo
2202 Cc: bar
2201 Cc: bar
2203
2202
2204 # HG changeset patch
2203 # HG changeset patch
2205 # User test
2204 # User test
2206 # Date 1 0
2205 # Date 1 0
2207 # Thu Jan 01 00:00:01 1970 +0000
2206 # Thu Jan 01 00:00:01 1970 +0000
2208 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2207 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2209 # Parent 0000000000000000000000000000000000000000
2208 # Parent 0000000000000000000000000000000000000000
2210 a
2209 a
2211
2210
2212 diff -r 000000000000 -r 8580ff50825a a
2211 diff -r 000000000000 -r 8580ff50825a a
2213 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2212 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2214 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2213 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2215 @@ -0,0 +1,1 @@
2214 @@ -0,0 +1,1 @@
2216 +a
2215 +a
2217
2216
2218 displaying [PATCH 2 of 2 fooFlag] b ...
2217 displaying [PATCH 2 of 2 fooFlag] b ...
2219 MIME-Version: 1.0
2218 MIME-Version: 1.0
2220 Content-Type: text/plain; charset="us-ascii"
2219 Content-Type: text/plain; charset="us-ascii"
2221 Content-Transfer-Encoding: 7bit
2220 Content-Transfer-Encoding: 7bit
2222 Subject: [PATCH 2 of 2 fooFlag] b
2221 Subject: [PATCH 2 of 2 fooFlag] b
2223 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2222 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2224 X-Mercurial-Series-Index: 2
2223 X-Mercurial-Series-Index: 2
2225 X-Mercurial-Series-Total: 2
2224 X-Mercurial-Series-Total: 2
2226 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
2225 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
2227 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2226 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2228 In-Reply-To: <patchbomb.60@*> (glob)
2227 In-Reply-To: <patchbomb.60@test-hostname>
2229 References: <patchbomb.60@*> (glob)
2228 References: <patchbomb.60@test-hostname>
2230 User-Agent: Mercurial-patchbomb/* (glob)
2229 User-Agent: Mercurial-patchbomb/* (glob)
2231 Date: Thu, 01 Jan 1970 00:01:02 +0000
2230 Date: Thu, 01 Jan 1970 00:01:02 +0000
2232 From: quux
2231 From: quux
2233 To: foo
2232 To: foo
2234 Cc: bar
2233 Cc: bar
2235
2234
2236 # HG changeset patch
2235 # HG changeset patch
2237 # User test
2236 # User test
2238 # Date 2 0
2237 # Date 2 0
2239 # Thu Jan 01 00:00:02 1970 +0000
2238 # Thu Jan 01 00:00:02 1970 +0000
2240 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2239 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2241 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2240 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2242 b
2241 b
2243
2242
2244 diff -r 8580ff50825a -r 97d72e5f12c7 b
2243 diff -r 8580ff50825a -r 97d72e5f12c7 b
2245 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2244 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2246 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2245 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2247 @@ -0,0 +1,1 @@
2246 @@ -0,0 +1,1 @@
2248 +b
2247 +b
2249
2248
2250 $ hg revert --no-b a
2249 $ hg revert --no-b a
2251 $ hg up -q
2250 $ hg up -q
2252
2251
2253 test multiple flags for single patch:
2252 test multiple flags for single patch:
2254 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
2253 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
2255 > -c bar -s test -r 2
2254 > -c bar -s test -r 2
2256 this patch series consists of 1 patches.
2255 this patch series consists of 1 patches.
2257
2256
2258
2257
2259 displaying [PATCH fooFlag barFlag] test ...
2258 displaying [PATCH fooFlag barFlag] test ...
2260 MIME-Version: 1.0
2259 MIME-Version: 1.0
2261 Content-Type: text/plain; charset="us-ascii"
2260 Content-Type: text/plain; charset="us-ascii"
2262 Content-Transfer-Encoding: 7bit
2261 Content-Transfer-Encoding: 7bit
2263 Subject: [PATCH fooFlag barFlag] test
2262 Subject: [PATCH fooFlag barFlag] test
2264 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2263 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2265 X-Mercurial-Series-Index: 1
2264 X-Mercurial-Series-Index: 1
2266 X-Mercurial-Series-Total: 1
2265 X-Mercurial-Series-Total: 1
2267 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
2266 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
2268 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
2267 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
2269 User-Agent: Mercurial-patchbomb/* (glob)
2268 User-Agent: Mercurial-patchbomb/* (glob)
2270 Date: Thu, 01 Jan 1970 00:01:00 +0000
2269 Date: Thu, 01 Jan 1970 00:01:00 +0000
2271 From: quux
2270 From: quux
2272 To: foo
2271 To: foo
2273 Cc: bar
2272 Cc: bar
2274
2273
2275 # HG changeset patch
2274 # HG changeset patch
2276 # User test
2275 # User test
2277 # Date 3 0
2276 # Date 3 0
2278 # Thu Jan 01 00:00:03 1970 +0000
2277 # Thu Jan 01 00:00:03 1970 +0000
2279 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2278 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2280 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2279 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2281 c
2280 c
2282
2281
2283 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2282 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2284 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2283 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2285 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2284 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2286 @@ -0,0 +1,1 @@
2285 @@ -0,0 +1,1 @@
2287 +c
2286 +c
2288
2287
2289
2288
2290 test multiple flags for multiple patches:
2289 test multiple flags for multiple patches:
2291 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
2290 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
2292 > -c bar -s test -r 0:1
2291 > -c bar -s test -r 0:1
2293 this patch series consists of 2 patches.
2292 this patch series consists of 2 patches.
2294
2293
2295
2294
2296 Write the introductory message for the patch series.
2295 Write the introductory message for the patch series.
2297
2296
2298
2297
2299 displaying [PATCH 0 of 2 fooFlag barFlag] test ...
2298 displaying [PATCH 0 of 2 fooFlag barFlag] test ...
2300 MIME-Version: 1.0
2299 MIME-Version: 1.0
2301 Content-Type: text/plain; charset="us-ascii"
2300 Content-Type: text/plain; charset="us-ascii"
2302 Content-Transfer-Encoding: 7bit
2301 Content-Transfer-Encoding: 7bit
2303 Subject: [PATCH 0 of 2 fooFlag barFlag] test
2302 Subject: [PATCH 0 of 2 fooFlag barFlag] test
2304 Message-Id: <patchbomb.60@*> (glob)
2303 Message-Id: <patchbomb.60@test-hostname>
2305 User-Agent: Mercurial-patchbomb/* (glob)
2304 User-Agent: Mercurial-patchbomb/* (glob)
2306 Date: Thu, 01 Jan 1970 00:01:00 +0000
2305 Date: Thu, 01 Jan 1970 00:01:00 +0000
2307 From: quux
2306 From: quux
2308 To: foo
2307 To: foo
2309 Cc: bar
2308 Cc: bar
2310
2309
2311
2310
2312 displaying [PATCH 1 of 2 fooFlag barFlag] a ...
2311 displaying [PATCH 1 of 2 fooFlag barFlag] a ...
2313 MIME-Version: 1.0
2312 MIME-Version: 1.0
2314 Content-Type: text/plain; charset="us-ascii"
2313 Content-Type: text/plain; charset="us-ascii"
2315 Content-Transfer-Encoding: 7bit
2314 Content-Transfer-Encoding: 7bit
2316 Subject: [PATCH 1 of 2 fooFlag barFlag] a
2315 Subject: [PATCH 1 of 2 fooFlag barFlag] a
2317 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2316 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2318 X-Mercurial-Series-Index: 1
2317 X-Mercurial-Series-Index: 1
2319 X-Mercurial-Series-Total: 2
2318 X-Mercurial-Series-Total: 2
2320 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
2319 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
2321 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2320 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2322 In-Reply-To: <patchbomb.60@*> (glob)
2321 In-Reply-To: <patchbomb.60@test-hostname>
2323 References: <patchbomb.60@*> (glob)
2322 References: <patchbomb.60@test-hostname>
2324 User-Agent: Mercurial-patchbomb/* (glob)
2323 User-Agent: Mercurial-patchbomb/* (glob)
2325 Date: Thu, 01 Jan 1970 00:01:01 +0000
2324 Date: Thu, 01 Jan 1970 00:01:01 +0000
2326 From: quux
2325 From: quux
2327 To: foo
2326 To: foo
2328 Cc: bar
2327 Cc: bar
2329
2328
2330 # HG changeset patch
2329 # HG changeset patch
2331 # User test
2330 # User test
2332 # Date 1 0
2331 # Date 1 0
2333 # Thu Jan 01 00:00:01 1970 +0000
2332 # Thu Jan 01 00:00:01 1970 +0000
2334 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2333 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2335 # Parent 0000000000000000000000000000000000000000
2334 # Parent 0000000000000000000000000000000000000000
2336 a
2335 a
2337
2336
2338 diff -r 000000000000 -r 8580ff50825a a
2337 diff -r 000000000000 -r 8580ff50825a a
2339 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2338 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2340 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2339 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2341 @@ -0,0 +1,1 @@
2340 @@ -0,0 +1,1 @@
2342 +a
2341 +a
2343
2342
2344 displaying [PATCH 2 of 2 fooFlag barFlag] b ...
2343 displaying [PATCH 2 of 2 fooFlag barFlag] b ...
2345 MIME-Version: 1.0
2344 MIME-Version: 1.0
2346 Content-Type: text/plain; charset="us-ascii"
2345 Content-Type: text/plain; charset="us-ascii"
2347 Content-Transfer-Encoding: 7bit
2346 Content-Transfer-Encoding: 7bit
2348 Subject: [PATCH 2 of 2 fooFlag barFlag] b
2347 Subject: [PATCH 2 of 2 fooFlag barFlag] b
2349 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2348 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2350 X-Mercurial-Series-Index: 2
2349 X-Mercurial-Series-Index: 2
2351 X-Mercurial-Series-Total: 2
2350 X-Mercurial-Series-Total: 2
2352 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
2351 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
2353 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2352 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2354 In-Reply-To: <patchbomb.60@*> (glob)
2353 In-Reply-To: <patchbomb.60@test-hostname>
2355 References: <patchbomb.60@*> (glob)
2354 References: <patchbomb.60@test-hostname>
2356 User-Agent: Mercurial-patchbomb/* (glob)
2355 User-Agent: Mercurial-patchbomb/* (glob)
2357 Date: Thu, 01 Jan 1970 00:01:02 +0000
2356 Date: Thu, 01 Jan 1970 00:01:02 +0000
2358 From: quux
2357 From: quux
2359 To: foo
2358 To: foo
2360 Cc: bar
2359 Cc: bar
2361
2360
2362 # HG changeset patch
2361 # HG changeset patch
2363 # User test
2362 # User test
2364 # Date 2 0
2363 # Date 2 0
2365 # Thu Jan 01 00:00:02 1970 +0000
2364 # Thu Jan 01 00:00:02 1970 +0000
2366 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2365 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2367 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2366 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2368 b
2367 b
2369
2368
2370 diff -r 8580ff50825a -r 97d72e5f12c7 b
2369 diff -r 8580ff50825a -r 97d72e5f12c7 b
2371 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2370 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2372 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2371 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2373 @@ -0,0 +1,1 @@
2372 @@ -0,0 +1,1 @@
2374 +b
2373 +b
2375
2374
2376
2375
2377 test multi-address parsing:
2376 test multi-address parsing:
2378 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam><eggs>' \
2377 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam><eggs>' \
2379 > -t toast -c 'foo,bar@example.com' -c '"A, B <>" <a@example.com>' -s test -r 0 \
2378 > -t toast -c 'foo,bar@example.com' -c '"A, B <>" <a@example.com>' -s test -r 0 \
2380 > --config email.bcc='"Quux, A." <quux>'
2379 > --config email.bcc='"Quux, A." <quux>'
2381 this patch series consists of 1 patches.
2380 this patch series consists of 1 patches.
2382
2381
2383
2382
2384 sending [PATCH] test ...
2383 sending [PATCH] test ...
2385 $ cat < tmp.mbox
2384 $ cat < tmp.mbox
2386 From quux ... ... .. ..:..:.. .... (re)
2385 From quux ... ... .. ..:..:.. .... (re)
2387 MIME-Version: 1.0
2386 MIME-Version: 1.0
2388 Content-Type: text/plain; charset="us-ascii"
2387 Content-Type: text/plain; charset="us-ascii"
2389 Content-Transfer-Encoding: 7bit
2388 Content-Transfer-Encoding: 7bit
2390 Subject: [PATCH] test
2389 Subject: [PATCH] test
2391 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2390 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2392 X-Mercurial-Series-Index: 1
2391 X-Mercurial-Series-Index: 1
2393 X-Mercurial-Series-Total: 1
2392 X-Mercurial-Series-Total: 1
2394 Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
2393 Message-Id: <8580ff50825a50c8f716.315532860@test-hostname>
2395 X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@*> (glob)
2394 X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@test-hostname>
2396 User-Agent: Mercurial-patchbomb/* (glob)
2395 User-Agent: Mercurial-patchbomb/* (glob)
2397 Date: Tue, 01 Jan 1980 00:01:00 +0000
2396 Date: Tue, 01 Jan 1980 00:01:00 +0000
2398 From: quux
2397 From: quux
2399 To: spam <spam>, eggs, toast
2398 To: spam <spam>, eggs, toast
2400 Cc: foo, bar@example.com, "A, B <>" <a@example.com>
2399 Cc: foo, bar@example.com, "A, B <>" <a@example.com>
2401 Bcc: "Quux, A." <quux>
2400 Bcc: "Quux, A." <quux>
2402
2401
2403 # HG changeset patch
2402 # HG changeset patch
2404 # User test
2403 # User test
2405 # Date 1 0
2404 # Date 1 0
2406 # Thu Jan 01 00:00:01 1970 +0000
2405 # Thu Jan 01 00:00:01 1970 +0000
2407 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2406 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2408 # Parent 0000000000000000000000000000000000000000
2407 # Parent 0000000000000000000000000000000000000000
2409 a
2408 a
2410
2409
2411 diff -r 000000000000 -r 8580ff50825a a
2410 diff -r 000000000000 -r 8580ff50825a a
2412 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2411 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2413 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2412 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2414 @@ -0,0 +1,1 @@
2413 @@ -0,0 +1,1 @@
2415 +a
2414 +a
2416
2415
2417
2416
2418
2417
2419 test flag template:
2418 test flag template:
2420 $ echo foo > intro.text
2419 $ echo foo > intro.text
2421 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -r 0:1 \
2420 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -r 0:1 \
2422 > --desc intro.text --subject test \
2421 > --desc intro.text --subject test \
2423 > --config patchbomb.flagtemplate='R{rev}'
2422 > --config patchbomb.flagtemplate='R{rev}'
2424 this patch series consists of 2 patches.
2423 this patch series consists of 2 patches.
2425
2424
2426 Cc:
2425 Cc:
2427
2426
2428 displaying [PATCH 0 of 2 R1] test ...
2427 displaying [PATCH 0 of 2 R1] test ...
2429 MIME-Version: 1.0
2428 MIME-Version: 1.0
2430 Content-Type: text/plain; charset="us-ascii"
2429 Content-Type: text/plain; charset="us-ascii"
2431 Content-Transfer-Encoding: 7bit
2430 Content-Transfer-Encoding: 7bit
2432 Subject: [PATCH 0 of 2 R1] test
2431 Subject: [PATCH 0 of 2 R1] test
2433 Message-Id: <patchbomb.60@*> (glob)
2432 Message-Id: <patchbomb.60@test-hostname>
2434 User-Agent: Mercurial-patchbomb/* (glob)
2433 User-Agent: Mercurial-patchbomb/* (glob)
2435 Date: Thu, 01 Jan 1970 00:01:00 +0000
2434 Date: Thu, 01 Jan 1970 00:01:00 +0000
2436 From: quux
2435 From: quux
2437 To: foo
2436 To: foo
2438
2437
2439 foo
2438 foo
2440
2439
2441 displaying [PATCH 1 of 2 R0] a ...
2440 displaying [PATCH 1 of 2 R0] a ...
2442 MIME-Version: 1.0
2441 MIME-Version: 1.0
2443 Content-Type: text/plain; charset="us-ascii"
2442 Content-Type: text/plain; charset="us-ascii"
2444 Content-Transfer-Encoding: 7bit
2443 Content-Transfer-Encoding: 7bit
2445 Subject: [PATCH 1 of 2 R0] a
2444 Subject: [PATCH 1 of 2 R0] a
2446 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2445 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2447 X-Mercurial-Series-Index: 1
2446 X-Mercurial-Series-Index: 1
2448 X-Mercurial-Series-Total: 2
2447 X-Mercurial-Series-Total: 2
2449 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
2448 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
2450 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2449 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2451 In-Reply-To: <patchbomb.60@*> (glob)
2450 In-Reply-To: <patchbomb.60@test-hostname>
2452 References: <patchbomb.60@*> (glob)
2451 References: <patchbomb.60@test-hostname>
2453 User-Agent: Mercurial-patchbomb/* (glob)
2452 User-Agent: Mercurial-patchbomb/* (glob)
2454 Date: Thu, 01 Jan 1970 00:01:01 +0000
2453 Date: Thu, 01 Jan 1970 00:01:01 +0000
2455 From: quux
2454 From: quux
2456 To: foo
2455 To: foo
2457
2456
2458 # HG changeset patch
2457 # HG changeset patch
2459 # User test
2458 # User test
2460 # Date 1 0
2459 # Date 1 0
2461 # Thu Jan 01 00:00:01 1970 +0000
2460 # Thu Jan 01 00:00:01 1970 +0000
2462 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2461 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2463 # Parent 0000000000000000000000000000000000000000
2462 # Parent 0000000000000000000000000000000000000000
2464 a
2463 a
2465
2464
2466 diff -r 000000000000 -r 8580ff50825a a
2465 diff -r 000000000000 -r 8580ff50825a a
2467 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2466 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2468 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2467 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2469 @@ -0,0 +1,1 @@
2468 @@ -0,0 +1,1 @@
2470 +a
2469 +a
2471
2470
2472 displaying [PATCH 2 of 2 R1] b ...
2471 displaying [PATCH 2 of 2 R1] b ...
2473 MIME-Version: 1.0
2472 MIME-Version: 1.0
2474 Content-Type: text/plain; charset="us-ascii"
2473 Content-Type: text/plain; charset="us-ascii"
2475 Content-Transfer-Encoding: 7bit
2474 Content-Transfer-Encoding: 7bit
2476 Subject: [PATCH 2 of 2 R1] b
2475 Subject: [PATCH 2 of 2 R1] b
2477 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2476 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2478 X-Mercurial-Series-Index: 2
2477 X-Mercurial-Series-Index: 2
2479 X-Mercurial-Series-Total: 2
2478 X-Mercurial-Series-Total: 2
2480 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
2479 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
2481 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
2480 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2482 In-Reply-To: <patchbomb.60@*> (glob)
2481 In-Reply-To: <patchbomb.60@test-hostname>
2483 References: <patchbomb.60@*> (glob)
2482 References: <patchbomb.60@test-hostname>
2484 User-Agent: Mercurial-patchbomb/* (glob)
2483 User-Agent: Mercurial-patchbomb/* (glob)
2485 Date: Thu, 01 Jan 1970 00:01:02 +0000
2484 Date: Thu, 01 Jan 1970 00:01:02 +0000
2486 From: quux
2485 From: quux
2487 To: foo
2486 To: foo
2488
2487
2489 # HG changeset patch
2488 # HG changeset patch
2490 # User test
2489 # User test
2491 # Date 2 0
2490 # Date 2 0
2492 # Thu Jan 01 00:00:02 1970 +0000
2491 # Thu Jan 01 00:00:02 1970 +0000
2493 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2492 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2494 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2493 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2495 b
2494 b
2496
2495
2497 diff -r 8580ff50825a -r 97d72e5f12c7 b
2496 diff -r 8580ff50825a -r 97d72e5f12c7 b
2498 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2497 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2499 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2498 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2500 @@ -0,0 +1,1 @@
2499 @@ -0,0 +1,1 @@
2501 +b
2500 +b
2502
2501
2503
2502
2504 test flag template plus --flag:
2503 test flag template plus --flag:
2505 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -r 0 --flag 'V2' \
2504 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -r 0 --flag 'V2' \
2506 > --config patchbomb.flagtemplate='{branch} {flags}'
2505 > --config patchbomb.flagtemplate='{branch} {flags}'
2507 this patch series consists of 1 patches.
2506 this patch series consists of 1 patches.
2508
2507
2509 Cc:
2508 Cc:
2510
2509
2511 displaying [PATCH default V2] a ...
2510 displaying [PATCH default V2] a ...
2512 MIME-Version: 1.0
2511 MIME-Version: 1.0
2513 Content-Type: text/plain; charset="us-ascii"
2512 Content-Type: text/plain; charset="us-ascii"
2514 Content-Transfer-Encoding: 7bit
2513 Content-Transfer-Encoding: 7bit
2515 Subject: [PATCH default V2] a
2514 Subject: [PATCH default V2] a
2516 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2515 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2517 X-Mercurial-Series-Index: 1
2516 X-Mercurial-Series-Index: 1
2518 X-Mercurial-Series-Total: 1
2517 X-Mercurial-Series-Total: 1
2519 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
2518 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
2520 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
2519 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
2521 User-Agent: Mercurial-patchbomb/* (glob)
2520 User-Agent: Mercurial-patchbomb/* (glob)
2522 Date: Thu, 01 Jan 1970 00:01:00 +0000
2521 Date: Thu, 01 Jan 1970 00:01:00 +0000
2523 From: quux
2522 From: quux
2524 To: foo
2523 To: foo
2525
2524
2526 # HG changeset patch
2525 # HG changeset patch
2527 # User test
2526 # User test
2528 # Date 1 0
2527 # Date 1 0
2529 # Thu Jan 01 00:00:01 1970 +0000
2528 # Thu Jan 01 00:00:01 1970 +0000
2530 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2529 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2531 # Parent 0000000000000000000000000000000000000000
2530 # Parent 0000000000000000000000000000000000000000
2532 a
2531 a
2533
2532
2534 diff -r 000000000000 -r 8580ff50825a a
2533 diff -r 000000000000 -r 8580ff50825a a
2535 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2534 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2536 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2535 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2537 @@ -0,0 +1,1 @@
2536 @@ -0,0 +1,1 @@
2538 +a
2537 +a
2539
2538
2540
2539
2541 test multi-byte domain parsing:
2540 test multi-byte domain parsing:
2542 >>> with open('toaddress.txt', 'wb') as f:
2541 >>> with open('toaddress.txt', 'wb') as f:
2543 ... f.write(b'bar@\xfcnicode.com') and None
2542 ... f.write(b'bar@\xfcnicode.com') and None
2544 $ HGENCODING=iso-8859-1
2543 $ HGENCODING=iso-8859-1
2545 $ export HGENCODING
2544 $ export HGENCODING
2546 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "`cat toaddress.txt`" -s test -r 0
2545 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "`cat toaddress.txt`" -s test -r 0
2547 this patch series consists of 1 patches.
2546 this patch series consists of 1 patches.
2548
2547
2549 Cc:
2548 Cc:
2550
2549
2551 sending [PATCH] test ...
2550 sending [PATCH] test ...
2552
2551
2553 $ cat tmp.mbox
2552 $ cat tmp.mbox
2554 From quux ... ... .. ..:..:.. .... (re)
2553 From quux ... ... .. ..:..:.. .... (re)
2555 MIME-Version: 1.0
2554 MIME-Version: 1.0
2556 Content-Type: text/plain; charset="us-ascii"
2555 Content-Type: text/plain; charset="us-ascii"
2557 Content-Transfer-Encoding: 7bit
2556 Content-Transfer-Encoding: 7bit
2558 Subject: [PATCH] test
2557 Subject: [PATCH] test
2559 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2558 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2560 X-Mercurial-Series-Index: 1
2559 X-Mercurial-Series-Index: 1
2561 X-Mercurial-Series-Total: 1
2560 X-Mercurial-Series-Total: 1
2562 Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
2561 Message-Id: <8580ff50825a50c8f716.315532860@test-hostname>
2563 X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@*> (glob)
2562 X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@test-hostname>
2564 User-Agent: Mercurial-patchbomb/* (glob)
2563 User-Agent: Mercurial-patchbomb/* (glob)
2565 Date: Tue, 01 Jan 1980 00:01:00 +0000
2564 Date: Tue, 01 Jan 1980 00:01:00 +0000
2566 From: quux
2565 From: quux
2567 To: bar@xn--nicode-2ya.com
2566 To: bar@xn--nicode-2ya.com
2568
2567
2569 # HG changeset patch
2568 # HG changeset patch
2570 # User test
2569 # User test
2571 # Date 1 0
2570 # Date 1 0
2572 # Thu Jan 01 00:00:01 1970 +0000
2571 # Thu Jan 01 00:00:01 1970 +0000
2573 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2572 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2574 # Parent 0000000000000000000000000000000000000000
2573 # Parent 0000000000000000000000000000000000000000
2575 a
2574 a
2576
2575
2577 diff -r 000000000000 -r 8580ff50825a a
2576 diff -r 000000000000 -r 8580ff50825a a
2578 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2577 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2579 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2578 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2580 @@ -0,0 +1,1 @@
2579 @@ -0,0 +1,1 @@
2581 +a
2580 +a
2582
2581
2583
2582
2584
2583
2585 test outgoing:
2584 test outgoing:
2586 $ hg up 1
2585 $ hg up 1
2587 0 files updated, 0 files merged, 6 files removed, 0 files unresolved
2586 0 files updated, 0 files merged, 6 files removed, 0 files unresolved
2588
2587
2589 $ hg branch test
2588 $ hg branch test
2590 marked working directory as branch test
2589 marked working directory as branch test
2591 (branches are permanent and global, did you want a bookmark?)
2590 (branches are permanent and global, did you want a bookmark?)
2592
2591
2593 $ echo d > d
2592 $ echo d > d
2594 $ hg add d
2593 $ hg add d
2595 $ hg ci -md -d '4 0'
2594 $ hg ci -md -d '4 0'
2596 $ echo d >> d
2595 $ echo d >> d
2597 $ hg ci -mdd -d '5 0'
2596 $ hg ci -mdd -d '5 0'
2598 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
2597 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
2599 @ 10:3b6f1ec9dde9 dd
2598 @ 10:3b6f1ec9dde9 dd
2600 |
2599 |
2601 o 9:2f9fa9b998c5 d
2600 o 9:2f9fa9b998c5 d
2602 |
2601 |
2603 | o 8:7aead2484924 Added tag two, two.diff for changeset ff2c9fa2018b
2602 | o 8:7aead2484924 Added tag two, two.diff for changeset ff2c9fa2018b
2604 | |
2603 | |
2605 | o 7:045ca29b1ea2 Added tag one, one.patch for changeset 97d72e5f12c7
2604 | o 7:045ca29b1ea2 Added tag one, one.patch for changeset 97d72e5f12c7
2606 | |
2605 | |
2607 | o 6:5d5ef15dfe5e Added tag zero, zero.foo for changeset 8580ff50825a
2606 | o 6:5d5ef15dfe5e Added tag zero, zero.foo for changeset 8580ff50825a
2608 | |
2607 | |
2609 | o 5:240fb913fc1b isolatin 8-bit encoding
2608 | o 5:240fb913fc1b isolatin 8-bit encoding
2610 | |
2609 | |
2611 | o 4:a2ea8fc83dd8 long line
2610 | o 4:a2ea8fc83dd8 long line
2612 | |
2611 | |
2613 | o 3:909a00e13e9d utf-8 content
2612 | o 3:909a00e13e9d utf-8 content
2614 | |
2613 | |
2615 | o 2:ff2c9fa2018b c
2614 | o 2:ff2c9fa2018b c
2616 |/
2615 |/
2617 o 1:97d72e5f12c7 b
2616 o 1:97d72e5f12c7 b
2618 |
2617 |
2619 o 0:8580ff50825a a
2618 o 0:8580ff50825a a
2620
2619
2621 $ hg phase --force --secret -r 10
2620 $ hg phase --force --secret -r 10
2622 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t -r 'rev(10) or rev(6)'
2621 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t -r 'rev(10) or rev(6)'
2623 comparing with ../t
2622 comparing with ../t
2624 From [test]: test
2623 From [test]: test
2625 this patch series consists of 6 patches.
2624 this patch series consists of 6 patches.
2626
2625
2627
2626
2628 Write the introductory message for the patch series.
2627 Write the introductory message for the patch series.
2629
2628
2630 Cc:
2629 Cc:
2631
2630
2632 displaying [PATCH 0 of 6] test ...
2631 displaying [PATCH 0 of 6] test ...
2633 MIME-Version: 1.0
2632 MIME-Version: 1.0
2634 Content-Type: text/plain; charset="us-ascii"
2633 Content-Type: text/plain; charset="us-ascii"
2635 Content-Transfer-Encoding: 7bit
2634 Content-Transfer-Encoding: 7bit
2636 Subject: [PATCH 0 of 6] test
2635 Subject: [PATCH 0 of 6] test
2637 Message-Id: <patchbomb.315532860@*> (glob)
2636 Message-Id: <patchbomb.315532860@test-hostname>
2638 User-Agent: Mercurial-patchbomb/* (glob)
2637 User-Agent: Mercurial-patchbomb/* (glob)
2639 Date: Tue, 01 Jan 1980 00:01:00 +0000
2638 Date: Tue, 01 Jan 1980 00:01:00 +0000
2640 From: test
2639 From: test
2641 To: foo
2640 To: foo
2642
2641
2643
2642
2644 displaying [PATCH 1 of 6] c ...
2643 displaying [PATCH 1 of 6] c ...
2645 MIME-Version: 1.0
2644 MIME-Version: 1.0
2646 Content-Type: text/plain; charset="us-ascii"
2645 Content-Type: text/plain; charset="us-ascii"
2647 Content-Transfer-Encoding: 7bit
2646 Content-Transfer-Encoding: 7bit
2648 Subject: [PATCH 1 of 6] c
2647 Subject: [PATCH 1 of 6] c
2649 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2648 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2650 X-Mercurial-Series-Index: 1
2649 X-Mercurial-Series-Index: 1
2651 X-Mercurial-Series-Total: 6
2650 X-Mercurial-Series-Total: 6
2652 Message-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2651 Message-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2653 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2652 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2654 In-Reply-To: <patchbomb.315532860@*> (glob)
2653 In-Reply-To: <patchbomb.315532860@test-hostname>
2655 References: <patchbomb.315532860@*> (glob)
2654 References: <patchbomb.315532860@test-hostname>
2656 User-Agent: Mercurial-patchbomb/* (glob)
2655 User-Agent: Mercurial-patchbomb/* (glob)
2657 Date: Tue, 01 Jan 1980 00:01:01 +0000
2656 Date: Tue, 01 Jan 1980 00:01:01 +0000
2658 From: test
2657 From: test
2659 To: foo
2658 To: foo
2660
2659
2661 # HG changeset patch
2660 # HG changeset patch
2662 # User test
2661 # User test
2663 # Date 3 0
2662 # Date 3 0
2664 # Thu Jan 01 00:00:03 1970 +0000
2663 # Thu Jan 01 00:00:03 1970 +0000
2665 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2664 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2666 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2665 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2667 c
2666 c
2668
2667
2669 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2668 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2670 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2669 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2671 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2670 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2672 @@ -0,0 +1,1 @@
2671 @@ -0,0 +1,1 @@
2673 +c
2672 +c
2674
2673
2675 displaying [PATCH 2 of 6] utf-8 content ...
2674 displaying [PATCH 2 of 6] utf-8 content ...
2676 MIME-Version: 1.0
2675 MIME-Version: 1.0
2677 Content-Type: text/plain; charset="iso-8859-1"
2676 Content-Type: text/plain; charset="iso-8859-1"
2678 Content-Transfer-Encoding: quoted-printable
2677 Content-Transfer-Encoding: quoted-printable
2679 Subject: [PATCH 2 of 6] utf-8 content
2678 Subject: [PATCH 2 of 6] utf-8 content
2680 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
2679 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
2681 X-Mercurial-Series-Index: 2
2680 X-Mercurial-Series-Index: 2
2682 X-Mercurial-Series-Total: 6
2681 X-Mercurial-Series-Total: 6
2683 Message-Id: <909a00e13e9d78b575ae.315532862@*> (glob)
2682 Message-Id: <909a00e13e9d78b575ae.315532862@test-hostname>
2684 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2683 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2685 In-Reply-To: <patchbomb.315532860@*> (glob)
2684 In-Reply-To: <patchbomb.315532860@test-hostname>
2686 References: <patchbomb.315532860@*> (glob)
2685 References: <patchbomb.315532860@test-hostname>
2687 User-Agent: Mercurial-patchbomb/* (glob)
2686 User-Agent: Mercurial-patchbomb/* (glob)
2688 Date: Tue, 01 Jan 1980 00:01:02 +0000
2687 Date: Tue, 01 Jan 1980 00:01:02 +0000
2689 From: test
2688 From: test
2690 To: foo
2689 To: foo
2691
2690
2692 # HG changeset patch
2691 # HG changeset patch
2693 # User test
2692 # User test
2694 # Date 4 0
2693 # Date 4 0
2695 # Thu Jan 01 00:00:04 1970 +0000
2694 # Thu Jan 01 00:00:04 1970 +0000
2696 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
2695 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
2697 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
2696 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
2698 utf-8 content
2697 utf-8 content
2699
2698
2700 diff -r ff2c9fa2018b -r 909a00e13e9d description
2699 diff -r ff2c9fa2018b -r 909a00e13e9d description
2701 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2700 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2702 +++ b/description Thu Jan 01 00:00:04 1970 +0000
2701 +++ b/description Thu Jan 01 00:00:04 1970 +0000
2703 @@ -0,0 +1,3 @@
2702 @@ -0,0 +1,3 @@
2704 +a multiline
2703 +a multiline
2705 +
2704 +
2706 +description
2705 +description
2707 diff -r ff2c9fa2018b -r 909a00e13e9d utf
2706 diff -r ff2c9fa2018b -r 909a00e13e9d utf
2708 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2707 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2709 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
2708 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
2710 @@ -0,0 +1,1 @@
2709 @@ -0,0 +1,1 @@
2711 +h=C3=B6mma!
2710 +h=C3=B6mma!
2712
2711
2713 displaying [PATCH 3 of 6] long line ...
2712 displaying [PATCH 3 of 6] long line ...
2714 MIME-Version: 1.0
2713 MIME-Version: 1.0
2715 Content-Type: text/plain; charset="us-ascii"
2714 Content-Type: text/plain; charset="us-ascii"
2716 Content-Transfer-Encoding: quoted-printable
2715 Content-Transfer-Encoding: quoted-printable
2717 Subject: [PATCH 3 of 6] long line
2716 Subject: [PATCH 3 of 6] long line
2718 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2717 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2719 X-Mercurial-Series-Index: 3
2718 X-Mercurial-Series-Index: 3
2720 X-Mercurial-Series-Total: 6
2719 X-Mercurial-Series-Total: 6
2721 Message-Id: <a2ea8fc83dd8b93cfd86.315532863@*> (glob)
2720 Message-Id: <a2ea8fc83dd8b93cfd86.315532863@test-hostname>
2722 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2721 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2723 In-Reply-To: <patchbomb.315532860@*> (glob)
2722 In-Reply-To: <patchbomb.315532860@test-hostname>
2724 References: <patchbomb.315532860@*> (glob)
2723 References: <patchbomb.315532860@test-hostname>
2725 User-Agent: Mercurial-patchbomb/* (glob)
2724 User-Agent: Mercurial-patchbomb/* (glob)
2726 Date: Tue, 01 Jan 1980 00:01:03 +0000
2725 Date: Tue, 01 Jan 1980 00:01:03 +0000
2727 From: test
2726 From: test
2728 To: foo
2727 To: foo
2729
2728
2730 # HG changeset patch
2729 # HG changeset patch
2731 # User test
2730 # User test
2732 # Date 4 0
2731 # Date 4 0
2733 # Thu Jan 01 00:00:04 1970 +0000
2732 # Thu Jan 01 00:00:04 1970 +0000
2734 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2733 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2735 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
2734 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
2736 long line
2735 long line
2737
2736
2738 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
2737 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
2739 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2738 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2740 +++ b/long Thu Jan 01 00:00:04 1970 +0000
2739 +++ b/long Thu Jan 01 00:00:04 1970 +0000
2741 @@ -0,0 +1,4 @@
2740 @@ -0,0 +1,4 @@
2742 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2741 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2743 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2742 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2744 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2743 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2745 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2744 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2746 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2745 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2747 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2746 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2748 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2747 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2749 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2748 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2750 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2749 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2751 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2750 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2752 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2751 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2753 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2752 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2754 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2753 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2755 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2754 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2756 +foo
2755 +foo
2757 +
2756 +
2758 +bar
2757 +bar
2759
2758
2760 displaying [PATCH 4 of 6] isolatin 8-bit encoding ...
2759 displaying [PATCH 4 of 6] isolatin 8-bit encoding ...
2761 MIME-Version: 1.0
2760 MIME-Version: 1.0
2762 Content-Type: text/plain; charset="iso-8859-1"
2761 Content-Type: text/plain; charset="iso-8859-1"
2763 Content-Transfer-Encoding: quoted-printable
2762 Content-Transfer-Encoding: quoted-printable
2764 Subject: [PATCH 4 of 6] isolatin 8-bit encoding
2763 Subject: [PATCH 4 of 6] isolatin 8-bit encoding
2765 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2764 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2766 X-Mercurial-Series-Index: 4
2765 X-Mercurial-Series-Index: 4
2767 X-Mercurial-Series-Total: 6
2766 X-Mercurial-Series-Total: 6
2768 Message-Id: <240fb913fc1b7ff15ddb.315532864@*> (glob)
2767 Message-Id: <240fb913fc1b7ff15ddb.315532864@test-hostname>
2769 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2768 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2770 In-Reply-To: <patchbomb.315532860@*> (glob)
2769 In-Reply-To: <patchbomb.315532860@test-hostname>
2771 References: <patchbomb.315532860@*> (glob)
2770 References: <patchbomb.315532860@test-hostname>
2772 User-Agent: Mercurial-patchbomb/* (glob)
2771 User-Agent: Mercurial-patchbomb/* (glob)
2773 Date: Tue, 01 Jan 1980 00:01:04 +0000
2772 Date: Tue, 01 Jan 1980 00:01:04 +0000
2774 From: test
2773 From: test
2775 To: foo
2774 To: foo
2776
2775
2777 # HG changeset patch
2776 # HG changeset patch
2778 # User test
2777 # User test
2779 # Date 5 0
2778 # Date 5 0
2780 # Thu Jan 01 00:00:05 1970 +0000
2779 # Thu Jan 01 00:00:05 1970 +0000
2781 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2780 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2782 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2781 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2783 isolatin 8-bit encoding
2782 isolatin 8-bit encoding
2784
2783
2785 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
2784 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
2786 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2785 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2787 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
2786 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
2788 @@ -0,0 +1,1 @@
2787 @@ -0,0 +1,1 @@
2789 +h=F6mma!
2788 +h=F6mma!
2790
2789
2791 displaying [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a ...
2790 displaying [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a ...
2792 MIME-Version: 1.0
2791 MIME-Version: 1.0
2793 Content-Type: text/plain; charset="us-ascii"
2792 Content-Type: text/plain; charset="us-ascii"
2794 Content-Transfer-Encoding: 7bit
2793 Content-Transfer-Encoding: 7bit
2795 Subject: [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a
2794 Subject: [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a
2796 X-Mercurial-Node: 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2795 X-Mercurial-Node: 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2797 X-Mercurial-Series-Index: 5
2796 X-Mercurial-Series-Index: 5
2798 X-Mercurial-Series-Total: 6
2797 X-Mercurial-Series-Total: 6
2799 Message-Id: <5d5ef15dfe5e7bd3a4ee.315532865@*> (glob)
2798 Message-Id: <5d5ef15dfe5e7bd3a4ee.315532865@test-hostname>
2800 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2799 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2801 In-Reply-To: <patchbomb.315532860@*> (glob)
2800 In-Reply-To: <patchbomb.315532860@test-hostname>
2802 References: <patchbomb.315532860@*> (glob)
2801 References: <patchbomb.315532860@test-hostname>
2803 User-Agent: Mercurial-patchbomb/* (glob)
2802 User-Agent: Mercurial-patchbomb/* (glob)
2804 Date: Tue, 01 Jan 1980 00:01:05 +0000
2803 Date: Tue, 01 Jan 1980 00:01:05 +0000
2805 From: test
2804 From: test
2806 To: foo
2805 To: foo
2807
2806
2808 # HG changeset patch
2807 # HG changeset patch
2809 # User test
2808 # User test
2810 # Date 0 0
2809 # Date 0 0
2811 # Thu Jan 01 00:00:00 1970 +0000
2810 # Thu Jan 01 00:00:00 1970 +0000
2812 # Node ID 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2811 # Node ID 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2813 # Parent 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2812 # Parent 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2814 Added tag zero, zero.foo for changeset 8580ff50825a
2813 Added tag zero, zero.foo for changeset 8580ff50825a
2815
2814
2816 diff -r 240fb913fc1b -r 5d5ef15dfe5e .hgtags
2815 diff -r 240fb913fc1b -r 5d5ef15dfe5e .hgtags
2817 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2816 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2818 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2817 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2819 @@ -0,0 +1,2 @@
2818 @@ -0,0 +1,2 @@
2820 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2819 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2821 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2820 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2822
2821
2823 displaying [PATCH 6 of 6] d ...
2822 displaying [PATCH 6 of 6] d ...
2824 MIME-Version: 1.0
2823 MIME-Version: 1.0
2825 Content-Type: text/plain; charset="us-ascii"
2824 Content-Type: text/plain; charset="us-ascii"
2826 Content-Transfer-Encoding: 7bit
2825 Content-Transfer-Encoding: 7bit
2827 Subject: [PATCH 6 of 6] d
2826 Subject: [PATCH 6 of 6] d
2828 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2827 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2829 X-Mercurial-Series-Index: 6
2828 X-Mercurial-Series-Index: 6
2830 X-Mercurial-Series-Total: 6
2829 X-Mercurial-Series-Total: 6
2831 Message-Id: <2f9fa9b998c5fe3ac2bd.315532866@*> (glob)
2830 Message-Id: <2f9fa9b998c5fe3ac2bd.315532866@test-hostname>
2832 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2831 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2833 In-Reply-To: <patchbomb.315532860@*> (glob)
2832 In-Reply-To: <patchbomb.315532860@test-hostname>
2834 References: <patchbomb.315532860@*> (glob)
2833 References: <patchbomb.315532860@test-hostname>
2835 User-Agent: Mercurial-patchbomb/* (glob)
2834 User-Agent: Mercurial-patchbomb/* (glob)
2836 Date: Tue, 01 Jan 1980 00:01:06 +0000
2835 Date: Tue, 01 Jan 1980 00:01:06 +0000
2837 From: test
2836 From: test
2838 To: foo
2837 To: foo
2839
2838
2840 # HG changeset patch
2839 # HG changeset patch
2841 # User test
2840 # User test
2842 # Date 4 0
2841 # Date 4 0
2843 # Thu Jan 01 00:00:04 1970 +0000
2842 # Thu Jan 01 00:00:04 1970 +0000
2844 # Branch test
2843 # Branch test
2845 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2844 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2846 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2845 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2847 d
2846 d
2848
2847
2849 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2848 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2850 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2849 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2851 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2850 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2852 @@ -0,0 +1,1 @@
2851 @@ -0,0 +1,1 @@
2853 +d
2852 +d
2854
2853
2855
2854
2856 Don't prompt for a CC header.
2855 Don't prompt for a CC header.
2857
2856
2858 $ echo "[email]" >> $HGRCPATH
2857 $ echo "[email]" >> $HGRCPATH
2859 $ echo "cc=" >> $HGRCPATH
2858 $ echo "cc=" >> $HGRCPATH
2860
2859
2861 dest#branch URIs:
2860 dest#branch URIs:
2862 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
2861 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
2863 comparing with ../t
2862 comparing with ../t
2864 From [test]: test
2863 From [test]: test
2865 this patch series consists of 1 patches.
2864 this patch series consists of 1 patches.
2866
2865
2867
2866
2868 displaying [PATCH] test ...
2867 displaying [PATCH] test ...
2869 MIME-Version: 1.0
2868 MIME-Version: 1.0
2870 Content-Type: text/plain; charset="us-ascii"
2869 Content-Type: text/plain; charset="us-ascii"
2871 Content-Transfer-Encoding: 7bit
2870 Content-Transfer-Encoding: 7bit
2872 Subject: [PATCH] test
2871 Subject: [PATCH] test
2873 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2872 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2874 X-Mercurial-Series-Index: 1
2873 X-Mercurial-Series-Index: 1
2875 X-Mercurial-Series-Total: 1
2874 X-Mercurial-Series-Total: 1
2876 Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@*> (glob)
2875 Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@test-hostname>
2877 X-Mercurial-Series-Id: <2f9fa9b998c5fe3ac2bd.315532860@*> (glob)
2876 X-Mercurial-Series-Id: <2f9fa9b998c5fe3ac2bd.315532860@test-hostname>
2878 User-Agent: Mercurial-patchbomb/* (glob)
2877 User-Agent: Mercurial-patchbomb/* (glob)
2879 Date: Tue, 01 Jan 1980 00:01:00 +0000
2878 Date: Tue, 01 Jan 1980 00:01:00 +0000
2880 From: test
2879 From: test
2881 To: foo
2880 To: foo
2882
2881
2883 # HG changeset patch
2882 # HG changeset patch
2884 # User test
2883 # User test
2885 # Date 4 0
2884 # Date 4 0
2886 # Thu Jan 01 00:00:04 1970 +0000
2885 # Thu Jan 01 00:00:04 1970 +0000
2887 # Branch test
2886 # Branch test
2888 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2887 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2889 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2888 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2890 d
2889 d
2891
2890
2892 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2891 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2893 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2892 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2894 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2893 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2895 @@ -0,0 +1,1 @@
2894 @@ -0,0 +1,1 @@
2896 +d
2895 +d
2897
2896
2898 #if no-windows
2897 #if no-windows
2899
2898
2900 Set up a fake sendmail program
2899 Set up a fake sendmail program
2901
2900
2902 $ cat > pretendmail.sh << 'EOF'
2901 $ cat > pretendmail.sh << 'EOF'
2903 > #!/bin/sh
2902 > #!/bin/sh
2904 > echo "$@"
2903 > echo "$@"
2905 > cat
2904 > cat
2906 > EOF
2905 > EOF
2907 $ chmod +x pretendmail.sh
2906 $ chmod +x pretendmail.sh
2908
2907
2909 $ echo '[email]' >> $HGRCPATH
2908 $ echo '[email]' >> $HGRCPATH
2910 $ echo "method=`pwd`/pretendmail.sh" >> $HGRCPATH
2909 $ echo "method=`pwd`/pretendmail.sh" >> $HGRCPATH
2911
2910
2912 Test introduction configuration
2911 Test introduction configuration
2913 =================================
2912 =================================
2914
2913
2915 $ echo '[patchbomb]' >> $HGRCPATH
2914 $ echo '[patchbomb]' >> $HGRCPATH
2916
2915
2917 "auto" setting
2916 "auto" setting
2918 ----------------
2917 ----------------
2919
2918
2920 $ echo 'intro=auto' >> $HGRCPATH
2919 $ echo 'intro=auto' >> $HGRCPATH
2921
2920
2922 single rev
2921 single rev
2923
2922
2924 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2923 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2925 [1]
2924 [1]
2926
2925
2927 single rev + flag
2926 single rev + flag
2928
2927
2929 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2928 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2930 Write the introductory message for the patch series.
2929 Write the introductory message for the patch series.
2931
2930
2932
2931
2933 Multi rev
2932 Multi rev
2934
2933
2935 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2934 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2936 Write the introductory message for the patch series.
2935 Write the introductory message for the patch series.
2937
2936
2938 "never" setting
2937 "never" setting
2939 -----------------
2938 -----------------
2940
2939
2941 $ echo 'intro=never' >> $HGRCPATH
2940 $ echo 'intro=never' >> $HGRCPATH
2942
2941
2943 single rev
2942 single rev
2944
2943
2945 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2944 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2946 [1]
2945 [1]
2947
2946
2948 single rev + flag
2947 single rev + flag
2949
2948
2950 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2949 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2951 Write the introductory message for the patch series.
2950 Write the introductory message for the patch series.
2952
2951
2953
2952
2954 Multi rev
2953 Multi rev
2955
2954
2956 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2955 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2957 [1]
2956 [1]
2958
2957
2959 Multi rev + flag
2958 Multi rev + flag
2960
2959
2961 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' --intro | grep "Write the introductory message for the patch series."
2960 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' --intro | grep "Write the introductory message for the patch series."
2962 Write the introductory message for the patch series.
2961 Write the introductory message for the patch series.
2963
2962
2964 "always" setting
2963 "always" setting
2965 -----------------
2964 -----------------
2966
2965
2967 $ echo 'intro=always' >> $HGRCPATH
2966 $ echo 'intro=always' >> $HGRCPATH
2968
2967
2969 single rev
2968 single rev
2970
2969
2971 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2970 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2972 Write the introductory message for the patch series.
2971 Write the introductory message for the patch series.
2973
2972
2974 single rev + flag
2973 single rev + flag
2975
2974
2976 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2975 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2977 Write the introductory message for the patch series.
2976 Write the introductory message for the patch series.
2978
2977
2979
2978
2980 Multi rev
2979 Multi rev
2981
2980
2982 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2981 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2983 Write the introductory message for the patch series.
2982 Write the introductory message for the patch series.
2984
2983
2985 Multi rev + flag
2984 Multi rev + flag
2986
2985
2987 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' --intro | grep "Write the introductory message for the patch series."
2986 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' --intro | grep "Write the introductory message for the patch series."
2988 Write the introductory message for the patch series.
2987 Write the introductory message for the patch series.
2989
2988
2990 bad value setting
2989 bad value setting
2991 -----------------
2990 -----------------
2992
2991
2993 $ echo 'intro=mpmwearaclownnose' >> $HGRCPATH
2992 $ echo 'intro=mpmwearaclownnose' >> $HGRCPATH
2994
2993
2995 single rev
2994 single rev
2996
2995
2997 $ hg email --date '1980-1-1 0:1' -v -t foo -s test -r '10'
2996 $ hg email --date '1980-1-1 0:1' -v -t foo -s test -r '10'
2998 From [test]: test
2997 From [test]: test
2999 this patch series consists of 1 patches.
2998 this patch series consists of 1 patches.
3000
2999
3001 warning: invalid patchbomb.intro value "mpmwearaclownnose"
3000 warning: invalid patchbomb.intro value "mpmwearaclownnose"
3002 (should be one of always, never, auto)
3001 (should be one of always, never, auto)
3003 -f test foo
3002 -f test foo
3004 MIME-Version: 1.0
3003 MIME-Version: 1.0
3005 Content-Type: text/plain; charset="us-ascii"
3004 Content-Type: text/plain; charset="us-ascii"
3006 Content-Transfer-Encoding: 7bit
3005 Content-Transfer-Encoding: 7bit
3007 Subject: [PATCH] test
3006 Subject: [PATCH] test
3008 X-Mercurial-Node: 3b6f1ec9dde933a40a115a7990f8b320477231af
3007 X-Mercurial-Node: 3b6f1ec9dde933a40a115a7990f8b320477231af
3009 X-Mercurial-Series-Index: 1
3008 X-Mercurial-Series-Index: 1
3010 X-Mercurial-Series-Total: 1
3009 X-Mercurial-Series-Total: 1
3011 Message-Id: <3b6f1ec9dde933a40a11*> (glob)
3010 Message-Id: <3b6f1ec9dde933a40a11*> (glob)
3012 X-Mercurial-Series-Id: <3b6f1ec9dde933a40a11.*> (glob)
3011 X-Mercurial-Series-Id: <3b6f1ec9dde933a40a11.*> (glob)
3013 User-Agent: Mercurial-patchbomb/* (glob)
3012 User-Agent: Mercurial-patchbomb/* (glob)
3014 Date: Tue, 01 Jan 1980 00:01:00 +0000
3013 Date: Tue, 01 Jan 1980 00:01:00 +0000
3015 From: test
3014 From: test
3016 To: foo
3015 To: foo
3017
3016
3018 # HG changeset patch
3017 # HG changeset patch
3019 # User test
3018 # User test
3020 # Date 5 0
3019 # Date 5 0
3021 # Thu Jan 01 00:00:05 1970 +0000
3020 # Thu Jan 01 00:00:05 1970 +0000
3022 # Branch test
3021 # Branch test
3023 # Node ID 3b6f1ec9dde933a40a115a7990f8b320477231af
3022 # Node ID 3b6f1ec9dde933a40a115a7990f8b320477231af
3024 # Parent 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
3023 # Parent 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
3025 dd
3024 dd
3026
3025
3027 diff -r 2f9fa9b998c5 -r 3b6f1ec9dde9 d
3026 diff -r 2f9fa9b998c5 -r 3b6f1ec9dde9 d
3028 --- a/d Thu Jan 01 00:00:04 1970 +0000
3027 --- a/d Thu Jan 01 00:00:04 1970 +0000
3029 +++ b/d Thu Jan 01 00:00:05 1970 +0000
3028 +++ b/d Thu Jan 01 00:00:05 1970 +0000
3030 @@ -1,1 +1,2 @@
3029 @@ -1,1 +1,2 @@
3031 d
3030 d
3032 +d
3031 +d
3033
3032
3034 sending [PATCH] test ...
3033 sending [PATCH] test ...
3035 sending mail: $TESTTMP/t2/pretendmail.sh -f test foo
3034 sending mail: $TESTTMP/t2/pretendmail.sh -f test foo
3036
3035
3037 Test pull url header
3036 Test pull url header
3038 =================================
3037 =================================
3039
3038
3040 basic version
3039 basic version
3041
3040
3042 $ echo 'intro=auto' >> $HGRCPATH
3041 $ echo 'intro=auto' >> $HGRCPATH
3043 $ echo "publicurl=$TESTTMP/t2" >> $HGRCPATH
3042 $ echo "publicurl=$TESTTMP/t2" >> $HGRCPATH
3044 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep '^#'
3043 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep '^#'
3045 abort: public url $TESTTMP/t2 is missing 3b6f1ec9dde9
3044 abort: public url $TESTTMP/t2 is missing 3b6f1ec9dde9
3046 (use 'hg push $TESTTMP/t2 -r 3b6f1ec9dde9')
3045 (use 'hg push $TESTTMP/t2 -r 3b6f1ec9dde9')
3047 [1]
3046 [1]
3048
3047
3049 public missing
3048 public missing
3050
3049
3051 $ echo 'publicurl=$TESTTMP/missing' >> $HGRCPATH
3050 $ echo 'publicurl=$TESTTMP/missing' >> $HGRCPATH
3052 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10'
3051 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10'
3053 unable to access public repo: $TESTTMP/missing
3052 unable to access public repo: $TESTTMP/missing
3054 abort: repository $TESTTMP/missing not found!
3053 abort: repository $TESTTMP/missing not found!
3055 [255]
3054 [255]
3056
3055
3057 node missing at public
3056 node missing at public
3058
3057
3059 $ hg clone -r '9' . ../t3
3058 $ hg clone -r '9' . ../t3
3060 adding changesets
3059 adding changesets
3061 adding manifests
3060 adding manifests
3062 adding file changes
3061 adding file changes
3063 added 3 changesets with 3 changes to 3 files
3062 added 3 changesets with 3 changes to 3 files
3064 new changesets 8580ff50825a:2f9fa9b998c5
3063 new changesets 8580ff50825a:2f9fa9b998c5
3065 updating to branch test
3064 updating to branch test
3066 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
3065 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
3067 $ echo 'publicurl=$TESTTMP/t3' >> $HGRCPATH
3066 $ echo 'publicurl=$TESTTMP/t3' >> $HGRCPATH
3068 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10'
3067 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10'
3069 abort: public url $TESTTMP/t3 is missing 3b6f1ec9dde9
3068 abort: public url $TESTTMP/t3 is missing 3b6f1ec9dde9
3070 (use 'hg push $TESTTMP/t3 -r 3b6f1ec9dde9')
3069 (use 'hg push $TESTTMP/t3 -r 3b6f1ec9dde9')
3071 [255]
3070 [255]
3072
3071
3073 multiple heads are missing at public
3072 multiple heads are missing at public
3074
3073
3075 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '2+10'
3074 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '2+10'
3076 abort: public "$TESTTMP/t3" is missing ff2c9fa2018b and 1 others
3075 abort: public "$TESTTMP/t3" is missing ff2c9fa2018b and 1 others
3077 (use 'hg push $TESTTMP/t3 -r ff2c9fa2018b -r 3b6f1ec9dde9')
3076 (use 'hg push $TESTTMP/t3 -r ff2c9fa2018b -r 3b6f1ec9dde9')
3078 [255]
3077 [255]
3079
3078
3080 #endif
3079 #endif
General Comments 0
You need to be logged in to leave comments. Login now