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