##// END OF EJS Templates
css: remove repeated property...
Alexander Plavin -
r19076:93493746 stable
parent child Browse files
Show More
@@ -1,169 +1,169 b''
1 body { font-family: sans-serif; font-size: 12px; margin:0px; border:solid #d9d8d1; border-width:1px; margin:10px; }
1 body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; }
2 a { color:#0000cc; }
2 a { color:#0000cc; }
3 a:hover, a:visited, a:active { color:#880000; }
3 a:hover, a:visited, a:active { color:#880000; }
4 div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; }
4 div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; }
5 div.page_header a:visited { color:#0000cc; }
5 div.page_header a:visited { color:#0000cc; }
6 div.page_header a:hover { color:#880000; }
6 div.page_header a:hover { color:#880000; }
7 div.page_nav { padding:8px; }
7 div.page_nav { padding:8px; }
8 div.page_nav a:visited { color:#0000cc; }
8 div.page_nav a:visited { color:#0000cc; }
9 div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px}
9 div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px}
10 div.page_footer { padding:4px 8px; background-color: #d9d8d1; }
10 div.page_footer { padding:4px 8px; background-color: #d9d8d1; }
11 div.page_footer_text { float:left; color:#555555; font-style:italic; }
11 div.page_footer_text { float:left; color:#555555; font-style:italic; }
12 div.page_body { padding:8px; }
12 div.page_body { padding:8px; }
13 div.title, a.title {
13 div.title, a.title {
14 display:block; padding:6px 8px;
14 display:block; padding:6px 8px;
15 font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000;
15 font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000;
16 }
16 }
17 a.title:hover { background-color: #d9d8d1; }
17 a.title:hover { background-color: #d9d8d1; }
18 div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; }
18 div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; }
19 div.log_body { padding:8px 8px 8px 150px; }
19 div.log_body { padding:8px 8px 8px 150px; }
20 .age { white-space:nowrap; }
20 .age { white-space:nowrap; }
21 span.age { position:relative; float:left; width:142px; font-style:italic; }
21 span.age { position:relative; float:left; width:142px; font-style:italic; }
22 div.log_link {
22 div.log_link {
23 padding:0px 8px;
23 padding:0px 8px;
24 font-size:10px; font-family:sans-serif; font-style:normal;
24 font-size:10px; font-family:sans-serif; font-style:normal;
25 position:relative; float:left; width:136px;
25 position:relative; float:left; width:136px;
26 }
26 }
27 div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; }
27 div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; }
28 a.list { text-decoration:none; color:#000000; }
28 a.list { text-decoration:none; color:#000000; }
29 a.list:hover { text-decoration:underline; color:#880000; }
29 a.list:hover { text-decoration:underline; color:#880000; }
30 table { padding:8px 4px; }
30 table { padding:8px 4px; }
31 th { padding:2px 5px; font-size:12px; text-align:left; }
31 th { padding:2px 5px; font-size:12px; text-align:left; }
32 tr.light:hover, .parity0:hover { background-color:#edece6; }
32 tr.light:hover, .parity0:hover { background-color:#edece6; }
33 tr.dark, .parity1 { background-color:#f6f6f0; }
33 tr.dark, .parity1 { background-color:#f6f6f0; }
34 tr.dark:hover, .parity1:hover { background-color:#edece6; }
34 tr.dark:hover, .parity1:hover { background-color:#edece6; }
35 td { padding:2px 5px; font-size:12px; vertical-align:top; }
35 td { padding:2px 5px; font-size:12px; vertical-align:top; }
36 td.closed { background-color: #99f; }
36 td.closed { background-color: #99f; }
37 td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; }
37 td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; }
38 td.indexlinks { white-space: nowrap; }
38 td.indexlinks { white-space: nowrap; }
39 td.indexlinks a {
39 td.indexlinks a {
40 padding: 2px 5px; line-height: 10px;
40 padding: 2px 5px; line-height: 10px;
41 border: 1px solid;
41 border: 1px solid;
42 color: #ffffff; background-color: #7777bb;
42 color: #ffffff; background-color: #7777bb;
43 border-color: #aaaadd #333366 #333366 #aaaadd;
43 border-color: #aaaadd #333366 #333366 #aaaadd;
44 font-weight: bold; text-align: center; text-decoration: none;
44 font-weight: bold; text-align: center; text-decoration: none;
45 font-size: 10px;
45 font-size: 10px;
46 }
46 }
47 td.indexlinks a:hover { background-color: #6666aa; }
47 td.indexlinks a:hover { background-color: #6666aa; }
48 div.pre { font-family:monospace; font-size:12px; white-space:pre; }
48 div.pre { font-family:monospace; font-size:12px; white-space:pre; }
49 div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; }
49 div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; }
50 div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; }
50 div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; }
51 div.search { margin:4px 8px; position:absolute; top:56px; right:12px }
51 div.search { margin:4px 8px; position:absolute; top:56px; right:12px }
52 .linenr { color:#999999; text-decoration:none }
52 .linenr { color:#999999; text-decoration:none }
53 div.rss_logo { float: right; white-space: nowrap; }
53 div.rss_logo { float: right; white-space: nowrap; }
54 div.rss_logo a {
54 div.rss_logo a {
55 padding:3px 6px; line-height:10px;
55 padding:3px 6px; line-height:10px;
56 border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e;
56 border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e;
57 color:#ffffff; background-color:#ff6600;
57 color:#ffffff; background-color:#ff6600;
58 font-weight:bold; font-family:sans-serif; font-size:10px;
58 font-weight:bold; font-family:sans-serif; font-size:10px;
59 text-align:center; text-decoration:none;
59 text-align:center; text-decoration:none;
60 }
60 }
61 div.rss_logo a:hover { background-color:#ee5500; }
61 div.rss_logo a:hover { background-color:#ee5500; }
62 pre { margin: 0; }
62 pre { margin: 0; }
63 span.logtags span {
63 span.logtags span {
64 padding: 0px 4px;
64 padding: 0px 4px;
65 font-size: 10px;
65 font-size: 10px;
66 font-weight: normal;
66 font-weight: normal;
67 border: 1px solid;
67 border: 1px solid;
68 background-color: #ffaaff;
68 background-color: #ffaaff;
69 border-color: #ffccff #ff00ee #ff00ee #ffccff;
69 border-color: #ffccff #ff00ee #ff00ee #ffccff;
70 }
70 }
71 span.logtags span.tagtag {
71 span.logtags span.tagtag {
72 background-color: #ffffaa;
72 background-color: #ffffaa;
73 border-color: #ffffcc #ffee00 #ffee00 #ffffcc;
73 border-color: #ffffcc #ffee00 #ffee00 #ffffcc;
74 }
74 }
75 span.logtags span.branchtag {
75 span.logtags span.branchtag {
76 background-color: #aaffaa;
76 background-color: #aaffaa;
77 border-color: #ccffcc #00cc33 #00cc33 #ccffcc;
77 border-color: #ccffcc #00cc33 #00cc33 #ccffcc;
78 }
78 }
79 span.logtags span.inbranchtag {
79 span.logtags span.inbranchtag {
80 background-color: #d5dde6;
80 background-color: #d5dde6;
81 border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
81 border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
82 }
82 }
83 span.logtags span.bookmarktag {
83 span.logtags span.bookmarktag {
84 background-color: #afdffa;
84 background-color: #afdffa;
85 border-color: #ccecff #46ace6 #46ace6 #ccecff;
85 border-color: #ccecff #46ace6 #46ace6 #ccecff;
86 }
86 }
87
87
88 /* Graph */
88 /* Graph */
89 div#wrapper {
89 div#wrapper {
90 position: relative;
90 position: relative;
91 margin: 0;
91 margin: 0;
92 padding: 0;
92 padding: 0;
93 margin-top: 3px;
93 margin-top: 3px;
94 }
94 }
95
95
96 canvas {
96 canvas {
97 position: absolute;
97 position: absolute;
98 z-index: 5;
98 z-index: 5;
99 top: -0.9em;
99 top: -0.9em;
100 margin: 0;
100 margin: 0;
101 }
101 }
102
102
103 ul#nodebgs {
103 ul#nodebgs {
104 list-style: none inside none;
104 list-style: none inside none;
105 padding: 0;
105 padding: 0;
106 margin: 0;
106 margin: 0;
107 top: -0.7em;
107 top: -0.7em;
108 }
108 }
109
109
110 ul#graphnodes li, ul#nodebgs li {
110 ul#graphnodes li, ul#nodebgs li {
111 height: 39px;
111 height: 39px;
112 }
112 }
113
113
114 ul#graphnodes {
114 ul#graphnodes {
115 position: absolute;
115 position: absolute;
116 z-index: 10;
116 z-index: 10;
117 top: -0.8em;
117 top: -0.8em;
118 list-style: none inside none;
118 list-style: none inside none;
119 padding: 0;
119 padding: 0;
120 }
120 }
121
121
122 ul#graphnodes li .info {
122 ul#graphnodes li .info {
123 display: block;
123 display: block;
124 font-size: 100%;
124 font-size: 100%;
125 position: relative;
125 position: relative;
126 top: -3px;
126 top: -3px;
127 font-style: italic;
127 font-style: italic;
128 }
128 }
129
129
130 /* Comparison */
130 /* Comparison */
131 .legend {
131 .legend {
132 padding: 1.5% 0 1.5% 0;
132 padding: 1.5% 0 1.5% 0;
133 }
133 }
134
134
135 .legendinfo {
135 .legendinfo {
136 border: 1px solid #d9d8d1;
136 border: 1px solid #d9d8d1;
137 font-size: 80%;
137 font-size: 80%;
138 text-align: center;
138 text-align: center;
139 padding: 0.5%;
139 padding: 0.5%;
140 }
140 }
141
141
142 .equal {
142 .equal {
143 background-color: #ffffff;
143 background-color: #ffffff;
144 }
144 }
145
145
146 .delete {
146 .delete {
147 background-color: #faa;
147 background-color: #faa;
148 color: #333;
148 color: #333;
149 }
149 }
150
150
151 .insert {
151 .insert {
152 background-color: #ffa;
152 background-color: #ffa;
153 }
153 }
154
154
155 .replace {
155 .replace {
156 background-color: #e8e8e8;
156 background-color: #e8e8e8;
157 }
157 }
158
158
159 .comparison {
159 .comparison {
160 overflow-x: auto;
160 overflow-x: auto;
161 }
161 }
162
162
163 .header th {
163 .header th {
164 text-align: center;
164 text-align: center;
165 }
165 }
166
166
167 .block {
167 .block {
168 border-top: 1px solid #d9d8d1;
168 border-top: 1px solid #d9d8d1;
169 }
169 }
@@ -1,494 +1,494 b''
1 $ "$TESTDIR/hghave" serve || exit 80
1 $ "$TESTDIR/hghave" serve || exit 80
2
2
3 Some tests for hgweb. Tests static files, plain files and different 404's.
3 Some tests for hgweb. Tests static files, plain files and different 404's.
4
4
5 $ hg init test
5 $ hg init test
6 $ cd test
6 $ cd test
7 $ mkdir da
7 $ mkdir da
8 $ echo foo > da/foo
8 $ echo foo > da/foo
9 $ echo foo > foo
9 $ echo foo > foo
10 $ hg ci -Ambase
10 $ hg ci -Ambase
11 adding da/foo
11 adding da/foo
12 adding foo
12 adding foo
13 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
13 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
14 $ cat hg.pid >> $DAEMON_PIDS
14 $ cat hg.pid >> $DAEMON_PIDS
15
15
16 manifest
16 manifest
17
17
18 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/?style=raw')
18 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/?style=raw')
19 200 Script output follows
19 200 Script output follows
20
20
21
21
22 drwxr-xr-x da
22 drwxr-xr-x da
23 -rw-r--r-- 4 foo
23 -rw-r--r-- 4 foo
24
24
25
25
26 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/da?style=raw')
26 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/da?style=raw')
27 200 Script output follows
27 200 Script output follows
28
28
29
29
30 -rw-r--r-- 4 foo
30 -rw-r--r-- 4 foo
31
31
32
32
33
33
34 plain file
34 plain file
35
35
36 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/foo?style=raw'
36 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/foo?style=raw'
37 200 Script output follows
37 200 Script output follows
38
38
39 foo
39 foo
40
40
41 should give a 404 - static file that does not exist
41 should give a 404 - static file that does not exist
42
42
43 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'static/bogus'
43 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'static/bogus'
44 404 Not Found
44 404 Not Found
45
45
46 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
46 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
47 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
47 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
48 <head>
48 <head>
49 <link rel="icon" href="/static/hgicon.png" type="image/png" />
49 <link rel="icon" href="/static/hgicon.png" type="image/png" />
50 <meta name="robots" content="index, nofollow" />
50 <meta name="robots" content="index, nofollow" />
51 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
51 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
52 <script type="text/javascript" src="/static/mercurial.js"></script>
52 <script type="text/javascript" src="/static/mercurial.js"></script>
53
53
54 <title>test: error</title>
54 <title>test: error</title>
55 </head>
55 </head>
56 <body>
56 <body>
57
57
58 <div class="container">
58 <div class="container">
59 <div class="menu">
59 <div class="menu">
60 <div class="logo">
60 <div class="logo">
61 <a href="http://mercurial.selenic.com/">
61 <a href="http://mercurial.selenic.com/">
62 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
62 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
63 </div>
63 </div>
64 <ul>
64 <ul>
65 <li><a href="/shortlog">log</a></li>
65 <li><a href="/shortlog">log</a></li>
66 <li><a href="/graph">graph</a></li>
66 <li><a href="/graph">graph</a></li>
67 <li><a href="/tags">tags</a></li>
67 <li><a href="/tags">tags</a></li>
68 <li><a href="/bookmarks">bookmarks</a></li>
68 <li><a href="/bookmarks">bookmarks</a></li>
69 <li><a href="/branches">branches</a></li>
69 <li><a href="/branches">branches</a></li>
70 </ul>
70 </ul>
71 <ul>
71 <ul>
72 <li><a href="/help">help</a></li>
72 <li><a href="/help">help</a></li>
73 </ul>
73 </ul>
74 </div>
74 </div>
75
75
76 <div class="main">
76 <div class="main">
77
77
78 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
78 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
79 <h3>error</h3>
79 <h3>error</h3>
80
80
81 <form class="search" action="/log">
81 <form class="search" action="/log">
82
82
83 <p><input name="rev" id="search1" type="text" size="30"></p>
83 <p><input name="rev" id="search1" type="text" size="30"></p>
84 <div id="hint">find changesets by author, revision,
84 <div id="hint">find changesets by author, revision,
85 files, or words in the commit message</div>
85 files, or words in the commit message</div>
86 </form>
86 </form>
87
87
88 <div class="description">
88 <div class="description">
89 <p>
89 <p>
90 An error occurred while processing your request:
90 An error occurred while processing your request:
91 </p>
91 </p>
92 <p>
92 <p>
93 Not Found
93 Not Found
94 </p>
94 </p>
95 </div>
95 </div>
96 </div>
96 </div>
97 </div>
97 </div>
98
98
99 <script type="text/javascript">process_dates()</script>
99 <script type="text/javascript">process_dates()</script>
100
100
101
101
102 </body>
102 </body>
103 </html>
103 </html>
104
104
105 [1]
105 [1]
106
106
107 should give a 404 - bad revision
107 should give a 404 - bad revision
108
108
109 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/spam/foo?style=raw'
109 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/spam/foo?style=raw'
110 404 Not Found
110 404 Not Found
111
111
112
112
113 error: revision not found: spam
113 error: revision not found: spam
114 [1]
114 [1]
115
115
116 should give a 400 - bad command
116 should give a 400 - bad command
117
117
118 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/foo?cmd=spam&style=raw'
118 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/foo?cmd=spam&style=raw'
119 400* (glob)
119 400* (glob)
120
120
121
121
122 error: no such method: spam
122 error: no such method: spam
123 [1]
123 [1]
124
124
125 should give a 404 - file does not exist
125 should give a 404 - file does not exist
126
126
127 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/bork?style=raw'
127 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/bork?style=raw'
128 404 Not Found
128 404 Not Found
129
129
130
130
131 error: bork@2ef0ac749a14: not found in manifest
131 error: bork@2ef0ac749a14: not found in manifest
132 [1]
132 [1]
133 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/bork'
133 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/bork'
134 404 Not Found
134 404 Not Found
135
135
136 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
136 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
137 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
137 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
138 <head>
138 <head>
139 <link rel="icon" href="/static/hgicon.png" type="image/png" />
139 <link rel="icon" href="/static/hgicon.png" type="image/png" />
140 <meta name="robots" content="index, nofollow" />
140 <meta name="robots" content="index, nofollow" />
141 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
141 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
142 <script type="text/javascript" src="/static/mercurial.js"></script>
142 <script type="text/javascript" src="/static/mercurial.js"></script>
143
143
144 <title>test: error</title>
144 <title>test: error</title>
145 </head>
145 </head>
146 <body>
146 <body>
147
147
148 <div class="container">
148 <div class="container">
149 <div class="menu">
149 <div class="menu">
150 <div class="logo">
150 <div class="logo">
151 <a href="http://mercurial.selenic.com/">
151 <a href="http://mercurial.selenic.com/">
152 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
152 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
153 </div>
153 </div>
154 <ul>
154 <ul>
155 <li><a href="/shortlog">log</a></li>
155 <li><a href="/shortlog">log</a></li>
156 <li><a href="/graph">graph</a></li>
156 <li><a href="/graph">graph</a></li>
157 <li><a href="/tags">tags</a></li>
157 <li><a href="/tags">tags</a></li>
158 <li><a href="/bookmarks">bookmarks</a></li>
158 <li><a href="/bookmarks">bookmarks</a></li>
159 <li><a href="/branches">branches</a></li>
159 <li><a href="/branches">branches</a></li>
160 </ul>
160 </ul>
161 <ul>
161 <ul>
162 <li><a href="/help">help</a></li>
162 <li><a href="/help">help</a></li>
163 </ul>
163 </ul>
164 </div>
164 </div>
165
165
166 <div class="main">
166 <div class="main">
167
167
168 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
168 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
169 <h3>error</h3>
169 <h3>error</h3>
170
170
171 <form class="search" action="/log">
171 <form class="search" action="/log">
172
172
173 <p><input name="rev" id="search1" type="text" size="30"></p>
173 <p><input name="rev" id="search1" type="text" size="30"></p>
174 <div id="hint">find changesets by author, revision,
174 <div id="hint">find changesets by author, revision,
175 files, or words in the commit message</div>
175 files, or words in the commit message</div>
176 </form>
176 </form>
177
177
178 <div class="description">
178 <div class="description">
179 <p>
179 <p>
180 An error occurred while processing your request:
180 An error occurred while processing your request:
181 </p>
181 </p>
182 <p>
182 <p>
183 bork@2ef0ac749a14: not found in manifest
183 bork@2ef0ac749a14: not found in manifest
184 </p>
184 </p>
185 </div>
185 </div>
186 </div>
186 </div>
187 </div>
187 </div>
188
188
189 <script type="text/javascript">process_dates()</script>
189 <script type="text/javascript">process_dates()</script>
190
190
191
191
192 </body>
192 </body>
193 </html>
193 </html>
194
194
195 [1]
195 [1]
196 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'diff/tip/bork?style=raw'
196 $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT 'diff/tip/bork?style=raw'
197 404 Not Found
197 404 Not Found
198
198
199
199
200 error: bork@2ef0ac749a14: not found in manifest
200 error: bork@2ef0ac749a14: not found in manifest
201 [1]
201 [1]
202
202
203 try bad style
203 try bad style
204
204
205 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/?style=foobar')
205 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT 'file/tip/?style=foobar')
206 200 Script output follows
206 200 Script output follows
207
207
208 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
208 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
209 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
209 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
210 <head>
210 <head>
211 <link rel="icon" href="/static/hgicon.png" type="image/png" />
211 <link rel="icon" href="/static/hgicon.png" type="image/png" />
212 <meta name="robots" content="index, nofollow" />
212 <meta name="robots" content="index, nofollow" />
213 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
213 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
214 <script type="text/javascript" src="/static/mercurial.js"></script>
214 <script type="text/javascript" src="/static/mercurial.js"></script>
215
215
216 <title>test: 2ef0ac749a14 /</title>
216 <title>test: 2ef0ac749a14 /</title>
217 </head>
217 </head>
218 <body>
218 <body>
219
219
220 <div class="container">
220 <div class="container">
221 <div class="menu">
221 <div class="menu">
222 <div class="logo">
222 <div class="logo">
223 <a href="http://mercurial.selenic.com/">
223 <a href="http://mercurial.selenic.com/">
224 <img src="/static/hglogo.png" alt="mercurial" /></a>
224 <img src="/static/hglogo.png" alt="mercurial" /></a>
225 </div>
225 </div>
226 <ul>
226 <ul>
227 <li><a href="/shortlog/2ef0ac749a14">log</a></li>
227 <li><a href="/shortlog/2ef0ac749a14">log</a></li>
228 <li><a href="/graph/2ef0ac749a14">graph</a></li>
228 <li><a href="/graph/2ef0ac749a14">graph</a></li>
229 <li><a href="/tags">tags</a></li>
229 <li><a href="/tags">tags</a></li>
230 <li><a href="/bookmarks">bookmarks</a></li>
230 <li><a href="/bookmarks">bookmarks</a></li>
231 <li><a href="/branches">branches</a></li>
231 <li><a href="/branches">branches</a></li>
232 </ul>
232 </ul>
233 <ul>
233 <ul>
234 <li><a href="/rev/2ef0ac749a14">changeset</a></li>
234 <li><a href="/rev/2ef0ac749a14">changeset</a></li>
235 <li class="active">browse</li>
235 <li class="active">browse</li>
236 </ul>
236 </ul>
237 <ul>
237 <ul>
238
238
239 </ul>
239 </ul>
240 <ul>
240 <ul>
241 <li><a href="/help">help</a></li>
241 <li><a href="/help">help</a></li>
242 </ul>
242 </ul>
243 </div>
243 </div>
244
244
245 <div class="main">
245 <div class="main">
246 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
246 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
247 <h3>directory / @ 0:2ef0ac749a14 <span class="tag">tip</span> </h3>
247 <h3>directory / @ 0:2ef0ac749a14 <span class="tag">tip</span> </h3>
248
248
249 <form class="search" action="/log">
249 <form class="search" action="/log">
250
250
251 <p><input name="rev" id="search1" type="text" size="30" /></p>
251 <p><input name="rev" id="search1" type="text" size="30" /></p>
252 <div id="hint">find changesets by author, revision,
252 <div id="hint">find changesets by author, revision,
253 files, or words in the commit message</div>
253 files, or words in the commit message</div>
254 </form>
254 </form>
255
255
256 <table class="bigtable">
256 <table class="bigtable">
257 <tr>
257 <tr>
258 <th class="name">name</th>
258 <th class="name">name</th>
259 <th class="size">size</th>
259 <th class="size">size</th>
260 <th class="permissions">permissions</th>
260 <th class="permissions">permissions</th>
261 </tr>
261 </tr>
262 <tr class="fileline parity0">
262 <tr class="fileline parity0">
263 <td class="name"><a href="/file/2ef0ac749a14/">[up]</a></td>
263 <td class="name"><a href="/file/2ef0ac749a14/">[up]</a></td>
264 <td class="size"></td>
264 <td class="size"></td>
265 <td class="permissions">drwxr-xr-x</td>
265 <td class="permissions">drwxr-xr-x</td>
266 </tr>
266 </tr>
267
267
268 <tr class="fileline parity1">
268 <tr class="fileline parity1">
269 <td class="name">
269 <td class="name">
270 <a href="/file/2ef0ac749a14/da">
270 <a href="/file/2ef0ac749a14/da">
271 <img src="/static/coal-folder.png" alt="dir."/> da/
271 <img src="/static/coal-folder.png" alt="dir."/> da/
272 </a>
272 </a>
273 <a href="/file/2ef0ac749a14/da/">
273 <a href="/file/2ef0ac749a14/da/">
274
274
275 </a>
275 </a>
276 </td>
276 </td>
277 <td class="size"></td>
277 <td class="size"></td>
278 <td class="permissions">drwxr-xr-x</td>
278 <td class="permissions">drwxr-xr-x</td>
279 </tr>
279 </tr>
280
280
281 <tr class="fileline parity0">
281 <tr class="fileline parity0">
282 <td class="filename">
282 <td class="filename">
283 <a href="/file/2ef0ac749a14/foo">
283 <a href="/file/2ef0ac749a14/foo">
284 <img src="/static/coal-file.png" alt="file"/> foo
284 <img src="/static/coal-file.png" alt="file"/> foo
285 </a>
285 </a>
286 </td>
286 </td>
287 <td class="size">4</td>
287 <td class="size">4</td>
288 <td class="permissions">-rw-r--r--</td>
288 <td class="permissions">-rw-r--r--</td>
289 </tr>
289 </tr>
290 </table>
290 </table>
291 </div>
291 </div>
292 </div>
292 </div>
293 <script type="text/javascript">process_dates()</script>
293 <script type="text/javascript">process_dates()</script>
294
294
295
295
296 </body>
296 </body>
297 </html>
297 </html>
298
298
299
299
300 stop and restart
300 stop and restart
301
301
302 $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS
302 $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS
303 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log
303 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log
304 $ cat hg.pid >> $DAEMON_PIDS
304 $ cat hg.pid >> $DAEMON_PIDS
305
305
306 Test the access/error files are opened in append mode
306 Test the access/error files are opened in append mode
307
307
308 $ python -c "print len(file('access.log').readlines()), 'log lines written'"
308 $ python -c "print len(file('access.log').readlines()), 'log lines written'"
309 10 log lines written
309 10 log lines written
310
310
311 static file
311 static file
312
312
313 $ "$TESTDIR/get-with-headers.py" --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server
313 $ "$TESTDIR/get-with-headers.py" --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server
314 200 Script output follows
314 200 Script output follows
315 content-length: 4619
315 content-length: 4607
316 content-type: text/css
316 content-type: text/css
317
317
318 body { font-family: sans-serif; font-size: 12px; margin:0px; border:solid #d9d8d1; border-width:1px; margin:10px; }
318 body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; }
319 a { color:#0000cc; }
319 a { color:#0000cc; }
320 a:hover, a:visited, a:active { color:#880000; }
320 a:hover, a:visited, a:active { color:#880000; }
321 div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; }
321 div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; }
322 div.page_header a:visited { color:#0000cc; }
322 div.page_header a:visited { color:#0000cc; }
323 div.page_header a:hover { color:#880000; }
323 div.page_header a:hover { color:#880000; }
324 div.page_nav { padding:8px; }
324 div.page_nav { padding:8px; }
325 div.page_nav a:visited { color:#0000cc; }
325 div.page_nav a:visited { color:#0000cc; }
326 div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px}
326 div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px}
327 div.page_footer { padding:4px 8px; background-color: #d9d8d1; }
327 div.page_footer { padding:4px 8px; background-color: #d9d8d1; }
328 div.page_footer_text { float:left; color:#555555; font-style:italic; }
328 div.page_footer_text { float:left; color:#555555; font-style:italic; }
329 div.page_body { padding:8px; }
329 div.page_body { padding:8px; }
330 div.title, a.title {
330 div.title, a.title {
331 display:block; padding:6px 8px;
331 display:block; padding:6px 8px;
332 font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000;
332 font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000;
333 }
333 }
334 a.title:hover { background-color: #d9d8d1; }
334 a.title:hover { background-color: #d9d8d1; }
335 div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; }
335 div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; }
336 div.log_body { padding:8px 8px 8px 150px; }
336 div.log_body { padding:8px 8px 8px 150px; }
337 .age { white-space:nowrap; }
337 .age { white-space:nowrap; }
338 span.age { position:relative; float:left; width:142px; font-style:italic; }
338 span.age { position:relative; float:left; width:142px; font-style:italic; }
339 div.log_link {
339 div.log_link {
340 padding:0px 8px;
340 padding:0px 8px;
341 font-size:10px; font-family:sans-serif; font-style:normal;
341 font-size:10px; font-family:sans-serif; font-style:normal;
342 position:relative; float:left; width:136px;
342 position:relative; float:left; width:136px;
343 }
343 }
344 div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; }
344 div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; }
345 a.list { text-decoration:none; color:#000000; }
345 a.list { text-decoration:none; color:#000000; }
346 a.list:hover { text-decoration:underline; color:#880000; }
346 a.list:hover { text-decoration:underline; color:#880000; }
347 table { padding:8px 4px; }
347 table { padding:8px 4px; }
348 th { padding:2px 5px; font-size:12px; text-align:left; }
348 th { padding:2px 5px; font-size:12px; text-align:left; }
349 tr.light:hover, .parity0:hover { background-color:#edece6; }
349 tr.light:hover, .parity0:hover { background-color:#edece6; }
350 tr.dark, .parity1 { background-color:#f6f6f0; }
350 tr.dark, .parity1 { background-color:#f6f6f0; }
351 tr.dark:hover, .parity1:hover { background-color:#edece6; }
351 tr.dark:hover, .parity1:hover { background-color:#edece6; }
352 td { padding:2px 5px; font-size:12px; vertical-align:top; }
352 td { padding:2px 5px; font-size:12px; vertical-align:top; }
353 td.closed { background-color: #99f; }
353 td.closed { background-color: #99f; }
354 td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; }
354 td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; }
355 td.indexlinks { white-space: nowrap; }
355 td.indexlinks { white-space: nowrap; }
356 td.indexlinks a {
356 td.indexlinks a {
357 padding: 2px 5px; line-height: 10px;
357 padding: 2px 5px; line-height: 10px;
358 border: 1px solid;
358 border: 1px solid;
359 color: #ffffff; background-color: #7777bb;
359 color: #ffffff; background-color: #7777bb;
360 border-color: #aaaadd #333366 #333366 #aaaadd;
360 border-color: #aaaadd #333366 #333366 #aaaadd;
361 font-weight: bold; text-align: center; text-decoration: none;
361 font-weight: bold; text-align: center; text-decoration: none;
362 font-size: 10px;
362 font-size: 10px;
363 }
363 }
364 td.indexlinks a:hover { background-color: #6666aa; }
364 td.indexlinks a:hover { background-color: #6666aa; }
365 div.pre { font-family:monospace; font-size:12px; white-space:pre; }
365 div.pre { font-family:monospace; font-size:12px; white-space:pre; }
366 div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; }
366 div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; }
367 div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; }
367 div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; }
368 div.search { margin:4px 8px; position:absolute; top:56px; right:12px }
368 div.search { margin:4px 8px; position:absolute; top:56px; right:12px }
369 .linenr { color:#999999; text-decoration:none }
369 .linenr { color:#999999; text-decoration:none }
370 div.rss_logo { float: right; white-space: nowrap; }
370 div.rss_logo { float: right; white-space: nowrap; }
371 div.rss_logo a {
371 div.rss_logo a {
372 padding:3px 6px; line-height:10px;
372 padding:3px 6px; line-height:10px;
373 border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e;
373 border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e;
374 color:#ffffff; background-color:#ff6600;
374 color:#ffffff; background-color:#ff6600;
375 font-weight:bold; font-family:sans-serif; font-size:10px;
375 font-weight:bold; font-family:sans-serif; font-size:10px;
376 text-align:center; text-decoration:none;
376 text-align:center; text-decoration:none;
377 }
377 }
378 div.rss_logo a:hover { background-color:#ee5500; }
378 div.rss_logo a:hover { background-color:#ee5500; }
379 pre { margin: 0; }
379 pre { margin: 0; }
380 span.logtags span {
380 span.logtags span {
381 padding: 0px 4px;
381 padding: 0px 4px;
382 font-size: 10px;
382 font-size: 10px;
383 font-weight: normal;
383 font-weight: normal;
384 border: 1px solid;
384 border: 1px solid;
385 background-color: #ffaaff;
385 background-color: #ffaaff;
386 border-color: #ffccff #ff00ee #ff00ee #ffccff;
386 border-color: #ffccff #ff00ee #ff00ee #ffccff;
387 }
387 }
388 span.logtags span.tagtag {
388 span.logtags span.tagtag {
389 background-color: #ffffaa;
389 background-color: #ffffaa;
390 border-color: #ffffcc #ffee00 #ffee00 #ffffcc;
390 border-color: #ffffcc #ffee00 #ffee00 #ffffcc;
391 }
391 }
392 span.logtags span.branchtag {
392 span.logtags span.branchtag {
393 background-color: #aaffaa;
393 background-color: #aaffaa;
394 border-color: #ccffcc #00cc33 #00cc33 #ccffcc;
394 border-color: #ccffcc #00cc33 #00cc33 #ccffcc;
395 }
395 }
396 span.logtags span.inbranchtag {
396 span.logtags span.inbranchtag {
397 background-color: #d5dde6;
397 background-color: #d5dde6;
398 border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
398 border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
399 }
399 }
400 span.logtags span.bookmarktag {
400 span.logtags span.bookmarktag {
401 background-color: #afdffa;
401 background-color: #afdffa;
402 border-color: #ccecff #46ace6 #46ace6 #ccecff;
402 border-color: #ccecff #46ace6 #46ace6 #ccecff;
403 }
403 }
404
404
405 /* Graph */
405 /* Graph */
406 div#wrapper {
406 div#wrapper {
407 position: relative;
407 position: relative;
408 margin: 0;
408 margin: 0;
409 padding: 0;
409 padding: 0;
410 margin-top: 3px;
410 margin-top: 3px;
411 }
411 }
412
412
413 canvas {
413 canvas {
414 position: absolute;
414 position: absolute;
415 z-index: 5;
415 z-index: 5;
416 top: -0.9em;
416 top: -0.9em;
417 margin: 0;
417 margin: 0;
418 }
418 }
419
419
420 ul#nodebgs {
420 ul#nodebgs {
421 list-style: none inside none;
421 list-style: none inside none;
422 padding: 0;
422 padding: 0;
423 margin: 0;
423 margin: 0;
424 top: -0.7em;
424 top: -0.7em;
425 }
425 }
426
426
427 ul#graphnodes li, ul#nodebgs li {
427 ul#graphnodes li, ul#nodebgs li {
428 height: 39px;
428 height: 39px;
429 }
429 }
430
430
431 ul#graphnodes {
431 ul#graphnodes {
432 position: absolute;
432 position: absolute;
433 z-index: 10;
433 z-index: 10;
434 top: -0.8em;
434 top: -0.8em;
435 list-style: none inside none;
435 list-style: none inside none;
436 padding: 0;
436 padding: 0;
437 }
437 }
438
438
439 ul#graphnodes li .info {
439 ul#graphnodes li .info {
440 display: block;
440 display: block;
441 font-size: 100%;
441 font-size: 100%;
442 position: relative;
442 position: relative;
443 top: -3px;
443 top: -3px;
444 font-style: italic;
444 font-style: italic;
445 }
445 }
446
446
447 /* Comparison */
447 /* Comparison */
448 .legend {
448 .legend {
449 padding: 1.5% 0 1.5% 0;
449 padding: 1.5% 0 1.5% 0;
450 }
450 }
451
451
452 .legendinfo {
452 .legendinfo {
453 border: 1px solid #d9d8d1;
453 border: 1px solid #d9d8d1;
454 font-size: 80%;
454 font-size: 80%;
455 text-align: center;
455 text-align: center;
456 padding: 0.5%;
456 padding: 0.5%;
457 }
457 }
458
458
459 .equal {
459 .equal {
460 background-color: #ffffff;
460 background-color: #ffffff;
461 }
461 }
462
462
463 .delete {
463 .delete {
464 background-color: #faa;
464 background-color: #faa;
465 color: #333;
465 color: #333;
466 }
466 }
467
467
468 .insert {
468 .insert {
469 background-color: #ffa;
469 background-color: #ffa;
470 }
470 }
471
471
472 .replace {
472 .replace {
473 background-color: #e8e8e8;
473 background-color: #e8e8e8;
474 }
474 }
475
475
476 .comparison {
476 .comparison {
477 overflow-x: auto;
477 overflow-x: auto;
478 }
478 }
479
479
480 .header th {
480 .header th {
481 text-align: center;
481 text-align: center;
482 }
482 }
483
483
484 .block {
484 .block {
485 border-top: 1px solid #d9d8d1;
485 border-top: 1px solid #d9d8d1;
486 }
486 }
487 304 Not Modified
487 304 Not Modified
488
488
489
489
490 errors
490 errors
491
491
492 $ cat errors.log
492 $ cat errors.log
493
493
494 $ cd ..
494 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now