##// END OF EJS Templates
Do not use osutil.c with python 2.4 and Windows (issue1364)...
Do not use osutil.c with python 2.4 and Windows (issue1364) Windows python 2.4 os.stat() reports times including DST offset, while osutil.c reports the correct value, which makes status() systematically compare files content. This bug is fixed in python 2.5. Using osutil.py instead of osutil.c is 4x times slower on large repositories but current code is completely unusable. Given few people are likely to use python 2.4 on Windows this solution was considered a good trade-off compared to more invasive solutions trying to address the offset issue.

File last commit:

r10301:56b50194 default
r10521:bde1bb25 stable
Show More
test-hgwebdir.out
343 lines | 8.8 KiB | text/plain | TextLexer
/ tests / test-hgwebdir.out
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 adding a
adding b
Benoit Allard
hgweb: recurse down collections only if ** in [paths]...
r7523 adding d
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 adding c
% should give a 404 - file does not exist
404 Not Found
Dirkjan Ochtman
hgweb: better error messages
r6368 error: bork@8580ff50825a: not found in manifest
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 % should succeed
200 Script output follows
/a/
/b/
200 Script output follows
a
200 Script output follows
b
% should give a 404 - repo is not published
404 Not Found
error: repository c not found
Dirkjan Ochtman
Add tests for hgwebdir repository names with slashes in them.
r5578 % should succeed, slashy names
200 Script output follows
Dirkjan Ochtman
hgweb: keep original order from hgwebdir config files (issue1535)
r9724 /t/a/
Dirkjan Ochtman
Add tests for hgwebdir repository names with slashes in them.
r5578 /b/
Patrick Mezard
hgweb: extend [paths] syntax to match repositories recursively (issue852)...
r7450 /coll/a/
Dirkjan Ochtman
hgweb: mq repos should be in non-recursive collections, too
r7525 /coll/a/.hg/patches/
Patrick Mezard
hgweb: extend [paths] syntax to match repositories recursively (issue852)...
r7450 /coll/b/
/coll/c/
Benoit Allard
hgweb: recurse down collections only if ** in [paths]...
r7523 /rcoll/a/
/rcoll/a/.hg/patches/
/rcoll/b/
/rcoll/b/d/
/rcoll/c/
Dirkjan Ochtman
Add tests for hgwebdir repository names with slashes in them.
r5578
200 Script output follows
Dirkjan Ochtman
tests: add tests for styled hgwebdir pages
r8217 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
<head>
<link rel="icon" href="/static/hgicon.png" type="image/png" />
<meta name="robots" content="index, nofollow" />
<link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
<title>Mercurial repositories index</title>
</head>
<body>
<div class="container">
<div class="menu">
Dirkjan Ochtman
change wiki/bts URLs to point to new hostname
r8936 <a href="http://mercurial.selenic.com/">
Dirkjan Ochtman
tests: add tests for styled hgwebdir pages
r8217 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
</div>
<div class="main">
<h2>Mercurial Repositories</h2>
<table class="bigtable">
<tr>
Dirkjan Ochtman
hgweb: keep original order from hgwebdir config files (issue1535)
r9724 <th><a href="?sort=name">Name</a></th>
Dirkjan Ochtman
tests: add tests for styled hgwebdir pages
r8217 <th><a href="?sort=description">Description</a></th>
<th><a href="?sort=contact">Contact</a></th>
Dan Villiom Podlaski Christiansen
templates: rename `Last change' column in hgwebdir repository list....
r10301 <th><a href="?sort=lastchange">Last modified</a></th>
Dirkjan Ochtman
tests: add tests for styled hgwebdir pages
r8217 <th>&nbsp;</th>
</tr>
Martin Geisler
paper: break long lines in map file
r8372
<tr class="parity0">
Dirkjan Ochtman
hgweb: keep original order from hgwebdir config files (issue1535)
r9724 <td><a href="/t/a/?style=paper">t/a</a></td>
Martin Geisler
paper: break long lines in map file
r8372 <td>unknown</td>
<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>
<td class="age">seconds ago</td>
<td class="indexlinks"></td>
</tr>
<tr class="parity1">
Dirkjan Ochtman
hgweb: keep original order from hgwebdir config files (issue1535)
r9724 <td><a href="/b/?style=paper">b</a></td>
Martin Geisler
paper: break long lines in map file
r8372 <td>unknown</td>
<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>
<td class="age">seconds ago</td>
<td class="indexlinks"></td>
</tr>
<tr class="parity0">
Dirkjan Ochtman
hgweb: keep original order from hgwebdir config files (issue1535)
r9724 <td><a href="/coll/a/?style=paper">coll/a</a></td>
Martin Geisler
paper: break long lines in map file
r8372 <td>unknown</td>
<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>
<td class="age">seconds ago</td>
<td class="indexlinks"></td>
</tr>
<tr class="parity1">
Dirkjan Ochtman
hgweb: keep original order from hgwebdir config files (issue1535)
r9724 <td><a href="/coll/a/.hg/patches/?style=paper">coll/a/.hg/patches</a></td>
Martin Geisler
paper: break long lines in map file
r8372 <td>unknown</td>
<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>
<td class="age">seconds ago</td>
<td class="indexlinks"></td>
</tr>
<tr class="parity0">
Dirkjan Ochtman
hgweb: keep original order from hgwebdir config files (issue1535)
r9724 <td><a href="/coll/b/?style=paper">coll/b</a></td>
Martin Geisler
paper: break long lines in map file
r8372 <td>unknown</td>
<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>
<td class="age">seconds ago</td>
<td class="indexlinks"></td>
</tr>
<tr class="parity1">
Dirkjan Ochtman
hgweb: keep original order from hgwebdir config files (issue1535)
r9724 <td><a href="/coll/c/?style=paper">coll/c</a></td>
Martin Geisler
paper: break long lines in map file
r8372 <td>unknown</td>
<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>
<td class="age">seconds ago</td>
<td class="indexlinks"></td>
</tr>
<tr class="parity0">
Dirkjan Ochtman
hgweb: keep original order from hgwebdir config files (issue1535)
r9724 <td><a href="/rcoll/a/?style=paper">rcoll/a</a></td>
Martin Geisler
paper: break long lines in map file
r8372 <td>unknown</td>
<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>
<td class="age">seconds ago</td>
<td class="indexlinks"></td>
</tr>
<tr class="parity1">
Dirkjan Ochtman
hgweb: keep original order from hgwebdir config files (issue1535)
r9724 <td><a href="/rcoll/a/.hg/patches/?style=paper">rcoll/a/.hg/patches</a></td>
Martin Geisler
paper: break long lines in map file
r8372 <td>unknown</td>
<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>
<td class="age">seconds ago</td>
<td class="indexlinks"></td>
</tr>
<tr class="parity0">
Dirkjan Ochtman
hgweb: keep original order from hgwebdir config files (issue1535)
r9724 <td><a href="/rcoll/b/?style=paper">rcoll/b</a></td>
Martin Geisler
paper: break long lines in map file
r8372 <td>unknown</td>
<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>
<td class="age">seconds ago</td>
<td class="indexlinks"></td>
</tr>
<tr class="parity1">
Dirkjan Ochtman
hgweb: keep original order from hgwebdir config files (issue1535)
r9724 <td><a href="/rcoll/b/d/?style=paper">rcoll/b/d</a></td>
Martin Geisler
paper: break long lines in map file
r8372 <td>unknown</td>
<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>
<td class="age">seconds ago</td>
<td class="indexlinks"></td>
</tr>
<tr class="parity0">
Dirkjan Ochtman
hgweb: keep original order from hgwebdir config files (issue1535)
r9724 <td><a href="/rcoll/c/?style=paper">rcoll/c</a></td>
Martin Geisler
paper: break long lines in map file
r8372 <td>unknown</td>
<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>
<td class="age">seconds ago</td>
<td class="indexlinks"></td>
</tr>
Dirkjan Ochtman
tests: add tests for styled hgwebdir pages
r8217
</table>
</div>
</div>
</body>
</html>
200 Script output follows
Dirkjan Ochtman
Add tests for hgwebdir repository names with slashes in them.
r5578
/t/a/
200 Script output follows
/t/a/
200 Script output follows
Dirkjan Ochtman
tests: add tests for styled hgwebdir pages
r8217 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
<head>
<link rel="icon" href="/static/hgicon.png" type="image/png" />
<meta name="robots" content="index, nofollow" />
<link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
<title>Mercurial repositories index</title>
</head>
<body>
<div class="container">
<div class="menu">
Dirkjan Ochtman
change wiki/bts URLs to point to new hostname
r8936 <a href="http://mercurial.selenic.com/">
Dirkjan Ochtman
tests: add tests for styled hgwebdir pages
r8217 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
</div>
<div class="main">
<h2>Mercurial Repositories</h2>
<table class="bigtable">
<tr>
Dirkjan Ochtman
hgweb: keep original order from hgwebdir config files (issue1535)
r9724 <th><a href="?sort=name">Name</a></th>
Dirkjan Ochtman
tests: add tests for styled hgwebdir pages
r8217 <th><a href="?sort=description">Description</a></th>
<th><a href="?sort=contact">Contact</a></th>
Dan Villiom Podlaski Christiansen
templates: rename `Last change' column in hgwebdir repository list....
r10301 <th><a href="?sort=lastchange">Last modified</a></th>
Dirkjan Ochtman
tests: add tests for styled hgwebdir pages
r8217 <th>&nbsp;</th>
</tr>
Martin Geisler
paper: break long lines in map file
r8372
<tr class="parity0">
<td><a href="/t/a/?style=paper">a</a></td>
<td>unknown</td>
<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>
<td class="age">seconds ago</td>
<td class="indexlinks"></td>
</tr>
Dirkjan Ochtman
tests: add tests for styled hgwebdir pages
r8217
</table>
</div>
</div>
</body>
</html>
200 Script output follows
Dirkjan Ochtman
Add tests for hgwebdir repository names with slashes in them.
r5578 <?xml version="1.0" encoding="ascii"?>
<feed xmlns="http://127.0.0.1/2005/Atom">
<!-- Changelog -->
<id>http://127.0.0.1/t/a/</id>
<link rel="self" href="http://127.0.0.1/t/a/atom-log"/>
<link rel="alternate" href="http://127.0.0.1/t/a/"/>
<title>t/a Changelog</title>
<updated>1970-01-01T00:00:01+00:00</updated>
<entry>
<title>a</title>
Matt Mackall
atom: fix URLs used in entry GUIDs
r7849 <id>http://127.0.0.1/t/a/#changeset-8580ff50825a50c8f716709acdf8de0deddcd6ab</id>
Raoul Bhatia [IPAX]
use short identifiers in atom feed
r9581 <link href="http://127.0.0.1/t/a/rev/8580ff50825a"/>
Dirkjan Ochtman
Add tests for hgwebdir repository names with slashes in them.
r5578 <author>
<name>test</name>
<email>&#116;&#101;&#115;&#116;</email>
</author>
<updated>1970-01-01T00:00:01+00:00</updated>
<published>1970-01-01T00:00:01+00:00</published>
<content type="xhtml">
<div xmlns="http://127.0.0.1/1999/xhtml">
<pre xml:space="preserve">a</pre>
</div>
</content>
</entry>
</feed>
200 Script output follows
<?xml version="1.0" encoding="ascii"?>
<feed xmlns="http://127.0.0.1/2005/Atom">
<!-- Changelog -->
<id>http://127.0.0.1/t/a/</id>
<link rel="self" href="http://127.0.0.1/t/a/atom-log"/>
<link rel="alternate" href="http://127.0.0.1/t/a/"/>
<title>t/a Changelog</title>
<updated>1970-01-01T00:00:01+00:00</updated>
<entry>
<title>a</title>
Matt Mackall
atom: fix URLs used in entry GUIDs
r7849 <id>http://127.0.0.1/t/a/#changeset-8580ff50825a50c8f716709acdf8de0deddcd6ab</id>
Raoul Bhatia [IPAX]
use short identifiers in atom feed
r9581 <link href="http://127.0.0.1/t/a/rev/8580ff50825a"/>
Dirkjan Ochtman
Add tests for hgwebdir repository names with slashes in them.
r5578 <author>
<name>test</name>
<email>&#116;&#101;&#115;&#116;</email>
</author>
<updated>1970-01-01T00:00:01+00:00</updated>
<published>1970-01-01T00:00:01+00:00</published>
<content type="xhtml">
<div xmlns="http://127.0.0.1/1999/xhtml">
<pre xml:space="preserve">a</pre>
</div>
</content>
</entry>
</feed>
200 Script output follows
a
Patrick Mezard
hgweb: extend [paths] syntax to match repositories recursively (issue852)...
r7450 200 Script output follows
/coll/a/
Dirkjan Ochtman
hgweb: mq repos should be in non-recursive collections, too
r7525 /coll/a/.hg/patches/
Patrick Mezard
hgweb: extend [paths] syntax to match repositories recursively (issue852)...
r7450 /coll/b/
/coll/c/
200 Script output follows
a
Benoit Allard
hgweb: recurse down collections only if ** in [paths]...
r7523 200 Script output follows
/rcoll/a/
/rcoll/a/.hg/patches/
/rcoll/b/
/rcoll/b/d/
/rcoll/c/
200 Script output follows
d
Dirkjan Ochtman
hgweb: add web.descend configuration variable
r9363 % test descend = False
200 Script output follows
/c/
200 Script output follows
/t/a/
/t/b/
Benoit Allard
hgweb: recurse down collections only if ** in [paths]...
r7523 % collections: should succeed
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561 200 Script output follows
Bryan O'Sullivan
Fix issue1679: path reconstruction in hgwebdir was mangling things badly
r9184 http://hg.example.com:8080/a/
http://hg.example.com:8080/a/.hg/patches/
http://hg.example.com:8080/b/
http://hg.example.com:8080/c/
Bryan O'Sullivan
hgweb: return meaningful HTTP status codes instead of nonsense
r5561
200 Script output follows
a
200 Script output follows
b
200 Script output follows
c
Dirkjan Ochtman
hgwebdir: split out makeindex function, facilitate test failure diagnosis
r5601 % paths errors 1
% paths errors 2
Dirkjan Ochtman
hgweb: add web.descend configuration variable
r9363 % paths errors 3
Dirkjan Ochtman
hgwebdir: split out makeindex function, facilitate test failure diagnosis
r5601 % collections errors