comparison tests/test-mq-header-date.out @ 9337:2b1260436f83

mq: add the date with qrefresh, even if missing (issue1768) When setting the date with qrefresh (-d|-D), and the patch does have neither a 'Date:' nor a '# Date' header, add the date field as such: - if the patch has a 'From:' header, add a 'Date:' header - otherwise, upgrade to Mercurial extended patch format and add '# Date'
author Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
date Wed, 12 Aug 2009 10:57:27 +0200
parents dd6f605b15c0
children 8cb81d75730c
comparison
equal deleted inserted replaced
9336:dd6f605b15c0 9337:2b1260436f83
33 @@ -0,0 +1,1 @@ 33 @@ -0,0 +1,1 @@
34 +2 34 +2
35 1: [mq]: 2.patch - test 35 1: [mq]: 2.patch - test
36 0: [mq]: 1.patch - test 36 0: [mq]: 1.patch - test
37 ==== qref -d 37 ==== qref -d
38 # HG changeset patch
39 # Date 5 0
40
41
38 diff -r ... 2 42 diff -r ... 2
39 --- /dev/null 43 --- /dev/null
40 +++ b/2 44 +++ b/2
41 @@ -0,0 +1,1 @@ 45 @@ -0,0 +1,1 @@
42 +2 46 +2
116 +4 120 +4
117 2: Four - test 121 2: Four - test
118 1: Three (again) - test 122 1: Three (again) - test
119 0: [mq]: 1.patch - test 123 0: [mq]: 1.patch - test
120 ==== qref -d 124 ==== qref -d
125 # HG changeset patch
126 # Date 9 0
127
121 Four 128 Four
122 129
123 diff -r ... 4 130 diff -r ... 4
124 --- /dev/null 131 --- /dev/null
125 +++ b/4 132 +++ b/4
175 3: [mq]: 6.patch - jane 182 3: [mq]: 6.patch - jane
176 2: [mq]: 5.patch - test 183 2: [mq]: 5.patch - test
177 1: Three (again) - test 184 1: Three (again) - test
178 0: [mq]: 1.patch - test 185 0: [mq]: 1.patch - test
179 ==== qref -d 186 ==== qref -d
187 Date: 12 0
180 From: jane 188 From: jane
181 189
182 diff -r ... 6 190 diff -r ... 6
183 --- /dev/null 191 --- /dev/null
184 +++ b/6 192 +++ b/6
230 2: [mq]: 5.patch - test 238 2: [mq]: 5.patch - test
231 1: Three (again) - test 239 1: Three (again) - test
232 0: [mq]: 1.patch - test 240 0: [mq]: 1.patch - test
233 ==== qref -u -d 241 ==== qref -u -d
234 # HG changeset patch 242 # HG changeset patch
243 # Date 14 0
235 # User john 244 # User john
236 245
237 246
238 diff -r ... 8 247 diff -r ... 8
239 --- /dev/null 248 --- /dev/null
261 2: [mq]: 5.patch - test 270 2: [mq]: 5.patch - test
262 1: Three (again) - test 271 1: Three (again) - test
263 0: [mq]: 1.patch - test 272 0: [mq]: 1.patch - test
264 ==== qref -u -d 273 ==== qref -u -d
265 # HG changeset patch 274 # HG changeset patch
275 # Date 15 0
266 # User john 276 # User john
267 277
268 Nine 278 Nine
269 279
270 diff -r ... 9 280 diff -r ... 9