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