comparison tests/test-hgweb-commands.t @ 29439:c42a3fd5c1fc

hgweb: reindent atom/changelogentry.tmpl It was mixing tabs and spaces, and not in a good way. Indent style of other atom entries seems to be 1 space per level, so let's apply it here as well.
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 29 Jun 2016 22:48:32 +0800
parents 849b8e84487e
children 6a98f9408a50
comparison
equal deleted inserted replaced
29438:82858f144217 29439:c42a3fd5c1fc
79 <email>&#116;&#101;&#115;&#116;</email> 79 <email>&#116;&#101;&#115;&#116;</email>
80 </author> 80 </author>
81 <updated>1970-01-01T00:00:00+00:00</updated> 81 <updated>1970-01-01T00:00:00+00:00</updated>
82 <published>1970-01-01T00:00:00+00:00</published> 82 <published>1970-01-01T00:00:00+00:00</published>
83 <content type="xhtml"> 83 <content type="xhtml">
84 <table xmlns="http://www.w3.org/1999/xhtml"> 84 <table xmlns="http://www.w3.org/1999/xhtml">
85 <tr> 85 <tr>
86 <th style="text-align:left;">changeset</th> 86 <th style="text-align:left;">changeset</th>
87 <td>cad8025a2e87</td> 87 <td>cad8025a2e87</td>
88 </tr> 88 </tr>
89 <tr> 89 <tr>
90 <th style="text-align:left;">branch</th> 90 <th style="text-align:left;">branch</th>
91 <td>unstable</td> 91 <td>unstable</td>
92 </tr> 92 </tr>
93 <tr> 93 <tr>
94 <th style="text-align:left;">bookmark</th> 94 <th style="text-align:left;">bookmark</th>
95 <td>something</td> 95 <td>something</td>
96 </tr> 96 </tr>
97 <tr> 97 <tr>
98 <th style="text-align:left;">tag</th> 98 <th style="text-align:left;">tag</th>
99 <td>tip</td> 99 <td>tip</td>
100 </tr> 100 </tr>
101 <tr> 101 <tr>
102 <th style="text-align:left;">user</th> 102 <th style="text-align:left;">user</th>
103 <td>&#116;&#101;&#115;&#116;</td> 103 <td>&#116;&#101;&#115;&#116;</td>
104 </tr> 104 </tr>
105 <tr> 105 <tr>
106 <th style="text-align:left;vertical-align:top;">description</th> 106 <th style="text-align:left;vertical-align:top;">description</th>
107 <td>branch commit with null character: (websub)</td> 107 <td>branch commit with null character: (websub)</td>
108 </tr> 108 </tr>
109 <tr> 109 <tr>
110 <th style="text-align:left;vertical-align:top;">files</th> 110 <th style="text-align:left;vertical-align:top;">files</th>
111 <td></td> 111 <td></td>
112 </tr> 112 </tr>
113 </table> 113 </table>
114 </content> 114 </content>
115 </entry> 115 </entry>
116 <entry> 116 <entry>
117 <title>[stable] branch</title> 117 <title>[stable] branch</title>
118 <id>http://*:$HGPORT/#changeset-1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe</id> (glob) 118 <id>http://*:$HGPORT/#changeset-1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe</id> (glob)
122 <email>&#116;&#101;&#115;&#116;</email> 122 <email>&#116;&#101;&#115;&#116;</email>
123 </author> 123 </author>
124 <updated>1970-01-01T00:00:00+00:00</updated> 124 <updated>1970-01-01T00:00:00+00:00</updated>
125 <published>1970-01-01T00:00:00+00:00</published> 125 <published>1970-01-01T00:00:00+00:00</published>
126 <content type="xhtml"> 126 <content type="xhtml">
127 <table xmlns="http://www.w3.org/1999/xhtml"> 127 <table xmlns="http://www.w3.org/1999/xhtml">
128 <tr> 128 <tr>
129 <th style="text-align:left;">changeset</th> 129 <th style="text-align:left;">changeset</th>
130 <td>1d22e65f027e</td> 130 <td>1d22e65f027e</td>
131 </tr> 131 </tr>
132 <tr> 132 <tr>
133 <th style="text-align:left;">branch</th> 133 <th style="text-align:left;">branch</th>
134 <td>stable</td> 134 <td>stable</td>
135 </tr> 135 </tr>
136 <tr> 136 <tr>
137 <th style="text-align:left;">bookmark</th> 137 <th style="text-align:left;">bookmark</th>
138 <td></td> 138 <td></td>
139 </tr> 139 </tr>
140 <tr> 140 <tr>
141 <th style="text-align:left;">tag</th> 141 <th style="text-align:left;">tag</th>
142 <td></td> 142 <td></td>
143 </tr> 143 </tr>
144 <tr> 144 <tr>
145 <th style="text-align:left;">user</th> 145 <th style="text-align:left;">user</th>
146 <td>&#116;&#101;&#115;&#116;</td> 146 <td>&#116;&#101;&#115;&#116;</td>
147 </tr> 147 </tr>
148 <tr> 148 <tr>
149 <th style="text-align:left;vertical-align:top;">description</th> 149 <th style="text-align:left;vertical-align:top;">description</th>
150 <td>branch(websub)</td> 150 <td>branch(websub)</td>
151 </tr> 151 </tr>
152 <tr> 152 <tr>
153 <th style="text-align:left;vertical-align:top;">files</th> 153 <th style="text-align:left;vertical-align:top;">files</th>
154 <td>foo<br /></td> 154 <td>foo<br /></td>
155 </tr> 155 </tr>
156 </table> 156 </table>
157 </content> 157 </content>
158 </entry> 158 </entry>
159 <entry> 159 <entry>
160 <title>[default] Added tag 1.0 for changeset 2ef0ac749a14</title> 160 <title>[default] Added tag 1.0 for changeset 2ef0ac749a14</title>
161 <id>http://*:$HGPORT/#changeset-a4f92ed23982be056b9852de5dfe873eaac7f0de</id> (glob) 161 <id>http://*:$HGPORT/#changeset-a4f92ed23982be056b9852de5dfe873eaac7f0de</id> (glob)
165 <email>&#116;&#101;&#115;&#116;</email> 165 <email>&#116;&#101;&#115;&#116;</email>
166 </author> 166 </author>
167 <updated>1970-01-01T00:00:00+00:00</updated> 167 <updated>1970-01-01T00:00:00+00:00</updated>
168 <published>1970-01-01T00:00:00+00:00</published> 168 <published>1970-01-01T00:00:00+00:00</published>
169 <content type="xhtml"> 169 <content type="xhtml">
170 <table xmlns="http://www.w3.org/1999/xhtml"> 170 <table xmlns="http://www.w3.org/1999/xhtml">
171 <tr> 171 <tr>
172 <th style="text-align:left;">changeset</th> 172 <th style="text-align:left;">changeset</th>
173 <td>a4f92ed23982</td> 173 <td>a4f92ed23982</td>
174 </tr> 174 </tr>
175 <tr> 175 <tr>
176 <th style="text-align:left;">branch</th> 176 <th style="text-align:left;">branch</th>
177 <td>default</td> 177 <td>default</td>
178 </tr> 178 </tr>
179 <tr> 179 <tr>
180 <th style="text-align:left;">bookmark</th> 180 <th style="text-align:left;">bookmark</th>
181 <td></td> 181 <td></td>
182 </tr> 182 </tr>
183 <tr> 183 <tr>
184 <th style="text-align:left;">tag</th> 184 <th style="text-align:left;">tag</th>
185 <td></td> 185 <td></td>
186 </tr> 186 </tr>
187 <tr> 187 <tr>
188 <th style="text-align:left;">user</th> 188 <th style="text-align:left;">user</th>
189 <td>&#116;&#101;&#115;&#116;</td> 189 <td>&#116;&#101;&#115;&#116;</td>
190 </tr> 190 </tr>
191 <tr> 191 <tr>
192 <th style="text-align:left;vertical-align:top;">description</th> 192 <th style="text-align:left;vertical-align:top;">description</th>
193 <td>Added tag 1.0 for changeset 2ef0ac749a14(websub)</td> 193 <td>Added tag 1.0 for changeset 2ef0ac749a14(websub)</td>
194 </tr> 194 </tr>
195 <tr> 195 <tr>
196 <th style="text-align:left;vertical-align:top;">files</th> 196 <th style="text-align:left;vertical-align:top;">files</th>
197 <td>.hgtags<br /></td> 197 <td>.hgtags<br /></td>
198 </tr> 198 </tr>
199 </table> 199 </table>
200 </content> 200 </content>
201 </entry> 201 </entry>
202 <entry> 202 <entry>
203 <title>base</title> 203 <title>base</title>
204 <id>http://*:$HGPORT/#changeset-2ef0ac749a14e4f57a5a822464a0902c6f7f448f</id> (glob) 204 <id>http://*:$HGPORT/#changeset-2ef0ac749a14e4f57a5a822464a0902c6f7f448f</id> (glob)
208 <email>&#116;&#101;&#115;&#116;</email> 208 <email>&#116;&#101;&#115;&#116;</email>
209 </author> 209 </author>
210 <updated>1970-01-01T00:00:00+00:00</updated> 210 <updated>1970-01-01T00:00:00+00:00</updated>
211 <published>1970-01-01T00:00:00+00:00</published> 211 <published>1970-01-01T00:00:00+00:00</published>
212 <content type="xhtml"> 212 <content type="xhtml">
213 <table xmlns="http://www.w3.org/1999/xhtml"> 213 <table xmlns="http://www.w3.org/1999/xhtml">
214 <tr> 214 <tr>
215 <th style="text-align:left;">changeset</th> 215 <th style="text-align:left;">changeset</th>
216 <td>2ef0ac749a14</td> 216 <td>2ef0ac749a14</td>
217 </tr> 217 </tr>
218 <tr> 218 <tr>
219 <th style="text-align:left;">branch</th> 219 <th style="text-align:left;">branch</th>
220 <td></td> 220 <td></td>
221 </tr> 221 </tr>
222 <tr> 222 <tr>
223 <th style="text-align:left;">bookmark</th> 223 <th style="text-align:left;">bookmark</th>
224 <td>anotherthing</td> 224 <td>anotherthing</td>
225 </tr> 225 </tr>
226 <tr> 226 <tr>
227 <th style="text-align:left;">tag</th> 227 <th style="text-align:left;">tag</th>
228 <td>1.0</td> 228 <td>1.0</td>
229 </tr> 229 </tr>
230 <tr> 230 <tr>
231 <th style="text-align:left;">user</th> 231 <th style="text-align:left;">user</th>
232 <td>&#116;&#101;&#115;&#116;</td> 232 <td>&#116;&#101;&#115;&#116;</td>
233 </tr> 233 </tr>
234 <tr> 234 <tr>
235 <th style="text-align:left;vertical-align:top;">description</th> 235 <th style="text-align:left;vertical-align:top;">description</th>
236 <td>base(websub)</td> 236 <td>base(websub)</td>
237 </tr> 237 </tr>
238 <tr> 238 <tr>
239 <th style="text-align:left;vertical-align:top;">files</th> 239 <th style="text-align:left;vertical-align:top;">files</th>
240 <td>da/foo<br />foo<br /></td> 240 <td>da/foo<br />foo<br /></td>
241 </tr> 241 </tr>
242 </table> 242 </table>
243 </content> 243 </content>
244 </entry> 244 </entry>
245 245
246 </feed> 246 </feed>
247 $ get-with-headers.py 127.0.0.1:$HGPORT 'log/?style=rss' 247 $ get-with-headers.py 127.0.0.1:$HGPORT 'log/?style=rss'
443 <email>&#116;&#101;&#115;&#116;</email> 443 <email>&#116;&#101;&#115;&#116;</email>
444 </author> 444 </author>
445 <updated>1970-01-01T00:00:00+00:00</updated> 445 <updated>1970-01-01T00:00:00+00:00</updated>
446 <published>1970-01-01T00:00:00+00:00</published> 446 <published>1970-01-01T00:00:00+00:00</published>
447 <content type="xhtml"> 447 <content type="xhtml">
448 <table xmlns="http://www.w3.org/1999/xhtml"> 448 <table xmlns="http://www.w3.org/1999/xhtml">
449 <tr> 449 <tr>
450 <th style="text-align:left;">changeset</th> 450 <th style="text-align:left;">changeset</th>
451 <td>a4f92ed23982</td> 451 <td>a4f92ed23982</td>
452 </tr> 452 </tr>
453 <tr> 453 <tr>
454 <th style="text-align:left;">branch</th> 454 <th style="text-align:left;">branch</th>
455 <td>default</td> 455 <td>default</td>
456 </tr> 456 </tr>
457 <tr> 457 <tr>
458 <th style="text-align:left;">bookmark</th> 458 <th style="text-align:left;">bookmark</th>
459 <td></td> 459 <td></td>
460 </tr> 460 </tr>
461 <tr> 461 <tr>
462 <th style="text-align:left;">tag</th> 462 <th style="text-align:left;">tag</th>
463 <td></td> 463 <td></td>
464 </tr> 464 </tr>
465 <tr> 465 <tr>
466 <th style="text-align:left;">user</th> 466 <th style="text-align:left;">user</th>
467 <td>&#116;&#101;&#115;&#116;</td> 467 <td>&#116;&#101;&#115;&#116;</td>
468 </tr> 468 </tr>
469 <tr> 469 <tr>
470 <th style="text-align:left;vertical-align:top;">description</th> 470 <th style="text-align:left;vertical-align:top;">description</th>
471 <td>Added tag 1.0 for changeset 2ef0ac749a14(websub)</td> 471 <td>Added tag 1.0 for changeset 2ef0ac749a14(websub)</td>
472 </tr> 472 </tr>
473 <tr> 473 <tr>
474 <th style="text-align:left;vertical-align:top;">files</th> 474 <th style="text-align:left;vertical-align:top;">files</th>
475 <td>.hgtags<br /></td> 475 <td>.hgtags<br /></td>
476 </tr> 476 </tr>
477 </table> 477 </table>
478 </content> 478 </content>
479 </entry> 479 </entry>
480 <entry> 480 <entry>
481 <title>base</title> 481 <title>base</title>
482 <id>http://*:$HGPORT/#changeset-2ef0ac749a14e4f57a5a822464a0902c6f7f448f</id> (glob) 482 <id>http://*:$HGPORT/#changeset-2ef0ac749a14e4f57a5a822464a0902c6f7f448f</id> (glob)
486 <email>&#116;&#101;&#115;&#116;</email> 486 <email>&#116;&#101;&#115;&#116;</email>
487 </author> 487 </author>
488 <updated>1970-01-01T00:00:00+00:00</updated> 488 <updated>1970-01-01T00:00:00+00:00</updated>
489 <published>1970-01-01T00:00:00+00:00</published> 489 <published>1970-01-01T00:00:00+00:00</published>
490 <content type="xhtml"> 490 <content type="xhtml">
491 <table xmlns="http://www.w3.org/1999/xhtml"> 491 <table xmlns="http://www.w3.org/1999/xhtml">
492 <tr> 492 <tr>
493 <th style="text-align:left;">changeset</th> 493 <th style="text-align:left;">changeset</th>
494 <td>2ef0ac749a14</td> 494 <td>2ef0ac749a14</td>
495 </tr> 495 </tr>
496 <tr> 496 <tr>
497 <th style="text-align:left;">branch</th> 497 <th style="text-align:left;">branch</th>
498 <td></td> 498 <td></td>
499 </tr> 499 </tr>
500 <tr> 500 <tr>
501 <th style="text-align:left;">bookmark</th> 501 <th style="text-align:left;">bookmark</th>
502 <td>anotherthing</td> 502 <td>anotherthing</td>
503 </tr> 503 </tr>
504 <tr> 504 <tr>
505 <th style="text-align:left;">tag</th> 505 <th style="text-align:left;">tag</th>
506 <td>1.0</td> 506 <td>1.0</td>
507 </tr> 507 </tr>
508 <tr> 508 <tr>
509 <th style="text-align:left;">user</th> 509 <th style="text-align:left;">user</th>
510 <td>&#116;&#101;&#115;&#116;</td> 510 <td>&#116;&#101;&#115;&#116;</td>
511 </tr> 511 </tr>
512 <tr> 512 <tr>
513 <th style="text-align:left;vertical-align:top;">description</th> 513 <th style="text-align:left;vertical-align:top;">description</th>
514 <td>base(websub)</td> 514 <td>base(websub)</td>
515 </tr> 515 </tr>
516 <tr> 516 <tr>
517 <th style="text-align:left;vertical-align:top;">files</th> 517 <th style="text-align:left;vertical-align:top;">files</th>
518 <td>da/foo<br />foo<br /></td> 518 <td>da/foo<br />foo<br /></td>
519 </tr> 519 </tr>
520 </table> 520 </table>
521 </content> 521 </content>
522 </entry> 522 </entry>
523 523
524 </feed> 524 </feed>
525 $ get-with-headers.py 127.0.0.1:$HGPORT 'log/1/?style=rss' 525 $ get-with-headers.py 127.0.0.1:$HGPORT 'log/1/?style=rss'
637 <email>&#116;&#101;&#115;&#116;</email> 637 <email>&#116;&#101;&#115;&#116;</email>
638 </author> 638 </author>
639 <updated>1970-01-01T00:00:00+00:00</updated> 639 <updated>1970-01-01T00:00:00+00:00</updated>
640 <published>1970-01-01T00:00:00+00:00</published> 640 <published>1970-01-01T00:00:00+00:00</published>
641 <content type="xhtml"> 641 <content type="xhtml">
642 <table xmlns="http://www.w3.org/1999/xhtml"> 642 <table xmlns="http://www.w3.org/1999/xhtml">
643 <tr> 643 <tr>
644 <th style="text-align:left;">changeset</th> 644 <th style="text-align:left;">changeset</th>
645 <td>2ef0ac749a14</td> 645 <td>2ef0ac749a14</td>
646 </tr> 646 </tr>
647 <tr> 647 <tr>
648 <th style="text-align:left;">branch</th> 648 <th style="text-align:left;">branch</th>
649 <td></td> 649 <td></td>
650 </tr> 650 </tr>
651 <tr> 651 <tr>
652 <th style="text-align:left;">bookmark</th> 652 <th style="text-align:left;">bookmark</th>
653 <td>anotherthing</td> 653 <td>anotherthing</td>
654 </tr> 654 </tr>
655 <tr> 655 <tr>
656 <th style="text-align:left;">tag</th> 656 <th style="text-align:left;">tag</th>
657 <td>1.0</td> 657 <td>1.0</td>
658 </tr> 658 </tr>
659 <tr> 659 <tr>
660 <th style="text-align:left;">user</th> 660 <th style="text-align:left;">user</th>
661 <td>&#116;&#101;&#115;&#116;</td> 661 <td>&#116;&#101;&#115;&#116;</td>
662 </tr> 662 </tr>
663 <tr> 663 <tr>
664 <th style="text-align:left;vertical-align:top;">description</th> 664 <th style="text-align:left;vertical-align:top;">description</th>
665 <td>base(websub)</td> 665 <td>base(websub)</td>
666 </tr> 666 </tr>
667 <tr> 667 <tr>
668 <th style="text-align:left;vertical-align:top;">files</th> 668 <th style="text-align:left;vertical-align:top;">files</th>
669 <td></td> 669 <td></td>
670 </tr> 670 </tr>
671 </table> 671 </table>
672 </content> 672 </content>
673 </entry> 673 </entry>
674 674
675 </feed> 675 </feed>
676 $ get-with-headers.py 127.0.0.1:$HGPORT 'log/1/foo/?style=rss' 676 $ get-with-headers.py 127.0.0.1:$HGPORT 'log/1/foo/?style=rss'