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