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