Mercurial > hg
annotate tests/test-hgweb.t @ 33116:6c113a7dec52
tests: use the system hg for examining the local repository
Most test scripts use "hg" to interact with a temporary test repository.
However a few tests also want to run hg commands to interact with the local
repository containing the mercurial source code. Notably, many of the
test-check-* tests want to check local files and commit messages.
These tests were previously using the version of hg being tested to query the
source repository. However, this will fail if the source repository requires
extensions or other settings not supported by the version of mercurial being
tested. The source repository was typically initially cloned using the system
hg installation, so we should use the system hg installation to query it.
There was already a helpers-testrepo.sh script designed to help cope with
different requirements for the source repository versus the test repositories.
However, it only handled the evolve extension. This new behavior works with
any extensions that are different between the system installation and the test
installation.
author | Adam Simpkins <simpkins@fb.com> |
---|---|
date | Tue, 27 Jun 2017 17:24:31 -0700 |
parents | 1c97df5e3b46 |
children | 32331f54930c |
rev | line source |
---|---|
22046
7a9cbb315d84
tests: replace exit 80 with #require
Matt Mackall <mpm@selenic.com>
parents:
20256
diff
changeset
|
1 #require serve |
15446
c5c9ca3719f9
tests: use 'hghave serve' to guard tests that requires serve daemon management
Mads Kiilerich <mads@kiilerich.com>
parents:
14046
diff
changeset
|
2 |
12432 | 3 Some tests for hgweb. Tests static files, plain files and different 404's. |
4 | |
5 $ hg init test | |
6 $ cd test | |
7 $ mkdir da | |
8 $ echo foo > da/foo | |
9 $ echo foo > foo | |
10 $ hg ci -Ambase | |
11 adding da/foo | |
12 adding foo | |
25777
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
13 $ hg bookmark -r0 '@' |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
14 $ hg bookmark -r0 'a b c' |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
15 $ hg bookmark -r0 'd/e/f' |
12432 | 16 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
17 $ cat hg.pid >> $DAEMON_PIDS | |
18 | |
19 manifest | |
3942 | 20 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
21 $ (get-with-headers.py localhost:$HGPORT 'file/tip/?style=raw') |
12432 | 22 200 Script output follows |
23 | |
24 | |
25 drwxr-xr-x da | |
26 -rw-r--r-- 4 foo | |
27 | |
28 | |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
29 $ (get-with-headers.py localhost:$HGPORT 'file/tip/da?style=raw') |
12432 | 30 200 Script output follows |
31 | |
32 | |
33 -rw-r--r-- 4 foo | |
34 | |
35 | |
36 | |
37 plain file | |
38 | |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
39 $ get-with-headers.py localhost:$HGPORT 'file/tip/foo?style=raw' |
12432 | 40 200 Script output follows |
41 | |
42 foo | |
43 | |
44 should give a 404 - static file that does not exist | |
9842
d3dbdca92458
hgweb: don't choke when an inexistent style is requested (issue1901)
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8167
diff
changeset
|
45 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
46 $ get-with-headers.py localhost:$HGPORT 'static/bogus' |
12432 | 47 404 Not Found |
48 | |
49 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
50 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | |
51 <head> | |
52 <link rel="icon" href="/static/hgicon.png" type="image/png" /> | |
53 <meta name="robots" content="index, nofollow" /> | |
54 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> | |
14046
b24e5a708fad
web: Made elapsed time calculation dynamic (javascript).
Benoit Allard <benoit@aeteurope.nl>
parents:
13863
diff
changeset
|
55 <script type="text/javascript" src="/static/mercurial.js"></script> |
12432 | 56 |
57 <title>test: error</title> | |
58 </head> | |
59 <body> | |
60 | |
61 <div class="container"> | |
62 <div class="menu"> | |
63 <div class="logo"> | |
26421
4b0fc75f9403
urls: bulk-change primary website URLs
Matt Mackall <mpm@selenic.com>
parents:
26363
diff
changeset
|
64 <a href="https://mercurial-scm.org/"> |
12432 | 65 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a> |
66 </div> | |
67 <ul> | |
68 <li><a href="/shortlog">log</a></li> | |
69 <li><a href="/graph">graph</a></li> | |
70 <li><a href="/tags">tags</a></li> | |
13597
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
12846
diff
changeset
|
71 <li><a href="/bookmarks">bookmarks</a></li> |
12432 | 72 <li><a href="/branches">branches</a></li> |
17290
7a9246abf9fe
hgweb: make paper:error consistent with template
Ross Lagerwall <rosslagerwall@gmail.com>
parents:
17243
diff
changeset
|
73 </ul> |
7a9246abf9fe
hgweb: make paper:error consistent with template
Ross Lagerwall <rosslagerwall@gmail.com>
parents:
17243
diff
changeset
|
74 <ul> |
12680
d664547ef540
hgweb: add help link to templates missed in ead4e21f49f1
Augie Fackler <durin42@gmail.com>
parents:
12666
diff
changeset
|
75 <li><a href="/help">help</a></li> |
12432 | 76 </ul> |
77 </div> | |
78 | |
79 <div class="main"> | |
80 | |
18264
d6ebdbdd70a5
tests: update hgweb tests to include breadcrumbs
Bryan O'Sullivan <bryano@fb.com>
parents:
17466
diff
changeset
|
81 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> |
12432 | 82 <h3>error</h3> |
83 | |
32758
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31949
diff
changeset
|
84 |
12432 | 85 <form class="search" action="/log"> |
86 | |
32758
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31949
diff
changeset
|
87 <p><input name="rev" id="search1" type="text" size="30" value="" /></p> |
19796
544848ef65f2
paper: edit search hint to include new feature description
Alexander Plavin <alexander@plav.in>
parents:
19795
diff
changeset
|
88 <div id="hint">Find changesets by keywords (author, files, the commit message), revision |
544848ef65f2
paper: edit search hint to include new feature description
Alexander Plavin <alexander@plav.in>
parents:
19795
diff
changeset
|
89 number or hash, or <a href="/help/revsets">revset expression</a>.</div> |
12432 | 90 </form> |
91 | |
92 <div class="description"> | |
93 <p> | |
94 An error occurred while processing your request: | |
95 </p> | |
96 <p> | |
97 Not Found | |
98 </p> | |
99 </div> | |
100 </div> | |
101 </div> | |
102 | |
103 | |
104 | |
105 </body> | |
106 </html> | |
107 | |
108 [1] | |
109 | |
110 should give a 404 - bad revision | |
111 | |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
112 $ get-with-headers.py localhost:$HGPORT 'file/spam/foo?style=raw' |
12432 | 113 404 Not Found |
114 | |
115 | |
116 error: revision not found: spam | |
117 [1] | |
118 | |
119 should give a 400 - bad command | |
9842
d3dbdca92458
hgweb: don't choke when an inexistent style is requested (issue1901)
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8167
diff
changeset
|
120 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
121 $ get-with-headers.py localhost:$HGPORT 'file/tip/foo?cmd=spam&style=raw' |
12432 | 122 400* (glob) |
123 | |
124 | |
125 error: no such method: spam | |
126 [1] | |
127 | |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
128 $ get-with-headers.py --headeronly localhost:$HGPORT '?cmd=spam' |
22506
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
129 400 no such method: spam |
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
130 [1] |
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
131 |
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
132 should give a 400 - bad command as a part of url path (issue4071) |
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
133 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
134 $ get-with-headers.py --headeronly localhost:$HGPORT 'spam' |
22506
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
135 400 no such method: spam |
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
136 [1] |
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
137 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
138 $ get-with-headers.py --headeronly localhost:$HGPORT 'raw-spam' |
22506
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
139 400 no such method: spam |
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
140 [1] |
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
141 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
142 $ get-with-headers.py --headeronly localhost:$HGPORT 'spam/tip/foo' |
22506
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
143 400 no such method: spam |
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
144 [1] |
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
145 |
12432 | 146 should give a 404 - file does not exist |
5561
22713dce19f6
hgweb: return meaningful HTTP status codes instead of nonsense
Bryan O'Sullivan <bos@serpentine.com>
parents:
5384
diff
changeset
|
147 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
148 $ get-with-headers.py localhost:$HGPORT 'file/tip/bork?style=raw' |
12432 | 149 404 Not Found |
150 | |
151 | |
152 error: bork@2ef0ac749a14: not found in manifest | |
153 [1] | |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
154 $ get-with-headers.py localhost:$HGPORT 'file/tip/bork' |
12432 | 155 404 Not Found |
156 | |
157 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
158 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | |
159 <head> | |
160 <link rel="icon" href="/static/hgicon.png" type="image/png" /> | |
161 <meta name="robots" content="index, nofollow" /> | |
162 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> | |
14046
b24e5a708fad
web: Made elapsed time calculation dynamic (javascript).
Benoit Allard <benoit@aeteurope.nl>
parents:
13863
diff
changeset
|
163 <script type="text/javascript" src="/static/mercurial.js"></script> |
12432 | 164 |
165 <title>test: error</title> | |
166 </head> | |
167 <body> | |
168 | |
169 <div class="container"> | |
170 <div class="menu"> | |
171 <div class="logo"> | |
26421
4b0fc75f9403
urls: bulk-change primary website URLs
Matt Mackall <mpm@selenic.com>
parents:
26363
diff
changeset
|
172 <a href="https://mercurial-scm.org/"> |
12432 | 173 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a> |
174 </div> | |
175 <ul> | |
176 <li><a href="/shortlog">log</a></li> | |
177 <li><a href="/graph">graph</a></li> | |
178 <li><a href="/tags">tags</a></li> | |
13597
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
12846
diff
changeset
|
179 <li><a href="/bookmarks">bookmarks</a></li> |
12432 | 180 <li><a href="/branches">branches</a></li> |
17290
7a9246abf9fe
hgweb: make paper:error consistent with template
Ross Lagerwall <rosslagerwall@gmail.com>
parents:
17243
diff
changeset
|
181 </ul> |
7a9246abf9fe
hgweb: make paper:error consistent with template
Ross Lagerwall <rosslagerwall@gmail.com>
parents:
17243
diff
changeset
|
182 <ul> |
12680
d664547ef540
hgweb: add help link to templates missed in ead4e21f49f1
Augie Fackler <durin42@gmail.com>
parents:
12666
diff
changeset
|
183 <li><a href="/help">help</a></li> |
12432 | 184 </ul> |
185 </div> | |
186 | |
187 <div class="main"> | |
188 | |
18264
d6ebdbdd70a5
tests: update hgweb tests to include breadcrumbs
Bryan O'Sullivan <bryano@fb.com>
parents:
17466
diff
changeset
|
189 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> |
12432 | 190 <h3>error</h3> |
191 | |
32758
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31949
diff
changeset
|
192 |
12432 | 193 <form class="search" action="/log"> |
194 | |
32758
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31949
diff
changeset
|
195 <p><input name="rev" id="search1" type="text" size="30" value="" /></p> |
19796
544848ef65f2
paper: edit search hint to include new feature description
Alexander Plavin <alexander@plav.in>
parents:
19795
diff
changeset
|
196 <div id="hint">Find changesets by keywords (author, files, the commit message), revision |
544848ef65f2
paper: edit search hint to include new feature description
Alexander Plavin <alexander@plav.in>
parents:
19795
diff
changeset
|
197 number or hash, or <a href="/help/revsets">revset expression</a>.</div> |
12432 | 198 </form> |
199 | |
200 <div class="description"> | |
201 <p> | |
202 An error occurred while processing your request: | |
203 </p> | |
204 <p> | |
205 bork@2ef0ac749a14: not found in manifest | |
206 </p> | |
207 </div> | |
208 </div> | |
209 </div> | |
210 | |
211 | |
212 | |
213 </body> | |
214 </html> | |
215 | |
216 [1] | |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
217 $ get-with-headers.py localhost:$HGPORT 'diff/tip/bork?style=raw' |
12432 | 218 404 Not Found |
219 | |
220 | |
221 error: bork@2ef0ac749a14: not found in manifest | |
222 [1] | |
5561
22713dce19f6
hgweb: return meaningful HTTP status codes instead of nonsense
Bryan O'Sullivan <bos@serpentine.com>
parents:
5384
diff
changeset
|
223 |
12432 | 224 try bad style |
5561
22713dce19f6
hgweb: return meaningful HTTP status codes instead of nonsense
Bryan O'Sullivan <bos@serpentine.com>
parents:
5384
diff
changeset
|
225 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
226 $ (get-with-headers.py localhost:$HGPORT 'file/tip/?style=foobar') |
12432 | 227 200 Script output follows |
228 | |
229 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
230 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | |
231 <head> | |
232 <link rel="icon" href="/static/hgicon.png" type="image/png" /> | |
233 <meta name="robots" content="index, nofollow" /> | |
234 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> | |
14046
b24e5a708fad
web: Made elapsed time calculation dynamic (javascript).
Benoit Allard <benoit@aeteurope.nl>
parents:
13863
diff
changeset
|
235 <script type="text/javascript" src="/static/mercurial.js"></script> |
12432 | 236 |
237 <title>test: 2ef0ac749a14 /</title> | |
238 </head> | |
239 <body> | |
240 | |
241 <div class="container"> | |
242 <div class="menu"> | |
243 <div class="logo"> | |
26421
4b0fc75f9403
urls: bulk-change primary website URLs
Matt Mackall <mpm@selenic.com>
parents:
26363
diff
changeset
|
244 <a href="https://mercurial-scm.org/"> |
12432 | 245 <img src="/static/hglogo.png" alt="mercurial" /></a> |
246 </div> | |
247 <ul> | |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
248 <li><a href="/shortlog/tip">log</a></li> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
249 <li><a href="/graph/tip">graph</a></li> |
12432 | 250 <li><a href="/tags">tags</a></li> |
13597
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
12846
diff
changeset
|
251 <li><a href="/bookmarks">bookmarks</a></li> |
12432 | 252 <li><a href="/branches">branches</a></li> |
253 </ul> | |
254 <ul> | |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
255 <li><a href="/rev/tip">changeset</a></li> |
12432 | 256 <li class="active">browse</li> |
257 </ul> | |
258 <ul> | |
259 | |
260 </ul> | |
12666
ead4e21f49f1
web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents:
12432
diff
changeset
|
261 <ul> |
ead4e21f49f1
web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents:
12432
diff
changeset
|
262 <li><a href="/help">help</a></li> |
ead4e21f49f1
web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents:
12432
diff
changeset
|
263 </ul> |
12432 | 264 </div> |
265 | |
266 <div class="main"> | |
18264
d6ebdbdd70a5
tests: update hgweb tests to include breadcrumbs
Bryan O'Sullivan <bryano@fb.com>
parents:
17466
diff
changeset
|
267 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> |
25617
63be46407a50
hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
268 <h3> |
63be46407a50
hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
269 directory / @ 0:<a href="/rev/2ef0ac749a14">2ef0ac749a14</a> |
25777
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
270 <span class="tag">tip</span> <span class="tag">@</span> <span class="tag">a b c</span> <span class="tag">d/e/f</span> |
25617
63be46407a50
hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
271 </h3> |
12432 | 272 |
32758
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31949
diff
changeset
|
273 |
12432 | 274 <form class="search" action="/log"> |
275 | |
32758
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31949
diff
changeset
|
276 <p><input name="rev" id="search1" type="text" size="30" value="" /></p> |
19796
544848ef65f2
paper: edit search hint to include new feature description
Alexander Plavin <alexander@plav.in>
parents:
19795
diff
changeset
|
277 <div id="hint">Find changesets by keywords (author, files, the commit message), revision |
544848ef65f2
paper: edit search hint to include new feature description
Alexander Plavin <alexander@plav.in>
parents:
19795
diff
changeset
|
278 number or hash, or <a href="/help/revsets">revset expression</a>.</div> |
12432 | 279 </form> |
280 | |
281 <table class="bigtable"> | |
24054
fdf7794be41d
hgweb: replace implicit <tbody> with explicit <thead> where appropriate
Anton Shestakov <engored@ya.ru>
parents:
23952
diff
changeset
|
282 <thead> |
12432 | 283 <tr> |
284 <th class="name">name</th> | |
285 <th class="size">size</th> | |
286 <th class="permissions">permissions</th> | |
287 </tr> | |
24054
fdf7794be41d
hgweb: replace implicit <tbody> with explicit <thead> where appropriate
Anton Shestakov <engored@ya.ru>
parents:
23952
diff
changeset
|
288 </thead> |
19447
182942b38d24
hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19076
diff
changeset
|
289 <tbody class="stripes2"> |
182942b38d24
hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19076
diff
changeset
|
290 <tr class="fileline"> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
291 <td class="name"><a href="/file/tip/">[up]</a></td> |
12432 | 292 <td class="size"></td> |
293 <td class="permissions">drwxr-xr-x</td> | |
294 </tr> | |
295 | |
19447
182942b38d24
hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19076
diff
changeset
|
296 <tr class="fileline"> |
12432 | 297 <td class="name"> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
298 <a href="/file/tip/da"> |
12432 | 299 <img src="/static/coal-folder.png" alt="dir."/> da/ |
300 </a> | |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
301 <a href="/file/tip/da/"> |
12432 | 302 |
303 </a> | |
304 </td> | |
305 <td class="size"></td> | |
306 <td class="permissions">drwxr-xr-x</td> | |
307 </tr> | |
308 | |
19447
182942b38d24
hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19076
diff
changeset
|
309 <tr class="fileline"> |
12432 | 310 <td class="filename"> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
311 <a href="/file/tip/foo"> |
12432 | 312 <img src="/static/coal-file.png" alt="file"/> foo |
313 </a> | |
314 </td> | |
315 <td class="size">4</td> | |
316 <td class="permissions">-rw-r--r--</td> | |
317 </tr> | |
19447
182942b38d24
hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19076
diff
changeset
|
318 </tbody> |
12432 | 319 </table> |
320 </div> | |
321 </div> | |
322 | |
323 | |
324 </body> | |
325 </html> | |
326 | |
5561
22713dce19f6
hgweb: return meaningful HTTP status codes instead of nonsense
Bryan O'Sullivan <bos@serpentine.com>
parents:
5384
diff
changeset
|
327 |
12432 | 328 stop and restart |
329 | |
25474
8c14f87bd0ae
tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents:
25472
diff
changeset
|
330 $ killdaemons.py |
12432 | 331 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log |
332 $ cat hg.pid >> $DAEMON_PIDS | |
5561
22713dce19f6
hgweb: return meaningful HTTP status codes instead of nonsense
Bryan O'Sullivan <bos@serpentine.com>
parents:
5384
diff
changeset
|
333 |
12432 | 334 Test the access/error files are opened in append mode |
335 | |
22947
c63a09b6b337
tests: use $PYTHON instead of hardcoding python
Augie Fackler <raf@durin42.com>
parents:
22578
diff
changeset
|
336 $ $PYTHON -c "print len(file('access.log').readlines()), 'log lines written'" |
22506
6e1fbcb18a75
hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents:
20256
diff
changeset
|
337 14 log lines written |
12432 | 338 |
339 static file | |
5561
22713dce19f6
hgweb: return meaningful HTTP status codes instead of nonsense
Bryan O'Sullivan <bos@serpentine.com>
parents:
5384
diff
changeset
|
340 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
341 $ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server |
12432 | 342 200 Script output follows |
32996
1c97df5e3b46
hgweb: plug followlines action in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32992
diff
changeset
|
343 content-length: 8463 |
18380
a4d7fd7ad1f7
serve: don't send any content headers with 304 responses
Mads Kiilerich <madski@unity3d.com>
parents:
18264
diff
changeset
|
344 content-type: text/css |
12432 | 345 |
26536
93a3687a94d7
hgweb: ensure both foreground and background colors are specified (issue4872)
Gijs Kruitbosch <gijskruitbosch@gmail.com>
parents:
26421
diff
changeset
|
346 body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; background: white; color: black; } |
12432 | 347 a { color:#0000cc; } |
348 a:hover, a:visited, a:active { color:#880000; } | |
349 div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; } | |
350 div.page_header a:visited { color:#0000cc; } | |
351 div.page_header a:hover { color:#880000; } | |
32762
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
352 div.page_nav { |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
353 padding:8px; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
354 display: flex; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
355 justify-content: space-between; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
356 align-items: center; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
357 } |
12432 | 358 div.page_nav a:visited { color:#0000cc; } |
32992
816a4fa7d5f8
hgweb: use separate CSS class for navigation links in footer
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32762
diff
changeset
|
359 div.extra_nav { |
816a4fa7d5f8
hgweb: use separate CSS class for navigation links in footer
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32762
diff
changeset
|
360 padding: 8px; |
816a4fa7d5f8
hgweb: use separate CSS class for navigation links in footer
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32762
diff
changeset
|
361 } |
816a4fa7d5f8
hgweb: use separate CSS class for navigation links in footer
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32762
diff
changeset
|
362 div.extra_nav a:visited { |
816a4fa7d5f8
hgweb: use separate CSS class for navigation links in footer
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32762
diff
changeset
|
363 color: #0000cc; |
816a4fa7d5f8
hgweb: use separate CSS class for navigation links in footer
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32762
diff
changeset
|
364 } |
12432 | 365 div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px} |
366 div.page_footer { padding:4px 8px; background-color: #d9d8d1; } | |
367 div.page_footer_text { float:left; color:#555555; font-style:italic; } | |
368 div.page_body { padding:8px; } | |
369 div.title, a.title { | |
370 display:block; padding:6px 8px; | |
371 font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000; | |
372 } | |
373 a.title:hover { background-color: #d9d8d1; } | |
374 div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; } | |
375 div.log_body { padding:8px 8px 8px 150px; } | |
376 .age { white-space:nowrap; } | |
377 span.age { position:relative; float:left; width:142px; font-style:italic; } | |
378 div.log_link { | |
379 padding:0px 8px; | |
380 font-size:10px; font-family:sans-serif; font-style:normal; | |
381 position:relative; float:left; width:136px; | |
382 } | |
383 div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; } | |
384 a.list { text-decoration:none; color:#000000; } | |
385 a.list:hover { text-decoration:underline; color:#880000; } | |
386 table { padding:8px 4px; } | |
387 th { padding:2px 5px; font-size:12px; text-align:left; } | |
29573
2b42fa1810c4
gitweb: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29522
diff
changeset
|
388 .parity0 { background-color:#ffffff; } |
26670
ab2cd800f1b0
gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents:
26536
diff
changeset
|
389 tr.dark, .parity1, pre.sourcelines.stripes > :nth-child(4n+4) { background-color:#f6f6f0; } |
ab2cd800f1b0
gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents:
26536
diff
changeset
|
390 tr.light:hover, .parity0:hover, tr.dark:hover, .parity1:hover, |
ab2cd800f1b0
gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents:
26536
diff
changeset
|
391 pre.sourcelines.stripes > :nth-child(4n+2):hover, |
ab2cd800f1b0
gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents:
26536
diff
changeset
|
392 pre.sourcelines.stripes > :nth-child(4n+4):hover, |
ab2cd800f1b0
gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents:
26536
diff
changeset
|
393 pre.sourcelines.stripes > :nth-child(4n+1):hover + :nth-child(4n+2), |
ab2cd800f1b0
gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents:
26536
diff
changeset
|
394 pre.sourcelines.stripes > :nth-child(4n+3):hover + :nth-child(4n+4) { background-color:#edece6; } |
12432 | 395 td { padding:2px 5px; font-size:12px; vertical-align:top; } |
396 td.closed { background-color: #99f; } | |
397 td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; } | |
398 td.indexlinks { white-space: nowrap; } | |
399 td.indexlinks a { | |
400 padding: 2px 5px; line-height: 10px; | |
401 border: 1px solid; | |
402 color: #ffffff; background-color: #7777bb; | |
403 border-color: #aaaadd #333366 #333366 #aaaadd; | |
404 font-weight: bold; text-align: center; text-decoration: none; | |
405 font-size: 10px; | |
406 } | |
407 td.indexlinks a:hover { background-color: #6666aa; } | |
408 div.pre { font-family:monospace; font-size:12px; white-space:pre; } | |
409 div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; } | |
410 div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; } | |
32762
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
411 |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
412 .search { |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
413 margin-right: 8px; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
414 } |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
415 |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
416 div#hint { |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
417 position: absolute; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
418 display: none; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
419 width: 250px; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
420 padding: 5px; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
421 background: #ffc; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
422 border: 1px solid yellow; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
423 border-radius: 5px; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
424 } |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
425 |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
426 #searchform:hover div#hint { display: block; } |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
427 |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
28549
diff
changeset
|
428 tr.thisrev a { color:#999999; text-decoration: none; } |
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
28549
diff
changeset
|
429 tr.thisrev pre { color:#009900; } |
30074
8f34e217338b
hgweb: avoid line wrap between revision and annotate-info (issue5398)
Tooru Fujisawa <arai.unmht@gmail.com>
parents:
29626
diff
changeset
|
430 td.annotate { |
8f34e217338b
hgweb: avoid line wrap between revision and annotate-info (issue5398)
Tooru Fujisawa <arai.unmht@gmail.com>
parents:
29626
diff
changeset
|
431 white-space: nowrap; |
8f34e217338b
hgweb: avoid line wrap between revision and annotate-info (issue5398)
Tooru Fujisawa <arai.unmht@gmail.com>
parents:
29626
diff
changeset
|
432 } |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
433 div.annotate-info { |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
434 display: none; |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
435 position: absolute; |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
436 background-color: #FFFFFF; |
29626
4317aa562580
gitweb: make annotate popup use theme colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29573
diff
changeset
|
437 border: 1px solid #d9d8d1; |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
438 text-align: left; |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
439 color: #000000; |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
440 padding: 5px; |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
441 } |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
442 div.annotate-info a { color: #0000FF; text-decoration: underline; } |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
443 td.annotate:hover div.annotate-info { display: inline; } |
12432 | 444 .linenr { color:#999999; text-decoration:none } |
445 div.rss_logo { float: right; white-space: nowrap; } | |
446 div.rss_logo a { | |
447 padding:3px 6px; line-height:10px; | |
448 border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e; | |
449 color:#ffffff; background-color:#ff6600; | |
450 font-weight:bold; font-family:sans-serif; font-size:10px; | |
451 text-align:center; text-decoration:none; | |
452 } | |
453 div.rss_logo a:hover { background-color:#ee5500; } | |
454 pre { margin: 0; } | |
455 span.logtags span { | |
456 padding: 0px 4px; | |
457 font-size: 10px; | |
458 font-weight: normal; | |
459 border: 1px solid; | |
460 background-color: #ffaaff; | |
461 border-color: #ffccff #ff00ee #ff00ee #ffccff; | |
462 } | |
463 span.logtags span.tagtag { | |
464 background-color: #ffffaa; | |
465 border-color: #ffffcc #ffee00 #ffee00 #ffffcc; | |
466 } | |
467 span.logtags span.branchtag { | |
468 background-color: #aaffaa; | |
469 border-color: #ccffcc #00cc33 #00cc33 #ccffcc; | |
470 } | |
471 span.logtags span.inbranchtag { | |
472 background-color: #d5dde6; | |
473 border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4; | |
474 } | |
13863
b602ac02f1ba
hgweb: add bookmark labels to gitweb theme (based on 270f57d35525)
Yuya Nishihara <yuya@tcha.org>
parents:
13597
diff
changeset
|
475 span.logtags span.bookmarktag { |
b602ac02f1ba
hgweb: add bookmark labels to gitweb theme (based on 270f57d35525)
Yuya Nishihara <yuya@tcha.org>
parents:
13597
diff
changeset
|
476 background-color: #afdffa; |
b602ac02f1ba
hgweb: add bookmark labels to gitweb theme (based on 270f57d35525)
Yuya Nishihara <yuya@tcha.org>
parents:
13597
diff
changeset
|
477 border-color: #ccecff #46ace6 #46ace6 #ccecff; |
b602ac02f1ba
hgweb: add bookmark labels to gitweb theme (based on 270f57d35525)
Yuya Nishihara <yuya@tcha.org>
parents:
13597
diff
changeset
|
478 } |
23744
d1933c2e3c8c
templates: use CSS classes for diff styling
Gregory Szorc <gregory.szorc@gmail.com>
parents:
23409
diff
changeset
|
479 span.difflineplus { color:#008800; } |
d1933c2e3c8c
templates: use CSS classes for diff styling
Gregory Szorc <gregory.szorc@gmail.com>
parents:
23409
diff
changeset
|
480 span.difflineminus { color:#cc0000; } |
d1933c2e3c8c
templates: use CSS classes for diff styling
Gregory Szorc <gregory.szorc@gmail.com>
parents:
23409
diff
changeset
|
481 span.difflineat { color:#990099; } |
26288
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
482 div.diffblocks { counter-reset: lineno; } |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
483 div.diffblock { counter-increment: lineno; } |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
484 pre.sourcelines { position: relative; counter-reset: lineno; } |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
485 pre.sourcelines > span { |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
486 display: inline-block; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
487 box-sizing: border-box; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
488 width: 100%; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
489 padding: 0 0 0 5em; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
490 counter-increment: lineno; |
26362
3bfc473f4d33
gitweb, monoblue: fix vertical align of spans in .sourcelines
Anton Shestakov <av6@dwimlabs.net>
parents:
26288
diff
changeset
|
491 vertical-align: top; |
26288
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
492 } |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
493 pre.sourcelines > span:before { |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
494 -moz-user-select: -moz-none; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
495 -khtml-user-select: none; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
496 -webkit-user-select: none; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
497 -ms-user-select: none; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
498 user-select: none; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
499 display: inline-block; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
500 margin-left: -5em; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
501 width: 4em; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
502 color: #999; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
503 text-align: right; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
504 content: counters(lineno,"."); |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
505 float: left; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
506 } |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
507 pre.sourcelines > a { |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
508 display: inline-block; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
509 position: absolute; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
510 left: 0px; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
511 width: 4em; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
512 height: 1em; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
513 } |
26363
f29ee23bf361
gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26362
diff
changeset
|
514 tr:target td, |
f29ee23bf361
gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26362
diff
changeset
|
515 pre.sourcelines > span:target, |
f29ee23bf361
gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26362
diff
changeset
|
516 pre.sourcelines.stripes > span:target { |
f29ee23bf361
gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26362
diff
changeset
|
517 background-color: #bfdfff; |
f29ee23bf361
gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26362
diff
changeset
|
518 } |
12432 | 519 |
31625
c208bc65318a
gitweb: use monospace font for commit messages
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30765
diff
changeset
|
520 .description { |
c208bc65318a
gitweb: use monospace font for commit messages
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30765
diff
changeset
|
521 font-family: monospace; |
c208bc65318a
gitweb: use monospace font for commit messages
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30765
diff
changeset
|
522 } |
c208bc65318a
gitweb: use monospace font for commit messages
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30765
diff
changeset
|
523 |
31949
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
524 /* Followlines */ |
32996
1c97df5e3b46
hgweb: plug followlines action in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32992
diff
changeset
|
525 div.page_body table tbody.sourcelines > tr.followlines-select:hover, |
31949
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
526 div.page_body pre.sourcelines > span.followlines-select:hover { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
527 cursor: cell; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
528 } |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
529 |
32996
1c97df5e3b46
hgweb: plug followlines action in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32992
diff
changeset
|
530 tbody.sourcelines > tr.followlines-selected, |
31949
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
531 pre.sourcelines > span.followlines-selected { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
532 background-color: #99C7E9 !important; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
533 } |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
534 |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
535 div#followlines { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
536 background-color: #B7B7B7; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
537 border: 1px solid #CCC; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
538 border-radius: 5px; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
539 padding: 4px; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
540 position: fixed; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
541 } |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
542 |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
543 div.followlines-cancel { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
544 text-align: right; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
545 } |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
546 |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
547 div.followlines-cancel > button { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
548 line-height: 80%; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
549 padding: 0; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
550 border: 0; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
551 border-radius: 2px; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
552 background-color: inherit; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
553 font-weight: bold; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
554 } |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
555 |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
556 div.followlines-cancel > button:hover { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
557 color: #FFFFFF; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
558 background-color: #CF1F1F; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
559 } |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
560 |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
561 div.followlines-link { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
562 margin: 2px; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
563 margin-top: 4px; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
564 font-family: sans-serif; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
565 } |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
566 |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
567 div#followlines-tooltip { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
568 display: none; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
569 position: fixed; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
570 background-color: #ffc; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
571 border: 1px solid #999; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
572 padding: 2px; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
573 } |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
574 |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
575 .sourcelines:hover > div#followlines-tooltip { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
576 display: inline; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
577 } |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
578 |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
579 .sourcelines:hover > div#followlines-tooltip.hidden { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
580 display: none; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
581 } |
12432 | 582 /* Graph */ |
583 div#wrapper { | |
584 position: relative; | |
585 margin: 0; | |
586 padding: 0; | |
587 margin-top: 3px; | |
588 } | |
589 | |
590 canvas { | |
591 position: absolute; | |
592 z-index: 5; | |
593 top: -0.9em; | |
594 margin: 0; | |
595 } | |
596 | |
597 ul#nodebgs { | |
598 list-style: none inside none; | |
599 padding: 0; | |
600 margin: 0; | |
601 top: -0.7em; | |
602 } | |
603 | |
604 ul#graphnodes li, ul#nodebgs li { | |
605 height: 39px; | |
606 } | |
607 | |
608 ul#graphnodes { | |
609 position: absolute; | |
610 z-index: 10; | |
611 top: -0.8em; | |
612 list-style: none inside none; | |
613 padding: 0; | |
614 } | |
615 | |
616 ul#graphnodes li .info { | |
617 display: block; | |
618 font-size: 100%; | |
619 position: relative; | |
620 top: -3px; | |
621 font-style: italic; | |
622 } | |
17202
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
623 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
624 /* Comparison */ |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
625 .legend { |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
626 padding: 1.5% 0 1.5% 0; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
627 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
628 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
629 .legendinfo { |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
630 border: 1px solid #d9d8d1; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
631 font-size: 80%; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
632 text-align: center; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
633 padding: 0.5%; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
634 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
635 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
636 .equal { |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
637 background-color: #ffffff; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
638 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
639 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
640 .delete { |
17243
106cdea0183d
hgweb: improve colors for comparison page
Matt Mackall <mpm@selenic.com>
parents:
17202
diff
changeset
|
641 background-color: #faa; |
106cdea0183d
hgweb: improve colors for comparison page
Matt Mackall <mpm@selenic.com>
parents:
17202
diff
changeset
|
642 color: #333; |
17202
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
643 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
644 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
645 .insert { |
17243
106cdea0183d
hgweb: improve colors for comparison page
Matt Mackall <mpm@selenic.com>
parents:
17202
diff
changeset
|
646 background-color: #ffa; |
17202
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
647 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
648 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
649 .replace { |
17243
106cdea0183d
hgweb: improve colors for comparison page
Matt Mackall <mpm@selenic.com>
parents:
17202
diff
changeset
|
650 background-color: #e8e8e8; |
17202
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
651 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
652 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
653 .comparison { |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
654 overflow-x: auto; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
655 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
656 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
657 .header th { |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
658 text-align: center; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
659 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
660 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
661 .block { |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
662 border-top: 1px solid #d9d8d1; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
663 } |
20256
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
664 |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
665 .scroll-loading { |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
666 -webkit-animation: change_color 1s linear 0s infinite alternate; |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
667 -moz-animation: change_color 1s linear 0s infinite alternate; |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
668 -o-animation: change_color 1s linear 0s infinite alternate; |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
669 animation: change_color 1s linear 0s infinite alternate; |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
670 } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
671 |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
672 @-webkit-keyframes change_color { |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
673 from { background-color: #A0CEFF; } to { } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
674 } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
675 @-moz-keyframes change_color { |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
676 from { background-color: #A0CEFF; } to { } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
677 } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
678 @-o-keyframes change_color { |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
679 from { background-color: #A0CEFF; } to { } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
680 } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
681 @keyframes change_color { |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
682 from { background-color: #A0CEFF; } to { } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
683 } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
684 |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
685 .scroll-loading-error { |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
686 background-color: #FFCCCC !important; |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
687 } |
26175
eae3c6de71e5
tests: fix css-related test-hgweb.t breakage from 93258d53ec35
Anton Shestakov <av6@dwimlabs.net>
parents:
25777
diff
changeset
|
688 |
eae3c6de71e5
tests: fix css-related test-hgweb.t breakage from 93258d53ec35
Anton Shestakov <av6@dwimlabs.net>
parents:
25777
diff
changeset
|
689 #doc { |
eae3c6de71e5
tests: fix css-related test-hgweb.t breakage from 93258d53ec35
Anton Shestakov <av6@dwimlabs.net>
parents:
25777
diff
changeset
|
690 margin: 0 8px; |
eae3c6de71e5
tests: fix css-related test-hgweb.t breakage from 93258d53ec35
Anton Shestakov <av6@dwimlabs.net>
parents:
25777
diff
changeset
|
691 } |
12432 | 692 304 Not Modified |
693 | |
9842
d3dbdca92458
hgweb: don't choke when an inexistent style is requested (issue1901)
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8167
diff
changeset
|
694 |
22577
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
695 phase changes are refreshed (issue4061) |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
696 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
697 $ echo bar >> foo |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
698 $ hg ci -msecret --secret |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
699 $ get-with-headers.py localhost:$HGPORT 'log?style=raw' |
22577
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
700 200 Script output follows |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
701 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
702 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
703 # HG changelog |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
704 # Node ID 2ef0ac749a14e4f57a5a822464a0902c6f7f448f |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
705 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
706 changeset: 2ef0ac749a14e4f57a5a822464a0902c6f7f448f |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
707 revision: 0 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
708 user: test |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
709 date: Thu, 01 Jan 1970 00:00:00 +0000 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
710 summary: base |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
711 branch: default |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
712 tag: tip |
25777
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
713 bookmark: @ |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
714 bookmark: a b c |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
715 bookmark: d/e/f |
22577
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
716 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
717 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
718 $ hg phase --draft tip |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
719 $ get-with-headers.py localhost:$HGPORT 'log?style=raw' |
22577
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
720 200 Script output follows |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
721 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
722 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
723 # HG changelog |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
724 # Node ID a084749e708a9c4c0a5b652a2a446322ce290e04 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
725 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
726 changeset: a084749e708a9c4c0a5b652a2a446322ce290e04 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
727 revision: 1 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
728 user: test |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
729 date: Thu, 01 Jan 1970 00:00:00 +0000 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
730 summary: secret |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
731 branch: default |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
732 tag: tip |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
733 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
734 changeset: 2ef0ac749a14e4f57a5a822464a0902c6f7f448f |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
735 revision: 0 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
736 user: test |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
737 date: Thu, 01 Jan 1970 00:00:00 +0000 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
738 summary: base |
25777
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
739 bookmark: @ |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
740 bookmark: a b c |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
741 bookmark: d/e/f |
22577
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
742 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
743 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
744 |
25777
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
745 access bookmarks |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
746 |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
747 $ get-with-headers.py localhost:$HGPORT 'rev/@?style=paper' | egrep '^200|changeset 0:' |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
748 200 Script output follows |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
749 changeset 0:<a href="/rev/2ef0ac749a14?style=paper">2ef0ac749a14</a> |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
750 |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
751 $ get-with-headers.py localhost:$HGPORT 'rev/%40?style=paper' | egrep '^200|changeset 0:' |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
752 200 Script output follows |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
753 changeset 0:<a href="/rev/2ef0ac749a14?style=paper">2ef0ac749a14</a> |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
754 |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
755 $ get-with-headers.py localhost:$HGPORT 'rev/a%20b%20c?style=paper' | egrep '^200|changeset 0:' |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
756 200 Script output follows |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
757 changeset 0:<a href="/rev/2ef0ac749a14?style=paper">2ef0ac749a14</a> |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
758 |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
759 $ get-with-headers.py localhost:$HGPORT 'rev/d%252Fe%252Ff?style=paper' | egrep '^200|changeset 0:' |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
760 200 Script output follows |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
761 changeset 0:<a href="/rev/2ef0ac749a14?style=paper">2ef0ac749a14</a> |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
762 |
24296
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
763 no style can be loaded from directories other than the specified paths |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
764 |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
765 $ mkdir -p x/templates/fallback |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
766 $ cat <<EOF > x/templates/fallback/map |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
767 > default = 'shortlog' |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
768 > shortlog = 'fall back to default\n' |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
769 > mimetype = 'text/plain' |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
770 > EOF |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
771 $ cat <<EOF > x/map |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
772 > default = 'shortlog' |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
773 > shortlog = 'access to outside of templates directory\n' |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
774 > mimetype = 'text/plain' |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
775 > EOF |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
776 |
25474
8c14f87bd0ae
tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents:
25472
diff
changeset
|
777 $ killdaemons.py |
24296
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
778 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log \ |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
779 > --config web.style=fallback --config web.templates=x/templates |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
780 $ cat hg.pid >> $DAEMON_PIDS |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
781 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
782 $ get-with-headers.py localhost:$HGPORT "?style=`pwd`/x" |
24296
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
783 200 Script output follows |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
784 |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
785 fall back to default |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
786 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
787 $ get-with-headers.py localhost:$HGPORT '?style=..' |
24296
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
788 200 Script output follows |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
789 |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
790 fall back to default |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
791 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
792 $ get-with-headers.py localhost:$HGPORT '?style=./..' |
24296
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
793 200 Script output follows |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
794 |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
795 fall back to default |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
796 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
797 $ get-with-headers.py localhost:$HGPORT '?style=.../.../' |
24296
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
798 200 Script output follows |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
799 |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
800 fall back to default |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
801 |
12432 | 802 errors |
5690
1b365c5723bc
server: append to logfiles
Mirko Friedenhagen <mirko-lists@friedenhagen.de>
parents:
5580
diff
changeset
|
803 |
12432 | 804 $ cat errors.log |
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
15446
diff
changeset
|
805 |
23409
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
806 Uncaught exceptions result in a logged error and canned HTTP response |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
807 |
25474
8c14f87bd0ae
tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents:
25472
diff
changeset
|
808 $ killdaemons.py |
28549 | 809 $ hg serve --config extensions.hgweberror=$TESTDIR/hgweberror.py -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
23409
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
810 $ cat hg.pid >> $DAEMON_PIDS |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
811 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
812 $ get-with-headers.py localhost:$HGPORT 'raiseerror' transfer-encoding content-type |
23409
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
813 500 Internal Server Error |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
814 transfer-encoding: chunked |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
815 |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
816 Internal Server Error (no-eol) |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
817 [1] |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
818 |
25474
8c14f87bd0ae
tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents:
25472
diff
changeset
|
819 $ killdaemons.py |
23409
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
820 $ head -1 errors.log |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
821 .* Exception happened during processing request '/raiseerror': (re) |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
822 |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
823 Uncaught exception after partial content sent |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
824 |
28549 | 825 $ hg serve --config extensions.hgweberror=$TESTDIR/hgweberror.py -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
23952
ea61e278ae92
test-hgweb: fix shutdown race
Matt Mackall <mpm@selenic.com>
parents:
23744
diff
changeset
|
826 $ cat hg.pid >> $DAEMON_PIDS |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
827 $ get-with-headers.py localhost:$HGPORT 'raiseerror?partialresponse=1' transfer-encoding content-type |
23409
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
828 200 Script output follows |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
829 transfer-encoding: chunked |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
830 content-type: text/plain |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
831 |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
832 partial content |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
833 Internal Server Error (no-eol) |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
834 |
25474
8c14f87bd0ae
tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents:
25472
diff
changeset
|
835 $ killdaemons.py |
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
15446
diff
changeset
|
836 $ cd .. |