##// END OF EJS Templates
tests: descending empty dirs works in all hgweb styles, test them too...
Anton Shestakov -
r25346:fe0aac10 default
parent child Browse files
Show More
@@ -27,7 +27,7 b' Set up the repo'
27 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
27 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
28 $ cat hg.pid >> $DAEMON_PIDS
28 $ cat hg.pid >> $DAEMON_PIDS
29
29
30 manifest with descending
30 manifest with descending (paper)
31
31
32 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file'
32 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file'
33 200 Script output follows
33 200 Script output follows
@@ -143,6 +143,423 b' manifest with descending'
143 </html>
143 </html>
144
144
145
145
146 manifest with descending (coal)
147
148 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file?style=coal'
149 200 Script output follows
150
151 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
152 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
153 <head>
154 <link rel="icon" href="/static/hgicon.png" type="image/png" />
155 <meta name="robots" content="index, nofollow" />
156 <link rel="stylesheet" href="/static/style-coal.css" type="text/css" />
157 <script type="text/javascript" src="/static/mercurial.js"></script>
158
159 <title>test: c9f45f7a1659 /</title>
160 </head>
161 <body>
162
163 <div class="container">
164 <div class="menu">
165 <div class="logo">
166 <a href="http://mercurial.selenic.com/">
167 <img src="/static/hglogo.png" alt="mercurial" /></a>
168 </div>
169 <ul>
170 <li><a href="/shortlog/c9f45f7a1659?style=coal">log</a></li>
171 <li><a href="/graph/c9f45f7a1659?style=coal">graph</a></li>
172 <li><a href="/tags?style=coal">tags</a></li>
173 <li><a href="/bookmarks?style=coal">bookmarks</a></li>
174 <li><a href="/branches?style=coal">branches</a></li>
175 </ul>
176 <ul>
177 <li><a href="/rev/c9f45f7a1659?style=coal">changeset</a></li>
178 <li class="active">browse</li>
179 </ul>
180 <ul>
181
182 </ul>
183 <ul>
184 <li><a href="/help?style=coal">help</a></li>
185 </ul>
186 </div>
187
188 <div class="main">
189 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
190 <h3>directory / @ 0:c9f45f7a1659 <span class="tag">tip</span> </h3>
191
192 <form class="search" action="/log">
193 <input type="hidden" name="style" value="coal" />
194 <p><input name="rev" id="search1" type="text" size="30" /></p>
195 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
196 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
197 </form>
198
199 <table class="bigtable">
200 <thead>
201 <tr>
202 <th class="name">name</th>
203 <th class="size">size</th>
204 <th class="permissions">permissions</th>
205 </tr>
206 </thead>
207 <tbody class="stripes2">
208 <tr class="fileline">
209 <td class="name"><a href="/file/c9f45f7a1659/?style=coal">[up]</a></td>
210 <td class="size"></td>
211 <td class="permissions">drwxr-xr-x</td>
212 </tr>
213
214 <tr class="fileline parity1">
215 <td class="name">
216 <a href="/file/c9f45f7a1659/a1?style=coal">
217 <img src="/static/coal-folder.png" alt="dir."/> a1/
218 </a>
219 <a href="/file/c9f45f7a1659/a1/a2/a3/a4?style=coal">
220 a2/a3/a4
221 </a>
222 </td>
223 <td class="size"></td>
224 <td class="permissions">drwxr-xr-x</td>
225 </tr>
226 <tr class="fileline parity0">
227 <td class="name">
228 <a href="/file/c9f45f7a1659/b1?style=coal">
229 <img src="/static/coal-folder.png" alt="dir."/> b1/
230 </a>
231 <a href="/file/c9f45f7a1659/b1/b2/b3?style=coal">
232 b2/b3
233 </a>
234 </td>
235 <td class="size"></td>
236 <td class="permissions">drwxr-xr-x</td>
237 </tr>
238 <tr class="fileline parity1">
239 <td class="name">
240 <a href="/file/c9f45f7a1659/d1?style=coal">
241 <img src="/static/coal-folder.png" alt="dir."/> d1/
242 </a>
243 <a href="/file/c9f45f7a1659/d1/d2?style=coal">
244 d2
245 </a>
246 </td>
247 <td class="size"></td>
248 <td class="permissions">drwxr-xr-x</td>
249 </tr>
250
251 </tbody>
252 </table>
253 </div>
254 </div>
255 <script type="text/javascript">process_dates()</script>
256
257
258 </body>
259 </html>
260
261
262 manifest with descending (monoblue)
263
264 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file?style=monoblue'
265 200 Script output follows
266
267 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
268 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
269 <head>
270 <link rel="icon" href="/static/hgicon.png" type="image/png" />
271 <meta name="robots" content="index, nofollow"/>
272 <link rel="stylesheet" href="/static/style-monoblue.css" type="text/css" />
273 <script type="text/javascript" src="/static/mercurial.js"></script>
274
275 <title>test: files</title>
276 <link rel="alternate" type="application/atom+xml" href="/atom-log" title="Atom feed for test"/>
277 <link rel="alternate" type="application/rss+xml" href="/rss-log" title="RSS feed for test"/>
278 </head>
279
280 <body>
281 <div id="container">
282 <div class="page-header">
283 <h1 class="breadcrumb"><a href="/">Mercurial</a> / files</h1>
284
285 <form action="/log">
286 <input type="hidden" name="style" value="monoblue" />
287 <dl class="search">
288 <dt><label>Search: </label></dt>
289 <dd><input type="text" name="rev" /></dd>
290 </dl>
291 </form>
292
293 <ul class="page-nav">
294 <li><a href="/summary?style=monoblue">summary</a></li>
295 <li><a href="/shortlog?style=monoblue">shortlog</a></li>
296 <li><a href="/changelog?style=monoblue">changelog</a></li>
297 <li><a href="/graph/c9f45f7a1659?style=monoblue">graph</a></li>
298 <li><a href="/tags?style=monoblue">tags</a></li>
299 <li><a href="/bookmarks?style=monoblue">bookmarks</a></li>
300 <li><a href="/branches?style=monoblue">branches</a></li>
301 <li class="current">files</li>
302 <li><a href="/help?style=monoblue">help</a></li>
303 </ul>
304 </div>
305
306 <ul class="submenu">
307 <li><a href="/rev/c9f45f7a1659?style=monoblue">changeset</a></li>
308
309 </ul>
310
311 <h2 class="no-link no-border">files</h2>
312 <p class="files">/ <span class="logtags"><span class="branchtag" title="default">default</span> <span class="tagtag" title="tip">tip</span> </span></p>
313
314 <table>
315 <tr class="parity0">
316 <td>drwxr-xr-x</td>
317 <td></td>
318 <td></td>
319 <td><a href="/file/c9f45f7a1659/?style=monoblue">[up]</a></td>
320 <td class="link">&nbsp;</td>
321 </tr>
322
323 <tr class="parity1">
324 <td>drwxr-xr-x</td>
325 <td></td>
326 <td></td>
327 <td>
328 <a href="/file/c9f45f7a1659/a1?style=monoblue">a1</a>
329 <a href="/file/c9f45f7a1659/a1/a2/a3/a4?style=monoblue">a2/a3/a4</a>
330 </td>
331 <td><a href="/file/c9f45f7a1659/a1?style=monoblue">files</a></td>
332 </tr>
333 <tr class="parity0">
334 <td>drwxr-xr-x</td>
335 <td></td>
336 <td></td>
337 <td>
338 <a href="/file/c9f45f7a1659/b1?style=monoblue">b1</a>
339 <a href="/file/c9f45f7a1659/b1/b2/b3?style=monoblue">b2/b3</a>
340 </td>
341 <td><a href="/file/c9f45f7a1659/b1?style=monoblue">files</a></td>
342 </tr>
343 <tr class="parity1">
344 <td>drwxr-xr-x</td>
345 <td></td>
346 <td></td>
347 <td>
348 <a href="/file/c9f45f7a1659/d1?style=monoblue">d1</a>
349 <a href="/file/c9f45f7a1659/d1/d2?style=monoblue">d2</a>
350 </td>
351 <td><a href="/file/c9f45f7a1659/d1?style=monoblue">files</a></td>
352 </tr>
353
354 </table>
355
356 <script type="text/javascript">process_dates()</script>
357 <div class="page-footer">
358 <p>Mercurial Repository: test</p>
359 <ul class="rss-logo">
360 <li><a href="/rss-log">RSS</a></li>
361 <li><a href="/atom-log">Atom</a></li>
362 </ul>
363
364 </div>
365
366 <div id="powered-by">
367 <p><a href="http://mercurial.selenic.com/" title="Mercurial"><img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a></p>
368 </div>
369
370 <div id="corner-top-left"></div>
371 <div id="corner-top-right"></div>
372 <div id="corner-bottom-left"></div>
373 <div id="corner-bottom-right"></div>
374
375 </div>
376
377 </body>
378 </html>
379
380
381 manifest with descending (gitweb)
382
383 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file?style=gitweb'
384 200 Script output follows
385
386 <?xml version="1.0" encoding="ascii"?>
387 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
388 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
389 <head>
390 <link rel="icon" href="/static/hgicon.png" type="image/png" />
391 <meta name="robots" content="index, nofollow"/>
392 <link rel="stylesheet" href="/static/style-gitweb.css" type="text/css" />
393 <script type="text/javascript" src="/static/mercurial.js"></script>
394
395 <title>test: files</title>
396 <link rel="alternate" type="application/atom+xml"
397 href="/atom-log" title="Atom feed for test"/>
398 <link rel="alternate" type="application/rss+xml"
399 href="/rss-log" title="RSS feed for test"/>
400 </head>
401 <body>
402
403 <div class="page_header">
404 <a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a>
405 <a href="/">Mercurial</a> / files
406 </div>
407
408 <div class="page_nav">
409 <a href="/summary?style=gitweb">summary</a> |
410 <a href="/shortlog?style=gitweb">shortlog</a> |
411 <a href="/log?style=gitweb">changelog</a> |
412 <a href="/graph?style=gitweb">graph</a> |
413 <a href="/tags?style=gitweb">tags</a> |
414 <a href="/bookmarks?style=gitweb">bookmarks</a> |
415 <a href="/branches?style=gitweb">branches</a> |
416 files |
417 <a href="/rev/c9f45f7a1659?style=gitweb">changeset</a> |
418 <a href="/help?style=gitweb">help</a>
419 <br/>
420 </div>
421
422 <div class="title">/ <span class="logtags"><span class="branchtag" title="default">default</span> <span class="tagtag" title="tip">tip</span> </span></div>
423 <table cellspacing="0">
424 <tr class="parity0">
425 <td style="font-family:monospace">drwxr-xr-x</td>
426 <td style="font-family:monospace"></td>
427 <td style="font-family:monospace"></td>
428 <td><a href="/file/c9f45f7a1659/?style=gitweb">[up]</a></td>
429 <td class="link">&nbsp;</td>
430 </tr>
431
432 <tr class="parity1">
433 <td style="font-family:monospace">drwxr-xr-x</td>
434 <td style="font-family:monospace"></td>
435 <td style="font-family:monospace"></td>
436 <td>
437 <a href="/file/c9f45f7a1659/a1?style=gitweb">a1</a>
438 <a href="/file/c9f45f7a1659/a1/a2/a3/a4?style=gitweb">a2/a3/a4</a>
439 </td>
440 <td class="link">
441 <a href="/file/c9f45f7a1659/a1?style=gitweb">files</a>
442 </td>
443 </tr>
444 <tr class="parity0">
445 <td style="font-family:monospace">drwxr-xr-x</td>
446 <td style="font-family:monospace"></td>
447 <td style="font-family:monospace"></td>
448 <td>
449 <a href="/file/c9f45f7a1659/b1?style=gitweb">b1</a>
450 <a href="/file/c9f45f7a1659/b1/b2/b3?style=gitweb">b2/b3</a>
451 </td>
452 <td class="link">
453 <a href="/file/c9f45f7a1659/b1?style=gitweb">files</a>
454 </td>
455 </tr>
456 <tr class="parity1">
457 <td style="font-family:monospace">drwxr-xr-x</td>
458 <td style="font-family:monospace"></td>
459 <td style="font-family:monospace"></td>
460 <td>
461 <a href="/file/c9f45f7a1659/d1?style=gitweb">d1</a>
462 <a href="/file/c9f45f7a1659/d1/d2?style=gitweb">d2</a>
463 </td>
464 <td class="link">
465 <a href="/file/c9f45f7a1659/d1?style=gitweb">files</a>
466 </td>
467 </tr>
468
469 </table>
470
471 <script type="text/javascript">process_dates()</script>
472 <div class="page_footer">
473 <div class="page_footer_text">test</div>
474 <div class="rss_logo">
475 <a href="/rss-log">RSS</a>
476 <a href="/atom-log">Atom</a>
477 </div>
478 <br />
479
480 </div>
481 </body>
482 </html>
483
484
485 manifest with descending (spartan)
486
487 $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file?style=spartan'
488 200 Script output follows
489
490 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
491 <html>
492 <head>
493 <link rel="icon" href="/static/hgicon.png" type="image/png">
494 <meta name="robots" content="index, nofollow" />
495 <link rel="stylesheet" href="/static/style.css" type="text/css" />
496 <script type="text/javascript" src="/static/mercurial.js"></script>
497
498 <title>test: files for changeset c9f45f7a1659</title>
499 </head>
500 <body>
501
502 <div class="buttons">
503 <a href="/log/0?style=spartan">changelog</a>
504 <a href="/shortlog/0?style=spartan">shortlog</a>
505 <a href="/graph?style=spartan">graph</a>
506 <a href="/tags?style=spartan">tags</a>
507 <a href="/branches?style=spartan">branches</a>
508 <a href="/rev/c9f45f7a1659?style=spartan">changeset</a>
509
510 <a href="/help?style=spartan">help</a>
511 </div>
512
513 <h2><a href="/">Mercurial</a> / files for changeset <a href="/rev/c9f45f7a1659">c9f45f7a1659</a>: /</h2>
514
515 <table cellpadding="0" cellspacing="0">
516 <tr class="parity0">
517 <td><tt>drwxr-xr-x</tt>&nbsp;
518 <td>&nbsp;
519 <td>&nbsp;
520 <td><a href="/file/c9f45f7a1659/?style=spartan">[up]</a>
521 </tr>
522
523 <tr class="parity1">
524 <td><tt>drwxr-xr-x</tt>&nbsp;
525 <td>&nbsp;
526 <td>&nbsp;
527 <td>
528 <a href="/file/c9f45f7a1659/a1?style=spartan">a1/</a>
529 <a href="/file/c9f45f7a1659/a1/a2/a3/a4?style=spartan">
530 a2/a3/a4
531 </a>
532 <tr class="parity0">
533 <td><tt>drwxr-xr-x</tt>&nbsp;
534 <td>&nbsp;
535 <td>&nbsp;
536 <td>
537 <a href="/file/c9f45f7a1659/b1?style=spartan">b1/</a>
538 <a href="/file/c9f45f7a1659/b1/b2/b3?style=spartan">
539 b2/b3
540 </a>
541 <tr class="parity1">
542 <td><tt>drwxr-xr-x</tt>&nbsp;
543 <td>&nbsp;
544 <td>&nbsp;
545 <td>
546 <a href="/file/c9f45f7a1659/d1?style=spartan">d1/</a>
547 <a href="/file/c9f45f7a1659/d1/d2?style=spartan">
548 d2
549 </a>
550
551 </table>
552 <script type="text/javascript">process_dates()</script>
553
554 <div class="logo">
555 <a href="http://mercurial.selenic.com/">
556 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a>
557 </div>
558
559 </body>
560 </html>
561
562
146 $ cat errors.log
563 $ cat errors.log
147
564
148 $ cd ..
565 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now