Debian Codegraph @

tests/test-hgwebdir.t

raw
1 #require serve
2
3 hide outer repo and work in dir without '.hg'
4 $ hg init
5 $ mkdir dir
6 $ cd dir
7
8 Tests some basic hgwebdir functionality. Tests setting up paths and
9 collection, different forms of 404s and the subdirectory support.
10
11 $ mkdir webdir
12 $ cd webdir
13 $ hg init a
14 $ echo a > a/a
15 $ hg --cwd a ci -Ama -d'1 0'
16 adding a
17
18 create a mercurial queue repository
19
20 $ hg --cwd a qinit --config extensions.hgext.mq= -c
21 $ hg init b
22 $ echo b > b/b
23 $ hg --cwd b ci -Amb -d'2 0'
24 adding b
25
26 create a nested repository
27
28 $ cd b
29 $ hg init d
30 $ echo d > d/d
31 $ hg --cwd d ci -Amd -d'3 0'
32 adding d
33 $ cd ..
34 $ hg init c
35 $ echo c > c/c
36 $ hg --cwd c ci -Amc -d'3 0'
37 adding c
38
39 create a subdirectory containing repositories and subrepositories
40
41 $ mkdir notrepo
42 $ cd notrepo
43 $ hg init e
44 $ echo e > e/e
45 $ hg --cwd e ci -Ame -d'4 0'
46 adding e
47 $ hg init e/e2
48 $ echo e2 > e/e2/e2
49 $ hg --cwd e/e2 ci -Ame2 -d '4 0'
50 adding e2
51 $ hg init f
52 $ echo f > f/f
53 $ hg --cwd f ci -Amf -d'4 0'
54 adding f
55 $ hg init f/f2
56 $ echo f2 > f/f2/f2
57 $ hg --cwd f/f2 ci -Amf2 -d '4 0'
58 adding f2
59 $ echo 'f2 = f2' > f/.hgsub
60 $ hg -R f ci -Am 'add subrepo' -d'4 0'
61 adding .hgsub
62 $ cat >> f/.hg/hgrc << EOF
63 > [web]
64 > name = fancy name for repo f
65 > labels = foo, bar
66 > EOF
67 $ cd ..
68
69 add file under the directory which could be shadowed by another repository
70
71 $ mkdir notrepo/f/f3
72 $ echo f3/file > notrepo/f/f3/file
73 $ hg -R notrepo/f ci -Am 'f3/file'
74 adding f3/file
75 $ hg -R notrepo/f update null
76 0 files updated, 0 files merged, 4 files removed, 0 files unresolved
77 $ hg init notrepo/f/f3
78 $ cat <<'EOF' > notrepo/f/f3/.hg/hgrc
79 > [web]
80 > hidden = true
81 > EOF
82
83 create repository without .hg/store
84
85 $ hg init nostore
86 $ rm -R nostore/.hg/store
87 $ root=`pwd`
88 $ cd ..
89
90 serve
91 $ cat > paths.conf <<EOF
92 > [paths]
93 > a=$root/a
94 > b=$root/b
95 > EOF
96 $ hg serve -p $HGPORT -d --pid-file=hg.pid --webdir-conf paths.conf \
97 > -A access-paths.log -E error-paths-1.log
98 $ cat hg.pid >> $DAEMON_PIDS
99
100 should give a 404 - file does not exist
101
102 $ get-with-headers.py localhost:$HGPORT 'a/file/tip/bork?style=raw'
103 404 Not Found
104
105
106 error: bork@8580ff50825a50c8f716709acdf8de0deddcd6ab: not found in manifest
107 [1]
108
109 should succeed
110
111 $ get-with-headers.py localhost:$HGPORT '?style=raw'
112 200 Script output follows
113
114
115 /a/
116 /b/
117
118 $ get-with-headers.py localhost:$HGPORT '?style=json'
119 200 Script output follows
120
121 {
122 "entries": [{
123 "name": "a",
124 "description": "unknown",
125 "contact": "Foo Bar \[email protected]\u003e",
126 "lastchange": [*, *], (glob)
127 "labels": []
128 }, {
129 "name": "b",
130 "description": "unknown",
131 "contact": "Foo Bar \[email protected]\u003e",
132 "lastchange": [*, *], (glob)
133 "labels": []
134 }]
135 } (no-eol)
136
137 $ get-with-headers.py localhost:$HGPORT 'a/file/tip/a?style=raw'
138 200 Script output follows
139
140 a
141 $ get-with-headers.py localhost:$HGPORT 'b/file/tip/b?style=raw'
142 200 Script output follows
143
144 b
145
146 should give a 404 - repo is not published
147
148 $ get-with-headers.py localhost:$HGPORT 'c/file/tip/c?style=raw'
149 404 Not Found
150
151
152 error: repository c/file/tip/c not found
153 [1]
154
155 atom-log without basedir
156
157 $ get-with-headers.py localhost:$HGPORT 'a/atom-log' | grep '<link'
158 <link rel="self" href="http://*:$HGPORT/a/atom-log"/> (glob)
159 <link rel="alternate" href="http://*:$HGPORT/a/"/> (glob)
160 <link href="http://*:$HGPORT/a/rev/8580ff50825a"/> (glob)
161
162 rss-log without basedir
163
164 $ get-with-headers.py localhost:$HGPORT 'a/rss-log' | grep '<guid'
165 <guid isPermaLink="true">http://*:$HGPORT/a/rev/8580ff50825a</guid> (glob)
166 $ cat > paths.conf <<EOF
167 > [paths]
168 > t/a/=$root/a
169 > b=$root/b
170 > coll=$root/*
171 > rcoll=$root/**
172 > star=*
173 > starstar=**
174 > astar=webdir/a/*
175 > EOF
176 $ hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
177 > -A access-paths.log -E error-paths-2.log
178 $ cat hg.pid >> $DAEMON_PIDS
179
180 should succeed, slashy names
181
182 $ get-with-headers.py localhost:$HGPORT1 '?style=raw'
183 200 Script output follows
184
185
186 /t/a/
187 /b/
188 /coll/a/
189 /coll/a/.hg/patches/
190 /coll/b/
191 /coll/c/
192 /coll/notrepo/e/
193 /coll/notrepo/f/
194 /rcoll/a/
195 /rcoll/a/.hg/patches/
196 /rcoll/b/
197 /rcoll/b/d/
198 /rcoll/c/
199 /rcoll/notrepo/e/
200 /rcoll/notrepo/e/e2/
201 /rcoll/notrepo/f/
202 /rcoll/notrepo/f/f2/
203 /star/webdir/a/
204 /star/webdir/a/.hg/patches/
205 /star/webdir/b/
206 /star/webdir/c/
207 /star/webdir/notrepo/e/
208 /star/webdir/notrepo/f/
209 /starstar/webdir/a/
210 /starstar/webdir/a/.hg/patches/
211 /starstar/webdir/b/
212 /starstar/webdir/b/d/
213 /starstar/webdir/c/
214 /starstar/webdir/notrepo/e/
215 /starstar/webdir/notrepo/e/e2/
216 /starstar/webdir/notrepo/f/
217 /starstar/webdir/notrepo/f/f2/
218 /astar/
219 /astar/.hg/patches/
220
221
222 $ get-with-headers.py localhost:$HGPORT1 '?style=json'
223 200 Script output follows
224
225 {
226 "entries": [{
227 "name": "t/a",
228 "description": "unknown",
229 "contact": "Foo Bar \[email protected]\u003e",
230 "lastchange": [*, *], (glob)
231 "labels": []
232 }, {
233 "name": "b",
234 "description": "unknown",
235 "contact": "Foo Bar \[email protected]\u003e",
236 "lastchange": [*, *], (glob)
237 "labels": []
238 }, {
239 "name": "coll/a",
240 "description": "unknown",
241 "contact": "Foo Bar \[email protected]\u003e",
242 "lastchange": [*, *], (glob)
243 "labels": []
244 }, {
245 "name": "coll/a/.hg/patches",
246 "description": "unknown",
247 "contact": "Foo Bar \[email protected]\u003e",
248 "lastchange": [*, *], (glob)
249 "labels": []
250 }, {
251 "name": "coll/b",
252 "description": "unknown",
253 "contact": "Foo Bar \[email protected]\u003e",
254 "lastchange": [*, *], (glob)
255 "labels": []
256 }, {
257 "name": "coll/c",
258 "description": "unknown",
259 "contact": "Foo Bar \[email protected]\u003e",
260 "lastchange": [*, *], (glob)
261 "labels": []
262 }, {
263 "name": "coll/notrepo/e",
264 "description": "unknown",
265 "contact": "Foo Bar \[email protected]\u003e",
266 "lastchange": [*, *], (glob)
267 "labels": []
268 }, {
269 "name": "fancy name for repo f",
270 "description": "unknown",
271 "contact": "Foo Bar \[email protected]\u003e",
272 "lastchange": [*, *], (glob)
273 "labels": ["foo", "bar"]
274 }, {
275 "name": "rcoll/a",
276 "description": "unknown",
277 "contact": "Foo Bar \[email protected]\u003e",
278 "lastchange": [*, *], (glob)
279 "labels": []
280 }, {
281 "name": "rcoll/a/.hg/patches",
282 "description": "unknown",
283 "contact": "Foo Bar \[email protected]\u003e",
284 "lastchange": [*, *], (glob)
285 "labels": []
286 }, {
287 "name": "rcoll/b",
288 "description": "unknown",
289 "contact": "Foo Bar \[email protected]\u003e",
290 "lastchange": [*, *], (glob)
291 "labels": []
292 }, {
293 "name": "rcoll/b/d",
294 "description": "unknown",
295 "contact": "Foo Bar \[email protected]\u003e",
296 "lastchange": [*, *], (glob)
297 "labels": []
298 }, {
299 "name": "rcoll/c",
300 "description": "unknown",
301 "contact": "Foo Bar \[email protected]\u003e",
302 "lastchange": [*, *], (glob)
303 "labels": []
304 }, {
305 "name": "rcoll/notrepo/e",
306 "description": "unknown",
307 "contact": "Foo Bar \[email protected]\u003e",
308 "lastchange": [*, *], (glob)
309 "labels": []
310 }, {
311 "name": "rcoll/notrepo/e/e2",
312 "description": "unknown",
313 "contact": "Foo Bar \[email protected]\u003e",
314 "lastchange": [*, *], (glob)
315 "labels": []
316 }, {
317 "name": "fancy name for repo f",
318 "description": "unknown",
319 "contact": "Foo Bar \[email protected]\u003e",
320 "lastchange": [*, *], (glob)
321 "labels": ["foo", "bar"]
322 }, {
323 "name": "rcoll/notrepo/f/f2",
324 "description": "unknown",
325 "contact": "Foo Bar \[email protected]\u003e",
326 "lastchange": [*, *], (glob)
327 "labels": []
328 }, {
329 "name": "star/webdir/a",
330 "description": "unknown",
331 "contact": "Foo Bar \[email protected]\u003e",
332 "lastchange": [*, *], (glob)
333 "labels": []
334 }, {
335 "name": "star/webdir/a/.hg/patches",
336 "description": "unknown",
337 "contact": "Foo Bar \[email protected]\u003e",
338 "lastchange": [*, *], (glob)
339 "labels": []
340 }, {
341 "name": "star/webdir/b",
342 "description": "unknown",
343 "contact": "Foo Bar \[email protected]\u003e",
344 "lastchange": [*, *], (glob)
345 "labels": []
346 }, {
347 "name": "star/webdir/c",
348 "description": "unknown",
349 "contact": "Foo Bar \[email protected]\u003e",
350 "lastchange": [*, *], (glob)
351 "labels": []
352 }, {
353 "name": "star/webdir/notrepo/e",
354 "description": "unknown",
355 "contact": "Foo Bar \[email protected]\u003e",
356 "lastchange": [*, *], (glob)
357 "labels": []
358 }, {
359 "name": "fancy name for repo f",
360 "description": "unknown",
361 "contact": "Foo Bar \[email protected]\u003e",
362 "lastchange": [*, *], (glob)
363 "labels": ["foo", "bar"]
364 }, {
365 "name": "starstar/webdir/a",
366 "description": "unknown",
367 "contact": "Foo Bar \[email protected]\u003e",
368 "lastchange": [*, *], (glob)
369 "labels": []
370 }, {
371 "name": "starstar/webdir/a/.hg/patches",
372 "description": "unknown",
373 "contact": "Foo Bar \[email protected]\u003e",
374 "lastchange": [*, *], (glob)
375 "labels": []
376 }, {
377 "name": "starstar/webdir/b",
378 "description": "unknown",
379 "contact": "Foo Bar \[email protected]\u003e",
380 "lastchange": [*, *], (glob)
381 "labels": []
382 }, {
383 "name": "starstar/webdir/b/d",
384 "description": "unknown",
385 "contact": "Foo Bar \[email protected]\u003e",
386 "lastchange": [*, *], (glob)
387 "labels": []
388 }, {
389 "name": "starstar/webdir/c",
390 "description": "unknown",
391 "contact": "Foo Bar \[email protected]\u003e",
392 "lastchange": [*, *], (glob)
393 "labels": []
394 }, {
395 "name": "starstar/webdir/notrepo/e",
396 "description": "unknown",
397 "contact": "Foo Bar \[email protected]\u003e",
398 "lastchange": [*, *], (glob)
399 "labels": []
400 }, {
401 "name": "starstar/webdir/notrepo/e/e2",
402 "description": "unknown",
403 "contact": "Foo Bar \[email protected]\u003e",
404 "lastchange": [*, *], (glob)
405 "labels": []
406 }, {
407 "name": "fancy name for repo f",
408 "description": "unknown",
409 "contact": "Foo Bar \[email protected]\u003e",
410 "lastchange": [*, *], (glob)
411 "labels": ["foo", "bar"]
412 }, {
413 "name": "starstar/webdir/notrepo/f/f2",
414 "description": "unknown",
415 "contact": "Foo Bar \[email protected]\u003e",
416 "lastchange": [*, *], (glob)
417 "labels": []
418 }, {
419 "name": "astar",
420 "description": "unknown",
421 "contact": "Foo Bar \[email protected]\u003e",
422 "lastchange": [*, *], (glob)
423 "labels": []
424 }, {
425 "name": "astar/.hg/patches",
426 "description": "unknown",
427 "contact": "Foo Bar \[email protected]\u003e",
428 "lastchange": [*, *], (glob)
429 "labels": []
430 }]
431 } (no-eol)
432
433 $ get-with-headers.py localhost:$HGPORT1 '?style=paper'
434 200 Script output follows
435
436 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
437 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
438 <head>
439 <link rel="icon" href="/static/hgicon.png" type="image/png" />
440 <meta name="robots" content="index, nofollow" />
441 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
442 <script type="text/javascript" src="/static/mercurial.js"></script>
443
444 <title>Mercurial repositories index</title>
445 </head>
446 <body>
447
448 <div class="container">
449 <div class="menu">
450 <a href="https://mercurial-scm.org/">
451 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
452 </div>
453 <div class="main">
454 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
455
456 <table class="bigtable">
457 <thead>
458 <tr>
459 <th><a href="?sort=name">Name</a></th>
460 <th><a href="?sort=description">Description</a></th>
461 <th><a href="?sort=contact">Contact</a></th>
462 <th><a href="?sort=lastchange">Last modified</a></th>
463 <th>&nbsp;</th>
464 <th>&nbsp;</th>
465 </tr>
466 </thead>
467 <tbody class="stripes2">
468
469 <tr>
470 <td><a href="/t/a/?style=paper">t/a</a></td>
471 <td>unknown</td>
472 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
473 <td class="age">*</td> (glob)
474 <td class="indexlinks"></td>
475 <td>
476 <a href="/t/a/atom-log" title="subscribe to repository atom feed">
477 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
478 </a>
479 </td>
480 </tr>
481
482 <tr>
483 <td><a href="/b/?style=paper">b</a></td>
484 <td>unknown</td>
485 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
486 <td class="age">*</td> (glob)
487 <td class="indexlinks"></td>
488 <td>
489 <a href="/b/atom-log" title="subscribe to repository atom feed">
490 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
491 </a>
492 </td>
493 </tr>
494
495 <tr>
496 <td><a href="/coll/a/?style=paper">coll/a</a></td>
497 <td>unknown</td>
498 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
499 <td class="age">*</td> (glob)
500 <td class="indexlinks"></td>
501 <td>
502 <a href="/coll/a/atom-log" title="subscribe to repository atom feed">
503 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
504 </a>
505 </td>
506 </tr>
507
508 <tr>
509 <td><a href="/coll/a/.hg/patches/?style=paper">coll/a/.hg/patches</a></td>
510 <td>unknown</td>
511 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
512 <td class="age">*</td> (glob)
513 <td class="indexlinks"></td>
514 <td>
515 <a href="/coll/a/.hg/patches/atom-log" title="subscribe to repository atom feed">
516 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
517 </a>
518 </td>
519 </tr>
520
521 <tr>
522 <td><a href="/coll/b/?style=paper">coll/b</a></td>
523 <td>unknown</td>
524 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
525 <td class="age">*</td> (glob)
526 <td class="indexlinks"></td>
527 <td>
528 <a href="/coll/b/atom-log" title="subscribe to repository atom feed">
529 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
530 </a>
531 </td>
532 </tr>
533
534 <tr>
535 <td><a href="/coll/c/?style=paper">coll/c</a></td>
536 <td>unknown</td>
537 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
538 <td class="age">*</td> (glob)
539 <td class="indexlinks"></td>
540 <td>
541 <a href="/coll/c/atom-log" title="subscribe to repository atom feed">
542 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
543 </a>
544 </td>
545 </tr>
546
547 <tr>
548 <td><a href="/coll/notrepo/e/?style=paper">coll/notrepo/e</a></td>
549 <td>unknown</td>
550 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
551 <td class="age">*</td> (glob)
552 <td class="indexlinks"></td>
553 <td>
554 <a href="/coll/notrepo/e/atom-log" title="subscribe to repository atom feed">
555 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
556 </a>
557 </td>
558 </tr>
559
560 <tr>
561 <td><a href="/coll/notrepo/f/?style=paper">fancy name for repo f</a></td>
562 <td>unknown</td>
563 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
564 <td class="age">*</td> (glob)
565 <td class="indexlinks"></td>
566 <td>
567 <a href="/coll/notrepo/f/atom-log" title="subscribe to repository atom feed">
568 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
569 </a>
570 </td>
571 </tr>
572
573 <tr>
574 <td><a href="/rcoll/a/?style=paper">rcoll/a</a></td>
575 <td>unknown</td>
576 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
577 <td class="age">*</td> (glob)
578 <td class="indexlinks"></td>
579 <td>
580 <a href="/rcoll/a/atom-log" title="subscribe to repository atom feed">
581 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
582 </a>
583 </td>
584 </tr>
585
586 <tr>
587 <td><a href="/rcoll/a/.hg/patches/?style=paper">rcoll/a/.hg/patches</a></td>
588 <td>unknown</td>
589 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
590 <td class="age">*</td> (glob)
591 <td class="indexlinks"></td>
592 <td>
593 <a href="/rcoll/a/.hg/patches/atom-log" title="subscribe to repository atom feed">
594 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
595 </a>
596 </td>
597 </tr>
598
599 <tr>
600 <td><a href="/rcoll/b/?style=paper">rcoll/b</a></td>
601 <td>unknown</td>
602 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
603 <td class="age">*</td> (glob)
604 <td class="indexlinks"></td>
605 <td>
606 <a href="/rcoll/b/atom-log" title="subscribe to repository atom feed">
607 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
608 </a>
609 </td>
610 </tr>
611
612 <tr>
613 <td><a href="/rcoll/b/d/?style=paper">rcoll/b/d</a></td>
614 <td>unknown</td>
615 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
616 <td class="age">*</td> (glob)
617 <td class="indexlinks"></td>
618 <td>
619 <a href="/rcoll/b/d/atom-log" title="subscribe to repository atom feed">
620 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
621 </a>
622 </td>
623 </tr>
624
625 <tr>
626 <td><a href="/rcoll/c/?style=paper">rcoll/c</a></td>
627 <td>unknown</td>
628 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
629 <td class="age">*</td> (glob)
630 <td class="indexlinks"></td>
631 <td>
632 <a href="/rcoll/c/atom-log" title="subscribe to repository atom feed">
633 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
634 </a>
635 </td>
636 </tr>
637
638 <tr>
639 <td><a href="/rcoll/notrepo/e/?style=paper">rcoll/notrepo/e</a></td>
640 <td>unknown</td>
641 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
642 <td class="age">*</td> (glob)
643 <td class="indexlinks"></td>
644 <td>
645 <a href="/rcoll/notrepo/e/atom-log" title="subscribe to repository atom feed">
646 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
647 </a>
648 </td>
649 </tr>
650
651 <tr>
652 <td><a href="/rcoll/notrepo/e/e2/?style=paper">rcoll/notrepo/e/e2</a></td>
653 <td>unknown</td>
654 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
655 <td class="age">*</td> (glob)
656 <td class="indexlinks"></td>
657 <td>
658 <a href="/rcoll/notrepo/e/e2/atom-log" title="subscribe to repository atom feed">
659 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
660 </a>
661 </td>
662 </tr>
663
664 <tr>
665 <td><a href="/rcoll/notrepo/f/?style=paper">fancy name for repo f</a></td>
666 <td>unknown</td>
667 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
668 <td class="age">*</td> (glob)
669 <td class="indexlinks"></td>
670 <td>
671 <a href="/rcoll/notrepo/f/atom-log" title="subscribe to repository atom feed">
672 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
673 </a>
674 </td>
675 </tr>
676
677 <tr>
678 <td><a href="/rcoll/notrepo/f/f2/?style=paper">rcoll/notrepo/f/f2</a></td>
679 <td>unknown</td>
680 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
681 <td class="age">*</td> (glob)
682 <td class="indexlinks"></td>
683 <td>
684 <a href="/rcoll/notrepo/f/f2/atom-log" title="subscribe to repository atom feed">
685 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
686 </a>
687 </td>
688 </tr>
689
690 <tr>
691 <td><a href="/star/webdir/a/?style=paper">star/webdir/a</a></td>
692 <td>unknown</td>
693 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
694 <td class="age">*</td> (glob)
695 <td class="indexlinks"></td>
696 <td>
697 <a href="/star/webdir/a/atom-log" title="subscribe to repository atom feed">
698 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
699 </a>
700 </td>
701 </tr>
702
703 <tr>
704 <td><a href="/star/webdir/a/.hg/patches/?style=paper">star/webdir/a/.hg/patches</a></td>
705 <td>unknown</td>
706 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
707 <td class="age">*</td> (glob)
708 <td class="indexlinks"></td>
709 <td>
710 <a href="/star/webdir/a/.hg/patches/atom-log" title="subscribe to repository atom feed">
711 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
712 </a>
713 </td>
714 </tr>
715
716 <tr>
717 <td><a href="/star/webdir/b/?style=paper">star/webdir/b</a></td>
718 <td>unknown</td>
719 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
720 <td class="age">*</td> (glob)
721 <td class="indexlinks"></td>
722 <td>
723 <a href="/star/webdir/b/atom-log" title="subscribe to repository atom feed">
724 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
725 </a>
726 </td>
727 </tr>
728
729 <tr>
730 <td><a href="/star/webdir/c/?style=paper">star/webdir/c</a></td>
731 <td>unknown</td>
732 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
733 <td class="age">*</td> (glob)
734 <td class="indexlinks"></td>
735 <td>
736 <a href="/star/webdir/c/atom-log" title="subscribe to repository atom feed">
737 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
738 </a>
739 </td>
740 </tr>
741
742 <tr>
743 <td><a href="/star/webdir/notrepo/e/?style=paper">star/webdir/notrepo/e</a></td>
744 <td>unknown</td>
745 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
746 <td class="age">*</td> (glob)
747 <td class="indexlinks"></td>
748 <td>
749 <a href="/star/webdir/notrepo/e/atom-log" title="subscribe to repository atom feed">
750 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
751 </a>
752 </td>
753 </tr>
754
755 <tr>
756 <td><a href="/star/webdir/notrepo/f/?style=paper">fancy name for repo f</a></td>
757 <td>unknown</td>
758 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
759 <td class="age">*</td> (glob)
760 <td class="indexlinks"></td>
761 <td>
762 <a href="/star/webdir/notrepo/f/atom-log" title="subscribe to repository atom feed">
763 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
764 </a>
765 </td>
766 </tr>
767
768 <tr>
769 <td><a href="/starstar/webdir/a/?style=paper">starstar/webdir/a</a></td>
770 <td>unknown</td>
771 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
772 <td class="age">*</td> (glob)
773 <td class="indexlinks"></td>
774 <td>
775 <a href="/starstar/webdir/a/atom-log" title="subscribe to repository atom feed">
776 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
777 </a>
778 </td>
779 </tr>
780
781 <tr>
782 <td><a href="/starstar/webdir/a/.hg/patches/?style=paper">starstar/webdir/a/.hg/patches</a></td>
783 <td>unknown</td>
784 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
785 <td class="age">*</td> (glob)
786 <td class="indexlinks"></td>
787 <td>
788 <a href="/starstar/webdir/a/.hg/patches/atom-log" title="subscribe to repository atom feed">
789 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
790 </a>
791 </td>
792 </tr>
793
794 <tr>
795 <td><a href="/starstar/webdir/b/?style=paper">starstar/webdir/b</a></td>
796 <td>unknown</td>
797 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
798 <td class="age">*</td> (glob)
799 <td class="indexlinks"></td>
800 <td>
801 <a href="/starstar/webdir/b/atom-log" title="subscribe to repository atom feed">
802 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
803 </a>
804 </td>
805 </tr>
806
807 <tr>
808 <td><a href="/starstar/webdir/b/d/?style=paper">starstar/webdir/b/d</a></td>
809 <td>unknown</td>
810 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
811 <td class="age">*</td> (glob)
812 <td class="indexlinks"></td>
813 <td>
814 <a href="/starstar/webdir/b/d/atom-log" title="subscribe to repository atom feed">
815 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
816 </a>
817 </td>
818 </tr>
819
820 <tr>
821 <td><a href="/starstar/webdir/c/?style=paper">starstar/webdir/c</a></td>
822 <td>unknown</td>
823 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
824 <td class="age">*</td> (glob)
825 <td class="indexlinks"></td>
826 <td>
827 <a href="/starstar/webdir/c/atom-log" title="subscribe to repository atom feed">
828 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
829 </a>
830 </td>
831 </tr>
832
833 <tr>
834 <td><a href="/starstar/webdir/notrepo/e/?style=paper">starstar/webdir/notrepo/e</a></td>
835 <td>unknown</td>
836 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
837 <td class="age">*</td> (glob)
838 <td class="indexlinks"></td>
839 <td>
840 <a href="/starstar/webdir/notrepo/e/atom-log" title="subscribe to repository atom feed">
841 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
842 </a>
843 </td>
844 </tr>
845
846 <tr>
847 <td><a href="/starstar/webdir/notrepo/e/e2/?style=paper">starstar/webdir/notrepo/e/e2</a></td>
848 <td>unknown</td>
849 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
850 <td class="age">*</td> (glob)
851 <td class="indexlinks"></td>
852 <td>
853 <a href="/starstar/webdir/notrepo/e/e2/atom-log" title="subscribe to repository atom feed">
854 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
855 </a>
856 </td>
857 </tr>
858
859 <tr>
860 <td><a href="/starstar/webdir/notrepo/f/?style=paper">fancy name for repo f</a></td>
861 <td>unknown</td>
862 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
863 <td class="age">*</td> (glob)
864 <td class="indexlinks"></td>
865 <td>
866 <a href="/starstar/webdir/notrepo/f/atom-log" title="subscribe to repository atom feed">
867 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
868 </a>
869 </td>
870 </tr>
871
872 <tr>
873 <td><a href="/starstar/webdir/notrepo/f/f2/?style=paper">starstar/webdir/notrepo/f/f2</a></td>
874 <td>unknown</td>
875 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
876 <td class="age">*</td> (glob)
877 <td class="indexlinks"></td>
878 <td>
879 <a href="/starstar/webdir/notrepo/f/f2/atom-log" title="subscribe to repository atom feed">
880 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
881 </a>
882 </td>
883 </tr>
884
885 <tr>
886 <td><a href="/astar/?style=paper">astar</a></td>
887 <td>unknown</td>
888 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
889 <td class="age">*</td> (glob)
890 <td class="indexlinks"></td>
891 <td>
892 <a href="/astar/atom-log" title="subscribe to repository atom feed">
893 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
894 </a>
895 </td>
896 </tr>
897
898 <tr>
899 <td><a href="/astar/.hg/patches/?style=paper">astar/.hg/patches</a></td>
900 <td>unknown</td>
901 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
902 <td class="age">*</td> (glob)
903 <td class="indexlinks"></td>
904 <td>
905 <a href="/astar/.hg/patches/atom-log" title="subscribe to repository atom feed">
906 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
907 </a>
908 </td>
909 </tr>
910
911 </tbody>
912 </table>
913 </div>
914 </div>
915
916
917 </body>
918 </html>
919
920 $ get-with-headers.py localhost:$HGPORT1 't?style=raw'
921 200 Script output follows
922
923
924 /t/a/
925
926 $ get-with-headers.py localhost:$HGPORT1 't/?style=raw'
927 200 Script output follows
928
929
930 /t/a/
931
932 $ get-with-headers.py localhost:$HGPORT1 't/?style=paper'
933 200 Script output follows
934
935 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
936 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
937 <head>
938 <link rel="icon" href="/static/hgicon.png" type="image/png" />
939 <meta name="robots" content="index, nofollow" />
940 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
941 <script type="text/javascript" src="/static/mercurial.js"></script>
942
943 <title>Mercurial repositories index</title>
944 </head>
945 <body>
946
947 <div class="container">
948 <div class="menu">
949 <a href="https://mercurial-scm.org/">
950 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
951 </div>
952 <div class="main">
953 <h2 class="breadcrumb"><a href="/">Mercurial</a> &gt; <a href="/t">t</a> </h2>
954
955 <table class="bigtable">
956 <thead>
957 <tr>
958 <th><a href="?sort=name">Name</a></th>
959 <th><a href="?sort=description">Description</a></th>
960 <th><a href="?sort=contact">Contact</a></th>
961 <th><a href="?sort=lastchange">Last modified</a></th>
962 <th>&nbsp;</th>
963 <th>&nbsp;</th>
964 </tr>
965 </thead>
966 <tbody class="stripes2">
967
968 <tr>
969 <td><a href="/t/a/?style=paper">a</a></td>
970 <td>unknown</td>
971 <td>&#70;&#111;&#111;&#32;&#66;&#97;&#114;&#32;&#60;&#102;&#111;&#111;&#46;&#98;&#97;&#114;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;&#62;</td>
972 <td class="age">*</td> (glob)
973 <td class="indexlinks"></td>
974 <td>
975 <a href="/t/a/atom-log" title="subscribe to repository atom feed">
976 <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="subscribe to repository atom feed">
977 </a>
978 </td>
979 </tr>
980
981 </tbody>
982 </table>
983 </div>
984 </div>
985
986
987 </body>
988 </html>
989
990 $ get-with-headers.py localhost:$HGPORT1 't/a?style=atom'
991 200 Script output follows
992
993 <?xml version="1.0" encoding="ascii"?>
994 <feed xmlns="http://www.w3.org/2005/Atom">
995 <!-- Changelog -->
996 <id>http://*:$HGPORT1/t/a/</id> (glob)
997 <link rel="self" href="http://*:$HGPORT1/t/a/atom-log"/> (glob)
998 <link rel="alternate" href="http://*:$HGPORT1/t/a/"/> (glob)
999 <title>t/a Changelog</title>
1000 <updated>1970-01-01T00:00:01+00:00</updated>
1001
1002 <entry>
1003 <title>[default] a</title>
1004 <id>http://*:$HGPORT1/t/a/#changeset-8580ff50825a50c8f716709acdf8de0deddcd6ab</id> (glob)
1005 <link href="http://*:$HGPORT1/t/a/rev/8580ff50825a"/> (glob)
1006 <author>
1007 <name>test</name>
1008 <email>&#116;&#101;&#115;&#116;</email>
1009 </author>
1010 <updated>1970-01-01T00:00:01+00:00</updated>
1011 <published>1970-01-01T00:00:01+00:00</published>
1012 <content type="xhtml">
1013 <table xmlns="http://www.w3.org/1999/xhtml">
1014 <tr>
1015 <th style="text-align:left;">changeset</th>
1016 <td>8580ff50825a</td>
1017 </tr>
1018 <tr>
1019 <th style="text-align:left;">branch</th>
1020 <td>default</td>
1021 </tr>
1022 <tr>
1023 <th style="text-align:left;">bookmark</th>
1024 <td></td>
1025 </tr>
1026 <tr>
1027 <th style="text-align:left;">tag</th>
1028 <td>tip</td>
1029 </tr>
1030 <tr>
1031 <th style="text-align:left;">user</th>
1032 <td>&#116;&#101;&#115;&#116;</td>
1033 </tr>
1034 <tr>
1035 <th style="text-align:left;vertical-align:top;">description</th>
1036 <td>a</td>
1037 </tr>
1038 <tr>
1039 <th style="text-align:left;vertical-align:top;">files</th>
1040 <td>a<br /></td>
1041 </tr>
1042 </table>
1043 </content>
1044 </entry>
1045
1046 </feed>
1047 $ get-with-headers.py localhost:$HGPORT1 't/a/?style=atom'
1048 200 Script output follows
1049
1050 <?xml version="1.0" encoding="ascii"?>
1051 <feed xmlns="http://www.w3.org/2005/Atom">
1052 <!-- Changelog -->
1053 <id>http://*:$HGPORT1/t/a/</id> (glob)
1054 <link rel="self" href="http://*:$HGPORT1/t/a/atom-log"/> (glob)
1055 <link rel="alternate" href="http://*:$HGPORT1/t/a/"/> (glob)
1056 <title>t/a Changelog</title>
1057 <updated>1970-01-01T00:00:01+00:00</updated>
1058
1059 <entry>
1060 <title>[default] a</title>
1061 <id>http://*:$HGPORT1/t/a/#changeset-8580ff50825a50c8f716709acdf8de0deddcd6ab</id> (glob)
1062 <link href="http://*:$HGPORT1/t/a/rev/8580ff50825a"/> (glob)
1063 <author>
1064 <name>test</name>
1065 <email>&#116;&#101;&#115;&#116;</email>
1066 </author>
1067 <updated>1970-01-01T00:00:01+00:00</updated>
1068 <published>1970-01-01T00:00:01+00:00</published>
1069 <content type="xhtml">
1070 <table xmlns="http://www.w3.org/1999/xhtml">
1071 <tr>
1072 <th style="text-align:left;">changeset</th>
1073 <td>8580ff50825a</td>
1074 </tr>
1075 <tr>
1076 <th style="text-align:left;">branch</th>
1077 <td>default</td>
1078 </tr>
1079 <tr>
1080 <th style="text-align:left;">bookmark</th>
1081 <td></td>
1082 </tr>
1083 <tr>
1084 <th style="text-align:left;">tag</th>
1085 <td>tip</td>
1086 </tr>
1087 <tr>
1088 <th style="text-align:left;">user</th>
1089 <td>&#116;&#101;&#115;&#116;</td>
1090 </tr>
1091 <tr>
1092 <th style="text-align:left;vertical-align:top;">description</th>
1093 <td>a</td>
1094 </tr>
1095 <tr>
1096 <th style="text-align:left;vertical-align:top;">files</th>
1097 <td>a<br /></td>
1098 </tr>
1099 </table>
1100 </content>
1101 </entry>
1102
1103 </feed>
1104 $ get-with-headers.py localhost:$HGPORT1 't/a/file/tip/a?style=raw'
1105 200 Script output follows
1106
1107 a
1108
1109 Test [paths] '*' extension
1110
1111 $ get-with-headers.py localhost:$HGPORT1 'coll/?style=raw'
1112 200 Script output follows
1113
1114
1115 /coll/a/
1116 /coll/a/.hg/patches/
1117 /coll/b/
1118 /coll/c/
1119 /coll/notrepo/e/
1120 /coll/notrepo/f/
1121
1122 $ get-with-headers.py localhost:$HGPORT1 'coll/a/file/tip/a?style=raw'
1123 200 Script output follows
1124
1125 a
1126
1127 Test [paths] '**' extension
1128
1129 $ get-with-headers.py localhost:$HGPORT1 'rcoll/?style=raw'
1130 200 Script output follows
1131
1132
1133 /rcoll/a/
1134 /rcoll/a/.hg/patches/
1135 /rcoll/b/
1136 /rcoll/b/d/
1137 /rcoll/c/
1138 /rcoll/notrepo/e/
1139 /rcoll/notrepo/e/e2/
1140 /rcoll/notrepo/f/
1141 /rcoll/notrepo/f/f2/
1142
1143 $ get-with-headers.py localhost:$HGPORT1 'rcoll/b/d/file/tip/d?style=raw'
1144 200 Script output follows
1145
1146 d
1147
1148 Test collapse = True
1149
1150 $ killdaemons.py
1151 $ cat >> paths.conf <<EOF
1152 > [web]
1153 > collapse=true
1154 > descend = true
1155 > EOF
1156 $ hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
1157 > -A access-paths.log -E error-paths-3.log
1158 $ cat hg.pid >> $DAEMON_PIDS
1159 $ get-with-headers.py localhost:$HGPORT1 'coll/?style=raw'
1160 200 Script output follows
1161
1162
1163 /coll/a/
1164 /coll/a/.hg/patches/
1165 /coll/b/
1166 /coll/c/
1167 /coll/notrepo/
1168
1169 $ get-with-headers.py localhost:$HGPORT1 'coll/a/file/tip/a?style=raw'
1170 200 Script output follows
1171
1172 a
1173 $ get-with-headers.py localhost:$HGPORT1 'rcoll/?style=raw'
1174 200 Script output follows
1175
1176
1177 /rcoll/a/
1178 /rcoll/a/.hg/patches/
1179 /rcoll/b/
1180 /rcoll/b/d/
1181 /rcoll/c/
1182 /rcoll/notrepo/
1183
1184 $ get-with-headers.py localhost:$HGPORT1 'rcoll/b/d/file/tip/d?style=raw'
1185 200 Script output follows
1186
1187 d
1188
1189 Test intermediate directories
1190
1191 Hide the subrepo parent
1192
1193 $ cp $root/notrepo/f/.hg/hgrc $root/notrepo/f/.hg/hgrc.bak
1194 $ cat >> $root/notrepo/f/.hg/hgrc << EOF
1195 > [web]
1196 > hidden = True
1197 > EOF
1198
1199 $ get-with-headers.py localhost:$HGPORT1 'rcoll/notrepo/?style=raw'
1200 200 Script output follows
1201
1202
1203 /rcoll/notrepo/e/
1204 /rcoll/notrepo/e/e2/
1205
1206
1207 Subrepo parent not hidden
1208 $ mv $root/notrepo/f/.hg/hgrc.bak $root/notrepo/f/.hg/hgrc
1209
1210 $ get-with-headers.py localhost:$HGPORT1 'rcoll/notrepo/?style=raw'
1211 200 Script output follows
1212
1213
1214 /rcoll/notrepo/e/
1215 /rcoll/notrepo/e/e2/
1216 /rcoll/notrepo/f/
1217 /rcoll/notrepo/f/f2/
1218
1219
1220 Test repositories inside intermediate directories
1221
1222 $ get-with-headers.py localhost:$HGPORT1 'rcoll/notrepo/e/file/tip/e?style=raw'
1223 200 Script output follows
1224
1225 e
1226
1227 Test subrepositories inside intermediate directories
1228
1229 $ get-with-headers.py localhost:$HGPORT1 'rcoll/notrepo/f/f2/file/tip/f2?style=raw'
1230 200 Script output follows
1231
1232 f2
1233
1234 Test accessing file that could be shadowed by another repository if the URL
1235 path were audited as a working-directory path:
1236
1237 $ get-with-headers.py localhost:$HGPORT1 'rcoll/notrepo/f/file/tip/f3/file?style=raw'
1238 200 Script output follows
1239
1240 f3/file
1241
1242 Test accessing working-directory file that is shadowed by another repository
1243
1244 $ get-with-headers.py localhost:$HGPORT1 'rcoll/notrepo/f/file/ffffffffffff/f3/file?style=raw'
1245 403 Forbidden
1246
1247
1248 error: path 'f3/file' is inside nested repo 'f3'
1249 [1]
1250
1251 Test accessing invalid paths:
1252
1253 $ get-with-headers.py localhost:$HGPORT1 'rcoll/notrepo/f/file/tip/..?style=raw'
1254 403 Forbidden
1255
1256
1257 error: .. not under root '$TESTTMP/dir/webdir/notrepo/f'
1258 [1]
1259
1260 $ get-with-headers.py localhost:$HGPORT1 'rcoll/notrepo/f/file/tip/.hg/hgrc?style=raw'
1261 403 Forbidden
1262
1263
1264 error: path contains illegal component: .hg/hgrc
1265 [1]
1266
1267 Test descend = False
1268
1269 $ killdaemons.py
1270 $ cat >> paths.conf <<EOF
1271 > descend=false
1272 > EOF
1273 $ hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
1274 > -A access-paths.log -E error-paths-4.log
1275 $ cat hg.pid >> $DAEMON_PIDS
1276 $ get-with-headers.py localhost:$HGPORT1 'coll/?style=raw'
1277 200 Script output follows
1278
1279
1280 /coll/a/
1281 /coll/b/
1282 /coll/c/
1283
1284 $ get-with-headers.py localhost:$HGPORT1 'coll/a/file/tip/a?style=raw'
1285 200 Script output follows
1286
1287 a
1288 $ get-with-headers.py localhost:$HGPORT1 'rcoll/?style=raw'
1289 200 Script output follows
1290
1291
1292 /rcoll/a/
1293 /rcoll/b/
1294 /rcoll/c/
1295
1296 $ get-with-headers.py localhost:$HGPORT1 'rcoll/b/d/file/tip/d?style=raw'
1297 200 Script output follows
1298
1299 d
1300
1301 Test intermediate directories
1302
1303 $ get-with-headers.py localhost:$HGPORT1 'rcoll/notrepo/?style=raw'
1304 200 Script output follows
1305
1306
1307 /rcoll/notrepo/e/
1308 /rcoll/notrepo/f/
1309
1310
1311 Test repositories inside intermediate directories
1312
1313 $ get-with-headers.py localhost:$HGPORT1 'rcoll/notrepo/e/file/tip/e?style=raw'
1314 200 Script output follows
1315
1316 e
1317
1318 Test subrepositories inside intermediate directories
1319
1320 $ get-with-headers.py localhost:$HGPORT1 'rcoll/notrepo/f/f2/file/tip/f2?style=raw'
1321 200 Script output follows
1322
1323 f2
1324
1325 Test [paths] '*' in a repo root
1326
1327 $ hg id http://localhost:$HGPORT1/astar
1328 8580ff50825a
1329
1330 $ killdaemons.py
1331 $ cat > paths.conf <<EOF
1332 > [paths]
1333 > t/a = $root/a
1334 > t/b = $root/b
1335 > c = $root/c
1336 > EOF
1337 $ hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
1338 > -A access-paths.log -E error-paths-5.log
1339 $ cat hg.pid >> $DAEMON_PIDS
1340 $ get-with-headers.py localhost:$HGPORT1 '?style=raw'
1341 200 Script output follows
1342
1343
1344 /t/a/
1345 /t/b/
1346 /c/
1347
1348 $ get-with-headers.py localhost:$HGPORT1 't/?style=raw'
1349 200 Script output follows
1350
1351
1352 /t/a/
1353 /t/b/
1354
1355
1356 Test collapse = True
1357
1358 $ killdaemons.py
1359 $ cat >> paths.conf <<EOF
1360 > [web]
1361 > collapse=true
1362 > EOF
1363 $ hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
1364 > -A access-paths.log -E error-paths-6.log
1365 $ cat hg.pid >> $DAEMON_PIDS
1366 $ get-with-headers.py localhost:$HGPORT1 '?style=raw'
1367 200 Script output follows
1368
1369
1370 /t/
1371 /c/
1372
1373 $ get-with-headers.py localhost:$HGPORT1 't/?style=raw'
1374 200 Script output follows
1375
1376
1377 /t/a/
1378 /t/b/
1379
1380
1381 test descend = False
1382
1383 $ killdaemons.py
1384 $ cat >> paths.conf <<EOF
1385 > descend=false
1386 > EOF
1387 $ hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
1388 > -A access-paths.log -E error-paths-7.log
1389 $ cat hg.pid >> $DAEMON_PIDS
1390 $ get-with-headers.py localhost:$HGPORT1 '?style=raw'
1391 200 Script output follows
1392
1393
1394 /c/
1395
1396 $ get-with-headers.py localhost:$HGPORT1 't/?style=raw'
1397 200 Script output follows
1398
1399
1400 /t/a/
1401 /t/b/
1402
1403 $ killdaemons.py
1404 $ cat > paths.conf <<EOF
1405 > [paths]
1406 > nostore = $root/nostore
1407 > inexistent = $root/inexistent
1408 > EOF
1409 $ rm hg.pid
1410 $ hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
1411 > -A access-paths.log -E error-paths-8.log
1412 abort: filesystem path is not a repository: '$TESTTMP/dir/webdir/inexistent'
1413 (this was mapped to server path 'inexistent')
1414 [10]
1415 $ killdaemons.py hg.pid
1416
1417 test listening address/port specified by web-conf (issue4699):
1418
1419 $ cat > paths.conf <<EOF
1420 > [web]
1421 > address = localhost
1422 > port = $HGPORT1
1423 > EOF
1424 $ hg serve -d --pid-file=hg.pid --web-conf paths.conf \
1425 > -A access-paths.log -E error-paths-9.log
1426 listening at http://*:$HGPORT1/ (bound to *$LOCALIP*:$HGPORT1) (glob) (?)
1427 $ cat hg.pid >> $DAEMON_PIDS
1428 $ get-with-headers.py localhost:$HGPORT1 '?style=raw'
1429 200 Script output follows
1430
1431
1432
1433 test --port option overrides web.port:
1434
1435 $ killdaemons.py
1436 $ hg serve -p $HGPORT2 -d -v --pid-file=hg.pid --web-conf paths.conf \
1437 > -A access-paths.log -E error-paths-10.log
1438 listening at http://*:$HGPORT2/ (bound to *$LOCALIP*:$HGPORT2) (glob) (?)
1439 $ cat hg.pid >> $DAEMON_PIDS
1440 $ get-with-headers.py localhost:$HGPORT2 '?style=raw'
1441 200 Script output follows
1442
1443
1444
1445
1446 $ killdaemons.py
1447 $ cat > collections.conf <<EOF
1448 > [collections]
1449 > $root=$root
1450 > EOF
1451 $ hg serve --config web.baseurl=http://hg.example.com:8080/ -p $HGPORT2 -d \
1452 > --pid-file=hg.pid --webdir-conf collections.conf \
1453 > -A access-collections.log -E error-collections.log
1454 $ cat hg.pid >> $DAEMON_PIDS
1455
1456 collections: should succeed
1457
1458 $ get-with-headers.py localhost:$HGPORT2 '?style=raw'
1459 200 Script output follows
1460
1461
1462 /a/
1463 /a/.hg/patches/
1464 /b/
1465 /c/
1466 /notrepo/e/
1467 /notrepo/f/
1468
1469 $ get-with-headers.py localhost:$HGPORT2 'a/file/tip/a?style=raw'
1470 200 Script output follows
1471
1472 a
1473 $ get-with-headers.py localhost:$HGPORT2 'b/file/tip/b?style=raw'
1474 200 Script output follows
1475
1476 b
1477 $ get-with-headers.py localhost:$HGPORT2 'c/file/tip/c?style=raw'
1478 200 Script output follows
1479
1480 c
1481
1482 atom-log with basedir /
1483
1484 $ get-with-headers.py localhost:$HGPORT2 'a/atom-log' | grep '<link'
1485 <link rel="self" href="http://hg.example.com:8080/a/atom-log"/>
1486 <link rel="alternate" href="http://hg.example.com:8080/a/"/>
1487 <link href="http://hg.example.com:8080/a/rev/8580ff50825a"/>
1488
1489 rss-log with basedir /
1490
1491 $ get-with-headers.py localhost:$HGPORT2 'a/rss-log' | grep '<guid'
1492 <guid isPermaLink="true">http://hg.example.com:8080/a/rev/8580ff50825a</guid>
1493 $ killdaemons.py
1494 $ hg serve --config web.baseurl=http://hg.example.com:8080/foo/ -p $HGPORT2 -d \
1495 > --pid-file=hg.pid --webdir-conf collections.conf \
1496 > -A access-collections-2.log -E error-collections-2.log
1497 $ cat hg.pid >> $DAEMON_PIDS
1498
1499 atom-log with basedir /foo/
1500
1501 $ get-with-headers.py localhost:$HGPORT2 'a/atom-log' | grep '<link'
1502 <link rel="self" href="http://hg.example.com:8080/foo/a/atom-log"/>
1503 <link rel="alternate" href="http://hg.example.com:8080/foo/a/"/>
1504 <link href="http://hg.example.com:8080/foo/a/rev/8580ff50825a"/>
1505
1506 rss-log with basedir /foo/
1507
1508 $ get-with-headers.py localhost:$HGPORT2 'a/rss-log' | grep '<guid'
1509 <guid isPermaLink="true">http://hg.example.com:8080/foo/a/rev/8580ff50825a</guid>
1510
1511 Path refreshing works as expected
1512
1513 $ killdaemons.py
1514 $ mkdir $root/refreshtest
1515 $ hg init $root/refreshtest/a
1516 $ cat > paths.conf << EOF
1517 > [paths]
1518 > / = $root/refreshtest/*
1519 > EOF
1520 $ hg serve -p $HGPORT1 -d --pid-file hg.pid --webdir-conf paths.conf
1521 $ cat hg.pid >> $DAEMON_PIDS
1522
1523 $ get-with-headers.py localhost:$HGPORT1 '?style=raw'
1524 200 Script output follows
1525
1526
1527 /a/
1528
1529
1530 By default refreshing occurs every 20s and a new repo won't be listed
1531 immediately.
1532
1533 $ hg init $root/refreshtest/b
1534 $ get-with-headers.py localhost:$HGPORT1 '?style=raw'
1535 200 Script output follows
1536
1537
1538 /a/
1539
1540
1541 Restart the server with no refresh interval. New repo should appear
1542 immediately.
1543
1544 $ killdaemons.py
1545 $ cat > paths.conf << EOF
1546 > [web]
1547 > refreshinterval = -1
1548 > [paths]
1549 > / = $root/refreshtest/*
1550 > EOF
1551 $ hg serve -p $HGPORT1 -d --pid-file hg.pid --webdir-conf paths.conf
1552 $ cat hg.pid >> $DAEMON_PIDS
1553
1554 $ get-with-headers.py localhost:$HGPORT1 '?style=raw'
1555 200 Script output follows
1556
1557
1558 /a/
1559 /b/
1560
1561
1562 $ hg init $root/refreshtest/c
1563 $ get-with-headers.py localhost:$HGPORT1 '?style=raw'
1564 200 Script output follows
1565
1566
1567 /a/
1568 /b/
1569 /c/
1570
1571 $ killdaemons.py
1572 $ cat > paths.conf << EOF
1573 > [paths]
1574 > /dir1/a_repo = $root/a
1575 > /dir1/a_repo/b_repo = $root/b
1576 > /dir1/dir2/index = $root/b
1577 > EOF
1578 $ hg serve -p $HGPORT1 -d --pid-file hg.pid --webdir-conf paths.conf
1579 $ cat hg.pid >> $DAEMON_PIDS
1580
1581 $ echo 'index file' > $root/a/index
1582 $ hg --cwd $root/a ci -Am 'add index file'
1583 adding index
1584
1585 $ get-with-headers.py localhost:$HGPORT1 '' | grep 'a_repo'
1586 <td><a href="/dir1/a_repo/">dir1/a_repo</a></td>
1587 <a href="/dir1/a_repo/atom-log" title="subscribe to repository atom feed">
1588 <td><a href="/dir1/a_repo/b_repo/">dir1/a_repo/b_repo</a></td>
1589 <a href="/dir1/a_repo/b_repo/atom-log" title="subscribe to repository atom feed">
1590
1591 $ get-with-headers.py localhost:$HGPORT1 'index' | grep 'a_repo'
1592 <td><a href="/dir1/a_repo/">dir1/a_repo</a></td>
1593 <a href="/dir1/a_repo/atom-log" title="subscribe to repository atom feed">
1594 <td><a href="/dir1/a_repo/b_repo/">dir1/a_repo/b_repo</a></td>
1595 <a href="/dir1/a_repo/b_repo/atom-log" title="subscribe to repository atom feed">
1596
1597 $ get-with-headers.py localhost:$HGPORT1 'dir1' | grep 'a_repo'
1598 <td><a href="/dir1/a_repo/">a_repo</a></td>
1599 <a href="/dir1/a_repo/atom-log" title="subscribe to repository atom feed">
1600 <td><a href="/dir1/a_repo/b_repo/">a_repo/b_repo</a></td>
1601 <a href="/dir1/a_repo/b_repo/atom-log" title="subscribe to repository atom feed">
1602
1603 $ get-with-headers.py localhost:$HGPORT1 'dir1/index' | grep 'a_repo'
1604 <td><a href="/dir1/a_repo/">a_repo</a></td>
1605 <a href="/dir1/a_repo/atom-log" title="subscribe to repository atom feed">
1606 <td><a href="/dir1/a_repo/b_repo/">a_repo/b_repo</a></td>
1607 <a href="/dir1/a_repo/b_repo/atom-log" title="subscribe to repository atom feed">
1608
1609 $ get-with-headers.py localhost:$HGPORT1 'dir1/a_repo' | grep 'a_repo'
1610 <link rel="icon" href="/dir1/a_repo/static/hgicon.png" type="image/png" />
1611 <link rel="stylesheet" href="/dir1/a_repo/static/style-paper.css" type="text/css" />
1612 <script type="text/javascript" src="/dir1/a_repo/static/mercurial.js"></script>
1613 <title>dir1/a_repo: log</title>
1614 href="/dir1/a_repo/atom-log" title="Atom feed for dir1/a_repo" />
1615 href="/dir1/a_repo/rss-log" title="RSS feed for dir1/a_repo" />
1616 <img src="/dir1/a_repo/static/hglogo.png" alt="mercurial" /></a>
1617 <li><a href="/dir1/a_repo/graph/tip">graph</a></li>
1618 <li><a href="/dir1/a_repo/tags">tags</a></li>
1619 <li><a href="/dir1/a_repo/bookmarks">bookmarks</a></li>
1620 <li><a href="/dir1/a_repo/branches">branches</a></li>
1621 <li><a href="/dir1/a_repo/rev/tip">changeset</a></li>
1622 <li><a href="/dir1/a_repo/file/tip">browse</a></li>
1623 <li><a href="/dir1/a_repo/help">help</a></li>
1624 <a href="/dir1/a_repo/atom-log" title="subscribe to atom feed">
1625 <img class="atom-logo" src="/dir1/a_repo/static/feed-icon-14x14.png" alt="atom feed" />
1626 <h2 class="breadcrumb"><a href="/">Mercurial</a> &gt; <a href="/dir1">dir1</a> &gt; <a href="/dir1/a_repo">a_repo</a> </h2>
1627 <form class="search" action="/dir1/a_repo/log">
1628 number or hash, or <a href="/dir1/a_repo/help/revsets">revset expression</a>.</div>
1629 <a href="/dir1/a_repo/shortlog/tip?revcount=30">less</a>
1630 <a href="/dir1/a_repo/shortlog/tip?revcount=120">more</a>
1631 | rev 1: <a href="/dir1/a_repo/shortlog/8580ff50825a">(0)</a> <a href="/dir1/a_repo/shortlog/tip">tip</a>
1632 <a href="/dir1/a_repo/rev/71a89161f014">add index file</a>
1633 <a href="/dir1/a_repo/rev/8580ff50825a">a</a>
1634 <a href="/dir1/a_repo/shortlog/tip?revcount=30">less</a>
1635 <a href="/dir1/a_repo/shortlog/tip?revcount=120">more</a>
1636 | rev 1: <a href="/dir1/a_repo/shortlog/8580ff50825a">(0)</a> <a href="/dir1/a_repo/shortlog/tip">tip</a>
1637 '/dir1/a_repo/shortlog/%next%',
1638
1639 $ get-with-headers.py localhost:$HGPORT1 'dir1/a_repo/index' | grep 'a_repo'
1640 <h2 class="breadcrumb"><a href="/">Mercurial</a> &gt; <a href="/dir1">dir1</a> &gt; <a href="/dir1/a_repo">a_repo</a> </h2>
1641 <td><a href="/dir1/a_repo/b_repo/">b_repo</a></td>
1642 <a href="/dir1/a_repo/b_repo/atom-log" title="subscribe to repository atom feed">
1643
1644 Files named 'index' are not blocked
1645
1646 $ get-with-headers.py localhost:$HGPORT1 'dir1/a_repo/raw-file/tip/index'
1647 200 Script output follows
1648
1649 index file
1650
1651 Repos named 'index' take precedence over the index file
1652
1653 $ get-with-headers.py localhost:$HGPORT1 'dir1/dir2/index' | grep 'index'
1654 <link rel="icon" href="/dir1/dir2/index/static/hgicon.png" type="image/png" />
1655 <meta name="robots" content="index, nofollow" />
1656 <link rel="stylesheet" href="/dir1/dir2/index/static/style-paper.css" type="text/css" />
1657 <script type="text/javascript" src="/dir1/dir2/index/static/mercurial.js"></script>
1658 <title>dir1/dir2/index: log</title>
1659 href="/dir1/dir2/index/atom-log" title="Atom feed for dir1/dir2/index" />
1660 href="/dir1/dir2/index/rss-log" title="RSS feed for dir1/dir2/index" />
1661 <img src="/dir1/dir2/index/static/hglogo.png" alt="mercurial" /></a>
1662 <li><a href="/dir1/dir2/index/graph/tip">graph</a></li>
1663 <li><a href="/dir1/dir2/index/tags">tags</a></li>
1664 <li><a href="/dir1/dir2/index/bookmarks">bookmarks</a></li>
1665 <li><a href="/dir1/dir2/index/branches">branches</a></li>
1666 <li><a href="/dir1/dir2/index/rev/tip">changeset</a></li>
1667 <li><a href="/dir1/dir2/index/file/tip">browse</a></li>
1668 <li><a href="/dir1/dir2/index/help">help</a></li>
1669 <a href="/dir1/dir2/index/atom-log" title="subscribe to atom feed">
1670 <img class="atom-logo" src="/dir1/dir2/index/static/feed-icon-14x14.png" alt="atom feed" />
1671 <h2 class="breadcrumb"><a href="/">Mercurial</a> &gt; <a href="/dir1">dir1</a> &gt; <a href="/dir1/dir2">dir2</a> &gt; <a href="/dir1/dir2/index">index</a> </h2>
1672 <form class="search" action="/dir1/dir2/index/log">
1673 number or hash, or <a href="/dir1/dir2/index/help/revsets">revset expression</a>.</div>
1674 <a href="/dir1/dir2/index/shortlog/tip?revcount=30">less</a>
1675 <a href="/dir1/dir2/index/shortlog/tip?revcount=120">more</a>
1676 | rev 0: <a href="/dir1/dir2/index/shortlog/39505516671b">(0)</a> <a href="/dir1/dir2/index/shortlog/tip">tip</a>
1677 <a href="/dir1/dir2/index/rev/39505516671b">b</a>
1678 <a href="/dir1/dir2/index/shortlog/tip?revcount=30">less</a>
1679 <a href="/dir1/dir2/index/shortlog/tip?revcount=120">more</a>
1680 | rev 0: <a href="/dir1/dir2/index/shortlog/39505516671b">(0)</a> <a href="/dir1/dir2/index/shortlog/tip">tip</a>
1681 '/dir1/dir2/index/shortlog/%next%',
1682
1683 $ killdaemons.py
1684
1685 $ cat > paths.conf << EOF
1686 > [paths]
1687 > / = $root/a
1688 > EOF
1689 $ hg serve -p $HGPORT1 -d --pid-file hg.pid --webdir-conf paths.conf
1690 $ cat hg.pid >> $DAEMON_PIDS
1691
1692 $ hg id http://localhost:$HGPORT1
1693 71a89161f014
1694
1695 $ get-with-headers.py localhost:$HGPORT1 '' | grep 'index'
1696 <meta name="robots" content="index, nofollow" />
1697 <a href="/rev/71a89161f014">add index file</a>
1698
1699 $ killdaemons.py
1700
1701 paths errors 1
1702
1703 $ cat error-paths-1.log
1704
1705 paths errors 2
1706
1707 $ cat error-paths-2.log
1708
1709 paths errors 3
1710
1711 $ cat error-paths-3.log
1712
1713 paths errors 4
1714
1715 $ cat error-paths-4.log
1716
1717 paths errors 5
1718
1719 $ cat error-paths-5.log
1720
1721 paths errors 6
1722
1723 $ cat error-paths-6.log
1724
1725 paths errors 7
1726
1727 $ cat error-paths-7.log
1728
1729 paths errors 8 is no more, since the server fails to start
1730
1731 paths errors 9
1732
1733 $ cat error-paths-9.log
1734
1735 paths errors 10
1736
1737 $ cat error-paths-10.log
1738
1739 collections errors
1740
1741 $ cat error-collections.log
1742
1743 collections errors 2
1744
1745 $ cat error-collections-2.log