Mercurial > hg-stable
comparison tests/test-hgweb.out @ 5561:22713dce19f6
hgweb: return meaningful HTTP status codes instead of nonsense
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 28 Nov 2007 08:38:42 -0800 |
parents | 8eccfce0ab5e |
children | b4af2dd9868a |
comparison
equal
deleted
inserted
replaced
5560:e78c24011001 | 5561:22713dce19f6 |
---|---|
12 | 12 |
13 | 13 |
14 -rw-r--r-- 4 foo | 14 -rw-r--r-- 4 foo |
15 | 15 |
16 | 16 |
17 % plain file | |
18 200 Script output follows | |
19 | |
20 foo | |
21 % should give a 404 - static file that does not exist | |
22 404 Not Found | |
23 | |
24 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
25 <html> | |
26 <head> | |
27 <link rel="icon" href="/static/hgicon.png" type="image/png"> | |
28 <meta name="robots" content="index, nofollow" /> | |
29 <link rel="stylesheet" href="/static/style.css" type="text/css" /> | |
30 | |
31 <title>Mercurial Error</title> | |
32 </head> | |
33 <body> | |
34 | |
35 <h2>Mercurial Error</h2> | |
36 | |
37 <p> | |
38 An error occured while processing your request: | |
39 </p> | |
40 <p> | |
41 Not Found | |
42 </p> | |
43 | |
44 | |
45 <div class="logo"> | |
46 powered by<br/> | |
47 <a href="http://www.selenic.com/mercurial/">mercurial</a> | |
48 </div> | |
49 | |
50 </body> | |
51 </html> | |
52 | |
53 % should give a 404 - bad revision | |
54 404 Not Found | |
55 | |
56 | |
57 error: revision not found: spam | |
58 % should give a 400 - bad command | |
59 400 Bad Request | |
60 | |
61 | |
62 error: No such method: spam | |
63 % should give a 404 - file does not exist | |
64 404 Not Found | |
65 | |
66 | |
67 error: Path not found: bork/ | |
68 % static file | |
69 200 Script output follows | |
70 | |
71 body { font-family: sans-serif; font-size: 12px; margin:0px; border:solid #d9d8d1; border-width:1px; margin:10px; } | |
72 a { color:#0000cc; } | |
73 a:hover, a:visited, a:active { color:#880000; } | |
74 div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; } | |
75 div.page_header a:visited { color:#0000cc; } | |
76 div.page_header a:hover { color:#880000; } | |
77 div.page_nav { padding:8px; } | |
78 div.page_nav a:visited { color:#0000cc; } | |
79 div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px} | |
80 div.page_footer { padding:4px 8px; background-color: #d9d8d1; } | |
81 div.page_footer_text { float:left; color:#555555; font-style:italic; } | |
82 div.page_body { padding:8px; } | |
83 div.title, a.title { | |
84 display:block; padding:6px 8px; | |
85 font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000; | |
86 } | |
87 a.title:hover { background-color: #d9d8d1; } | |
88 div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; } | |
89 div.log_body { padding:8px 8px 8px 150px; } | |
90 .age { white-space:nowrap; } | |
91 span.age { position:relative; float:left; width:142px; font-style:italic; } | |
92 div.log_link { | |
93 padding:0px 8px; | |
94 font-size:10px; font-family:sans-serif; font-style:normal; | |
95 position:relative; float:left; width:136px; | |
96 } | |
97 div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; } | |
98 a.list { text-decoration:none; color:#000000; } | |
99 a.list:hover { text-decoration:underline; color:#880000; } | |
100 table { padding:8px 4px; } | |
101 th { padding:2px 5px; font-size:12px; text-align:left; } | |
102 tr.light:hover, .parity0:hover { background-color:#edece6; } | |
103 tr.dark, .parity1 { background-color:#f6f6f0; } | |
104 tr.dark:hover, .parity1:hover { background-color:#edece6; } | |
105 td { padding:2px 5px; font-size:12px; vertical-align:top; } | |
106 td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; } | |
107 div.pre { font-family:monospace; font-size:12px; white-space:pre; } | |
108 div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; } | |
109 div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; } | |
110 div.search { margin:4px 8px; position:absolute; top:56px; right:12px } | |
111 .linenr { color:#999999; text-decoration:none } | |
112 a.rss_logo { | |
113 float:right; padding:3px 0px; width:35px; line-height:10px; | |
114 border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e; | |
115 color:#ffffff; background-color:#ff6600; | |
116 font-weight:bold; font-family:sans-serif; font-size:10px; | |
117 text-align:center; text-decoration:none; | |
118 } | |
119 a.rss_logo:hover { background-color:#ee5500; } | |
120 pre { margin: 0; } | |
121 span.logtags span { | |
122 padding: 0px 4px; | |
123 font-size: 10px; | |
124 font-weight: normal; | |
125 border: 1px solid; | |
126 background-color: #ffaaff; | |
127 border-color: #ffccff #ff00ee #ff00ee #ffccff; | |
128 } | |
129 span.logtags span.tagtag { | |
130 background-color: #ffffaa; | |
131 border-color: #ffffcc #ffee00 #ffee00 #ffffcc; | |
132 } | |
133 span.logtags span.branchtag { | |
134 background-color: #aaffaa; | |
135 border-color: #ccffcc #00cc33 #00cc33 #ccffcc; | |
136 } |