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