Show More
@@ -233,6 +233,10 b' class hgwebdir(object):' | |||||
233 | # update time with local timezone |
|
233 | # update time with local timezone | |
234 | try: |
|
234 | try: | |
235 | r = hg.repository(self.ui, path) |
|
235 | r = hg.repository(self.ui, path) | |
|
236 | except error.RepoError: | |||
|
237 | u.warn(_('error accessing repository at %s\n') % path) | |||
|
238 | continue | |||
|
239 | try: | |||
236 | d = (get_mtime(r.spath), util.makedate()[1]) |
|
240 | d = (get_mtime(r.spath), util.makedate()[1]) | |
237 | except OSError: |
|
241 | except OSError: | |
238 | continue |
|
242 | continue |
@@ -26,6 +26,10 b' hg init c' | |||||
26 | echo c > c/c |
|
26 | echo c > c/c | |
27 | hg --cwd c ci -Amc -d'3 0' |
|
27 | hg --cwd c ci -Amc -d'3 0' | |
28 |
|
28 | |||
|
29 | # create repository without .hg/store | |||
|
30 | hg init nostore | |||
|
31 | rm -R nostore/.hg/store | |||
|
32 | ||||
29 | root=`pwd` |
|
33 | root=`pwd` | |
30 | cd .. |
|
34 | cd .. | |
31 |
|
35 | |||
@@ -112,6 +116,20 b' echo % test descend = False' | |||||
112 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/?style=raw' |
|
116 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/?style=raw' | |
113 |
|
117 | |||
114 |
|
118 | |||
|
119 | "$TESTDIR/killdaemons.py" | |||
|
120 | cat > paths.conf <<EOF | |||
|
121 | [paths] | |||
|
122 | nostore = $root/nostore | |||
|
123 | inexistent = $root/inexistent | |||
|
124 | EOF | |||
|
125 | ||||
|
126 | hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \ | |||
|
127 | -A access-paths.log -E error-paths-4.log | |||
|
128 | cat hg.pid >> $DAEMON_PIDS | |||
|
129 | echo % test inexistent and inaccessible repo should be ignored silently | |||
|
130 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/' | |||
|
131 | ||||
|
132 | ||||
115 | cat > collections.conf <<EOF |
|
133 | cat > collections.conf <<EOF | |
116 | [collections] |
|
134 | [collections] | |
117 | $root=$root |
|
135 | $root=$root |
@@ -406,6 +406,45 b' 200 Script output follows' | |||||
406 | /t/a/ |
|
406 | /t/a/ | |
407 | /t/b/ |
|
407 | /t/b/ | |
408 |
|
408 | |||
|
409 | % test inexistent and inaccessible repo should be ignored silently | |||
|
410 | 200 Script output follows | |||
|
411 | ||||
|
412 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |||
|
413 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | |||
|
414 | <head> | |||
|
415 | <link rel="icon" href="/static/hgicon.png" type="image/png" /> | |||
|
416 | <meta name="robots" content="index, nofollow" /> | |||
|
417 | <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> | |||
|
418 | ||||
|
419 | <title>Mercurial repositories index</title> | |||
|
420 | </head> | |||
|
421 | <body> | |||
|
422 | ||||
|
423 | <div class="container"> | |||
|
424 | <div class="menu"> | |||
|
425 | <a href="http://mercurial.selenic.com/"> | |||
|
426 | <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a> | |||
|
427 | </div> | |||
|
428 | <div class="main"> | |||
|
429 | <h2>Mercurial Repositories</h2> | |||
|
430 | ||||
|
431 | <table class="bigtable"> | |||
|
432 | <tr> | |||
|
433 | <th><a href="?sort=name">Name</a></th> | |||
|
434 | <th><a href="?sort=description">Description</a></th> | |||
|
435 | <th><a href="?sort=contact">Contact</a></th> | |||
|
436 | <th><a href="?sort=lastchange">Last modified</a></th> | |||
|
437 | <th> </th> | |||
|
438 | </tr> | |||
|
439 | ||||
|
440 | </table> | |||
|
441 | </div> | |||
|
442 | </div> | |||
|
443 | ||||
|
444 | ||||
|
445 | </body> | |||
|
446 | </html> | |||
|
447 | ||||
409 | % collections: should succeed |
|
448 | % collections: should succeed | |
410 | 200 Script output follows |
|
449 | 200 Script output follows | |
411 |
|
450 |
General Comments 0
You need to be logged in to leave comments.
Login now