Show More
@@ -1,31 +1,31 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | hg init test |
|
3 | hg init test | |
4 | cd test |
|
4 | cd test | |
5 | mkdir da |
|
5 | mkdir da | |
6 | echo foo > da/foo |
|
6 | echo foo > da/foo | |
7 | echo foo > foo |
|
7 | echo foo > foo | |
8 | hg ci -Ambase -d '0 0' |
|
8 | hg ci -Ambase -d '0 0' | |
9 | hg serve -p $HGPORT -d --pid-file=hg.pid |
|
9 | hg serve -p $HGPORT -d --pid-file=hg.pid | |
10 | cat hg.pid >> $DAEMON_PIDS |
|
10 | cat hg.pid >> $DAEMON_PIDS | |
11 | echo % manifest |
|
11 | echo % manifest | |
12 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/?style=raw') |
|
12 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/?style=raw') | |
13 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/da?style=raw') |
|
13 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/da?style=raw') | |
14 |
|
14 | |||
15 | echo % plain file |
|
15 | echo % plain file | |
16 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/foo?style=raw' |
|
16 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/foo?style=raw' | |
17 |
|
17 | |||
18 | echo % should give a 404 - static file that does not exist |
|
18 | echo % should give a 404 - static file that does not exist | |
19 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/static/bogus' |
|
19 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/static/bogus' | |
20 |
|
20 | |||
21 | echo % should give a 404 - bad revision |
|
21 | echo % should give a 404 - bad revision | |
22 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/spam/foo?style=raw' |
|
22 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/spam/foo?style=raw' | |
23 |
|
23 | |||
24 | echo % should give a 400 - bad command |
|
24 | echo % should give a 400 - bad command | |
25 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/foo?cmd=spam&style=raw' |
|
25 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/foo?cmd=spam&style=raw' | sed 's/400.*/400/' | |
26 |
|
26 | |||
27 | echo % should give a 404 - file does not exist |
|
27 | echo % should give a 404 - file does not exist | |
28 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork?style=raw' |
|
28 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork?style=raw' | |
29 |
|
29 | |||
30 | echo % static file |
|
30 | echo % static file | |
31 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/static/style-gitweb.css' |
|
31 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/static/style-gitweb.css' |
@@ -1,136 +1,136 b'' | |||||
1 | adding da/foo |
|
1 | adding da/foo | |
2 | adding foo |
|
2 | adding foo | |
3 | % manifest |
|
3 | % manifest | |
4 | 200 Script output follows |
|
4 | 200 Script output follows | |
5 |
|
5 | |||
6 |
|
6 | |||
7 | drwxr-xr-x da |
|
7 | drwxr-xr-x da | |
8 | -rw-r--r-- 4 foo |
|
8 | -rw-r--r-- 4 foo | |
9 |
|
9 | |||
10 |
|
10 | |||
11 | 200 Script output follows |
|
11 | 200 Script output follows | |
12 |
|
12 | |||
13 |
|
13 | |||
14 | -rw-r--r-- 4 foo |
|
14 | -rw-r--r-- 4 foo | |
15 |
|
15 | |||
16 |
|
16 | |||
17 | % plain file |
|
17 | % plain file | |
18 | 200 Script output follows |
|
18 | 200 Script output follows | |
19 |
|
19 | |||
20 | foo |
|
20 | foo | |
21 | % should give a 404 - static file that does not exist |
|
21 | % should give a 404 - static file that does not exist | |
22 | 404 Not Found |
|
22 | 404 Not Found | |
23 |
|
23 | |||
24 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
24 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
25 | <html> |
|
25 | <html> | |
26 | <head> |
|
26 | <head> | |
27 | <link rel="icon" href="/static/hgicon.png" type="image/png"> |
|
27 | <link rel="icon" href="/static/hgicon.png" type="image/png"> | |
28 | <meta name="robots" content="index, nofollow" /> |
|
28 | <meta name="robots" content="index, nofollow" /> | |
29 | <link rel="stylesheet" href="/static/style.css" type="text/css" /> |
|
29 | <link rel="stylesheet" href="/static/style.css" type="text/css" /> | |
30 |
|
30 | |||
31 | <title>Mercurial Error</title> |
|
31 | <title>Mercurial Error</title> | |
32 | </head> |
|
32 | </head> | |
33 | <body> |
|
33 | <body> | |
34 |
|
34 | |||
35 | <h2>Mercurial Error</h2> |
|
35 | <h2>Mercurial Error</h2> | |
36 |
|
36 | |||
37 | <p> |
|
37 | <p> | |
38 | An error occured while processing your request: |
|
38 | An error occured while processing your request: | |
39 | </p> |
|
39 | </p> | |
40 | <p> |
|
40 | <p> | |
41 | Not Found |
|
41 | Not Found | |
42 | </p> |
|
42 | </p> | |
43 |
|
43 | |||
44 |
|
44 | |||
45 | <div class="logo"> |
|
45 | <div class="logo"> | |
46 | powered by<br/> |
|
46 | powered by<br/> | |
47 | <a href="http://www.selenic.com/mercurial/">mercurial</a> |
|
47 | <a href="http://www.selenic.com/mercurial/">mercurial</a> | |
48 | </div> |
|
48 | </div> | |
49 |
|
49 | |||
50 | </body> |
|
50 | </body> | |
51 | </html> |
|
51 | </html> | |
52 |
|
52 | |||
53 | % should give a 404 - bad revision |
|
53 | % should give a 404 - bad revision | |
54 | 404 Not Found |
|
54 | 404 Not Found | |
55 |
|
55 | |||
56 |
|
56 | |||
57 | error: revision not found: spam |
|
57 | error: revision not found: spam | |
58 | % should give a 400 - bad command |
|
58 | % should give a 400 - bad command | |
59 | 400 Bad Request |
|
59 | 400 | |
60 |
|
60 | |||
61 |
|
61 | |||
62 | error: No such method: spam |
|
62 | error: No such method: spam | |
63 | % should give a 404 - file does not exist |
|
63 | % should give a 404 - file does not exist | |
64 | 404 Not Found |
|
64 | 404 Not Found | |
65 |
|
65 | |||
66 |
|
66 | |||
67 | error: Path not found: bork/ |
|
67 | error: Path not found: bork/ | |
68 | % static file |
|
68 | % static file | |
69 | 200 Script output follows |
|
69 | 200 Script output follows | |
70 |
|
70 | |||
71 | body { font-family: sans-serif; font-size: 12px; margin:0px; border:solid #d9d8d1; border-width:1px; margin:10px; } |
|
71 | body { font-family: sans-serif; font-size: 12px; margin:0px; border:solid #d9d8d1; border-width:1px; margin:10px; } | |
72 | a { color:#0000cc; } |
|
72 | a { color:#0000cc; } | |
73 | a:hover, a:visited, a:active { color:#880000; } |
|
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; } |
|
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; } |
|
75 | div.page_header a:visited { color:#0000cc; } | |
76 | div.page_header a:hover { color:#880000; } |
|
76 | div.page_header a:hover { color:#880000; } | |
77 | div.page_nav { padding:8px; } |
|
77 | div.page_nav { padding:8px; } | |
78 | div.page_nav a:visited { color:#0000cc; } |
|
78 | div.page_nav a:visited { color:#0000cc; } | |
79 | div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px} |
|
79 | div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px} | |
80 | div.page_footer { padding:4px 8px; background-color: #d9d8d1; } |
|
80 | div.page_footer { padding:4px 8px; background-color: #d9d8d1; } | |
81 | div.page_footer_text { float:left; color:#555555; font-style:italic; } |
|
81 | div.page_footer_text { float:left; color:#555555; font-style:italic; } | |
82 | div.page_body { padding:8px; } |
|
82 | div.page_body { padding:8px; } | |
83 | div.title, a.title { |
|
83 | div.title, a.title { | |
84 | display:block; padding:6px 8px; |
|
84 | display:block; padding:6px 8px; | |
85 | font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000; |
|
85 | font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000; | |
86 | } |
|
86 | } | |
87 | a.title:hover { background-color: #d9d8d1; } |
|
87 | a.title:hover { background-color: #d9d8d1; } | |
88 | div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; } |
|
88 | div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; } | |
89 | div.log_body { padding:8px 8px 8px 150px; } |
|
89 | div.log_body { padding:8px 8px 8px 150px; } | |
90 | .age { white-space:nowrap; } |
|
90 | .age { white-space:nowrap; } | |
91 | span.age { position:relative; float:left; width:142px; font-style:italic; } |
|
91 | span.age { position:relative; float:left; width:142px; font-style:italic; } | |
92 | div.log_link { |
|
92 | div.log_link { | |
93 | padding:0px 8px; |
|
93 | padding:0px 8px; | |
94 | font-size:10px; font-family:sans-serif; font-style:normal; |
|
94 | font-size:10px; font-family:sans-serif; font-style:normal; | |
95 | position:relative; float:left; width:136px; |
|
95 | position:relative; float:left; width:136px; | |
96 | } |
|
96 | } | |
97 | div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; } |
|
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; } |
|
98 | a.list { text-decoration:none; color:#000000; } | |
99 | a.list:hover { text-decoration:underline; color:#880000; } |
|
99 | a.list:hover { text-decoration:underline; color:#880000; } | |
100 | table { padding:8px 4px; } |
|
100 | table { padding:8px 4px; } | |
101 | th { padding:2px 5px; font-size:12px; text-align:left; } |
|
101 | th { padding:2px 5px; font-size:12px; text-align:left; } | |
102 | tr.light:hover, .parity0:hover { background-color:#edece6; } |
|
102 | tr.light:hover, .parity0:hover { background-color:#edece6; } | |
103 | tr.dark, .parity1 { background-color:#f6f6f0; } |
|
103 | tr.dark, .parity1 { background-color:#f6f6f0; } | |
104 | tr.dark:hover, .parity1:hover { background-color:#edece6; } |
|
104 | tr.dark:hover, .parity1:hover { background-color:#edece6; } | |
105 | td { padding:2px 5px; font-size:12px; vertical-align:top; } |
|
105 | td { padding:2px 5px; font-size:12px; vertical-align:top; } | |
106 | td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; } |
|
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; } |
|
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; } |
|
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; } |
|
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 } |
|
110 | div.search { margin:4px 8px; position:absolute; top:56px; right:12px } | |
111 | .linenr { color:#999999; text-decoration:none } |
|
111 | .linenr { color:#999999; text-decoration:none } | |
112 | a.rss_logo { |
|
112 | a.rss_logo { | |
113 | float:right; padding:3px 0px; width:35px; line-height:10px; |
|
113 | float:right; padding:3px 0px; width:35px; line-height:10px; | |
114 | border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e; |
|
114 | border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e; | |
115 | color:#ffffff; background-color:#ff6600; |
|
115 | color:#ffffff; background-color:#ff6600; | |
116 | font-weight:bold; font-family:sans-serif; font-size:10px; |
|
116 | font-weight:bold; font-family:sans-serif; font-size:10px; | |
117 | text-align:center; text-decoration:none; |
|
117 | text-align:center; text-decoration:none; | |
118 | } |
|
118 | } | |
119 | a.rss_logo:hover { background-color:#ee5500; } |
|
119 | a.rss_logo:hover { background-color:#ee5500; } | |
120 | pre { margin: 0; } |
|
120 | pre { margin: 0; } | |
121 | span.logtags span { |
|
121 | span.logtags span { | |
122 | padding: 0px 4px; |
|
122 | padding: 0px 4px; | |
123 | font-size: 10px; |
|
123 | font-size: 10px; | |
124 | font-weight: normal; |
|
124 | font-weight: normal; | |
125 | border: 1px solid; |
|
125 | border: 1px solid; | |
126 | background-color: #ffaaff; |
|
126 | background-color: #ffaaff; | |
127 | border-color: #ffccff #ff00ee #ff00ee #ffccff; |
|
127 | border-color: #ffccff #ff00ee #ff00ee #ffccff; | |
128 | } |
|
128 | } | |
129 | span.logtags span.tagtag { |
|
129 | span.logtags span.tagtag { | |
130 | background-color: #ffffaa; |
|
130 | background-color: #ffffaa; | |
131 | border-color: #ffffcc #ffee00 #ffee00 #ffffcc; |
|
131 | border-color: #ffffcc #ffee00 #ffee00 #ffffcc; | |
132 | } |
|
132 | } | |
133 | span.logtags span.branchtag { |
|
133 | span.logtags span.branchtag { | |
134 | background-color: #aaffaa; |
|
134 | background-color: #aaffaa; | |
135 | border-color: #ccffcc #00cc33 #00cc33 #ccffcc; |
|
135 | border-color: #ccffcc #00cc33 #00cc33 #ccffcc; | |
136 | } |
|
136 | } |
General Comments 0
You need to be logged in to leave comments.
Login now