Mercurial > hg
annotate tests/test-hgweb.t @ 43255:b8d60845fa5d
copies: extract data extraction into a `revinfo` function
The function is build once at the beginning of the algorithm and used fetch
appropriate information for each revision.
This abstracts some implementation details from the main algorithm and will help
us to access the data more efficiently in future changesets.
Differential Revision: https://phab.mercurial-scm.org/D7070
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 02 Oct 2019 17:42:01 -0400 |
parents | 6bbb12cba5a8 |
children | 6fc57680cfd6 |
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> |
35065
a1de4ffaa7a8
hgweb: show commit phase if it's not public
Anton Shestakov <av6@dwimlabs.net>
parents:
35064
diff
changeset
|
270 <span class="phase">draft</span> <span class="branchhead">default</span> <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"> |
38203
c2e3bc99fba4
paper: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
37827
diff
changeset
|
290 |
12432 | 291 |
19447
182942b38d24
hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19076
diff
changeset
|
292 <tr class="fileline"> |
12432 | 293 <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
|
294 <a href="/file/tip/da"> |
12432 | 295 <img src="/static/coal-folder.png" alt="dir."/> da/ |
296 </a> | |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
297 <a href="/file/tip/da/"> |
12432 | 298 |
299 </a> | |
300 </td> | |
301 <td class="size"></td> | |
302 <td class="permissions">drwxr-xr-x</td> | |
303 </tr> | |
304 | |
19447
182942b38d24
hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19076
diff
changeset
|
305 <tr class="fileline"> |
12432 | 306 <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
|
307 <a href="/file/tip/foo"> |
12432 | 308 <img src="/static/coal-file.png" alt="file"/> foo |
309 </a> | |
310 </td> | |
311 <td class="size">4</td> | |
312 <td class="permissions">-rw-r--r--</td> | |
313 </tr> | |
19447
182942b38d24
hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19076
diff
changeset
|
314 </tbody> |
12432 | 315 </table> |
316 </div> | |
317 </div> | |
318 | |
319 | |
320 </body> | |
321 </html> | |
322 | |
5561
22713dce19f6
hgweb: return meaningful HTTP status codes instead of nonsense
Bryan O'Sullivan <bos@serpentine.com>
parents:
5384
diff
changeset
|
323 |
12432 | 324 stop and restart |
325 | |
25474
8c14f87bd0ae
tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents:
25472
diff
changeset
|
326 $ killdaemons.py |
12432 | 327 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log |
328 $ 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
|
329 |
12432 | 330 Test the access/error files are opened in append mode |
331 | |
39707
5abc47d4ca6b
tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents:
39433
diff
changeset
|
332 $ "$PYTHON" -c "from __future__ import print_function; print(len(open('access.log', 'rb').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
|
333 14 log lines written |
12432 | 334 |
335 static file | |
5561
22713dce19f6
hgweb: return meaningful HTTP status codes instead of nonsense
Bryan O'Sullivan <bos@serpentine.com>
parents:
5384
diff
changeset
|
336 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
337 $ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server |
12432 | 338 200 Script output follows |
38481
a8872a820242
hgweb: add z-index for search field tooltip
Anton Shestakov <av6@dwimlabs.net>
parents:
38239
diff
changeset
|
339 content-length: 9074 |
18380
a4d7fd7ad1f7
serve: don't send any content headers with 304 responses
Mads Kiilerich <madski@unity3d.com>
parents:
18264
diff
changeset
|
340 content-type: text/css |
12432 | 341 |
26536
93a3687a94d7
hgweb: ensure both foreground and background colors are specified (issue4872)
Gijs Kruitbosch <gijskruitbosch@gmail.com>
parents:
26421
diff
changeset
|
342 body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; background: white; color: black; } |
12432 | 343 a { color:#0000cc; } |
344 a:hover, a:visited, a:active { color:#880000; } | |
345 div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; } | |
346 div.page_header a:visited { color:#0000cc; } | |
347 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
|
348 div.page_nav { |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
349 padding:8px; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
350 display: flex; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
351 justify-content: space-between; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
352 align-items: center; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
353 } |
12432 | 354 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
|
355 div.extra_nav { |
816a4fa7d5f8
hgweb: use separate CSS class for navigation links in footer
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32762
diff
changeset
|
356 padding: 8px; |
816a4fa7d5f8
hgweb: use separate CSS class for navigation links in footer
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32762
diff
changeset
|
357 } |
816a4fa7d5f8
hgweb: use separate CSS class for navigation links in footer
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32762
diff
changeset
|
358 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
|
359 color: #0000cc; |
816a4fa7d5f8
hgweb: use separate CSS class for navigation links in footer
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32762
diff
changeset
|
360 } |
12432 | 361 div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px} |
362 div.page_footer { padding:4px 8px; background-color: #d9d8d1; } | |
363 div.page_footer_text { float:left; color:#555555; font-style:italic; } | |
364 div.page_body { padding:8px; } | |
365 div.title, a.title { | |
366 display:block; padding:6px 8px; | |
367 font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000; | |
368 } | |
369 a.title:hover { background-color: #d9d8d1; } | |
370 div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; } | |
371 div.log_body { padding:8px 8px 8px 150px; } | |
372 .age { white-space:nowrap; } | |
36232
881596e51fca
gitweb: make span.age CSS selector more specific
Anton Shestakov <av6@dwimlabs.net>
parents:
35531
diff
changeset
|
373 a.title span.age { position:relative; float:left; width:142px; font-style:italic; } |
12432 | 374 div.log_link { |
375 padding:0px 8px; | |
376 font-size:10px; font-family:sans-serif; font-style:normal; | |
377 position:relative; float:left; width:136px; | |
378 } | |
379 div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; } | |
380 a.list { text-decoration:none; color:#000000; } | |
381 a.list:hover { text-decoration:underline; color:#880000; } | |
382 table { padding:8px 4px; } | |
383 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
|
384 .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
|
385 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
|
386 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
|
387 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
|
388 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
|
389 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
|
390 pre.sourcelines.stripes > :nth-child(4n+3):hover + :nth-child(4n+4) { background-color:#edece6; } |
12432 | 391 td { padding:2px 5px; font-size:12px; vertical-align:top; } |
392 td.closed { background-color: #99f; } | |
393 td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; } | |
394 td.indexlinks { white-space: nowrap; } | |
395 td.indexlinks a { | |
396 padding: 2px 5px; line-height: 10px; | |
397 border: 1px solid; | |
398 color: #ffffff; background-color: #7777bb; | |
399 border-color: #aaaadd #333366 #333366 #aaaadd; | |
400 font-weight: bold; text-align: center; text-decoration: none; | |
401 font-size: 10px; | |
402 } | |
403 td.indexlinks a:hover { background-color: #6666aa; } | |
404 div.pre { font-family:monospace; font-size:12px; white-space:pre; } | |
32762
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
405 |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
406 .search { |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
407 margin-right: 8px; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
408 } |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
409 |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
410 div#hint { |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
411 position: absolute; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
412 display: none; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
413 width: 250px; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
414 padding: 5px; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
415 background: #ffc; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
416 border: 1px solid yellow; |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
417 border-radius: 5px; |
38481
a8872a820242
hgweb: add z-index for search field tooltip
Anton Shestakov <av6@dwimlabs.net>
parents:
38239
diff
changeset
|
418 z-index: 15; |
32762
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
419 } |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
420 |
2d93d2159e30
hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32758
diff
changeset
|
421 #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
|
422 |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
28549
diff
changeset
|
423 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
|
424 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
|
425 td.annotate { |
8f34e217338b
hgweb: avoid line wrap between revision and annotate-info (issue5398)
Tooru Fujisawa <arai.unmht@gmail.com>
parents:
29626
diff
changeset
|
426 white-space: nowrap; |
8f34e217338b
hgweb: avoid line wrap between revision and annotate-info (issue5398)
Tooru Fujisawa <arai.unmht@gmail.com>
parents:
29626
diff
changeset
|
427 } |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
428 div.annotate-info { |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
429 z-index: 5; |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
430 display: none; |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
431 position: absolute; |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
432 background-color: #FFFFFF; |
29626
4317aa562580
gitweb: make annotate popup use theme colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29573
diff
changeset
|
433 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
|
434 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
|
435 color: #000000; |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
436 padding: 5px; |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
437 } |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
438 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
|
439 td.annotate:hover div.annotate-info { display: inline; } |
34391
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33557
diff
changeset
|
440 |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33557
diff
changeset
|
441 #diffopts-form { |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33557
diff
changeset
|
442 padding-left: 8px; |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33557
diff
changeset
|
443 display: none; |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33557
diff
changeset
|
444 } |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33557
diff
changeset
|
445 |
12432 | 446 .linenr { color:#999999; text-decoration:none } |
447 div.rss_logo { float: right; white-space: nowrap; } | |
448 div.rss_logo a { | |
449 padding:3px 6px; line-height:10px; | |
450 border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e; | |
451 color:#ffffff; background-color:#ff6600; | |
452 font-weight:bold; font-family:sans-serif; font-size:10px; | |
453 text-align:center; text-decoration:none; | |
454 } | |
455 div.rss_logo a:hover { background-color:#ee5500; } | |
456 pre { margin: 0; } | |
457 span.logtags span { | |
458 padding: 0px 4px; | |
459 font-size: 10px; | |
460 font-weight: normal; | |
461 border: 1px solid; | |
462 background-color: #ffaaff; | |
463 border-color: #ffccff #ff00ee #ff00ee #ffccff; | |
464 } | |
35065
a1de4ffaa7a8
hgweb: show commit phase if it's not public
Anton Shestakov <av6@dwimlabs.net>
parents:
35064
diff
changeset
|
465 span.logtags span.phasetag { |
a1de4ffaa7a8
hgweb: show commit phase if it's not public
Anton Shestakov <av6@dwimlabs.net>
parents:
35064
diff
changeset
|
466 background-color: #dfafff; |
a1de4ffaa7a8
hgweb: show commit phase if it's not public
Anton Shestakov <av6@dwimlabs.net>
parents:
35064
diff
changeset
|
467 border-color: #e2b8ff #ce48ff #ce48ff #e2b8ff; |
a1de4ffaa7a8
hgweb: show commit phase if it's not public
Anton Shestakov <av6@dwimlabs.net>
parents:
35064
diff
changeset
|
468 } |
35089
69ea10d5b00c
hgweb: show obsolescence status of a commit
Anton Shestakov <av6@dwimlabs.net>
parents:
35065
diff
changeset
|
469 span.logtags span.obsoletetag { |
69ea10d5b00c
hgweb: show obsolescence status of a commit
Anton Shestakov <av6@dwimlabs.net>
parents:
35065
diff
changeset
|
470 background-color: #dddddd; |
69ea10d5b00c
hgweb: show obsolescence status of a commit
Anton Shestakov <av6@dwimlabs.net>
parents:
35065
diff
changeset
|
471 border-color: #e4e4e4 #a3a3a3 #a3a3a3 #e4e4e4; |
69ea10d5b00c
hgweb: show obsolescence status of a commit
Anton Shestakov <av6@dwimlabs.net>
parents:
35065
diff
changeset
|
472 } |
35094
38fe3fe4bbb6
hgweb: show instabilities of a commit
Anton Shestakov <av6@dwimlabs.net>
parents:
35089
diff
changeset
|
473 span.logtags span.instabilitytag { |
38fe3fe4bbb6
hgweb: show instabilities of a commit
Anton Shestakov <av6@dwimlabs.net>
parents:
35089
diff
changeset
|
474 background-color: #ffb1c0; |
38fe3fe4bbb6
hgweb: show instabilities of a commit
Anton Shestakov <av6@dwimlabs.net>
parents:
35089
diff
changeset
|
475 border-color: #ffbbc8 #ff4476 #ff4476 #ffbbc8; |
38fe3fe4bbb6
hgweb: show instabilities of a commit
Anton Shestakov <av6@dwimlabs.net>
parents:
35089
diff
changeset
|
476 } |
12432 | 477 span.logtags span.tagtag { |
478 background-color: #ffffaa; | |
479 border-color: #ffffcc #ffee00 #ffee00 #ffffcc; | |
480 } | |
481 span.logtags span.branchtag { | |
482 background-color: #aaffaa; | |
483 border-color: #ccffcc #00cc33 #00cc33 #ccffcc; | |
484 } | |
485 span.logtags span.inbranchtag { | |
486 background-color: #d5dde6; | |
487 border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4; | |
488 } | |
13863
b602ac02f1ba
hgweb: add bookmark labels to gitweb theme (based on 270f57d35525)
Yuya Nishihara <yuya@tcha.org>
parents:
13597
diff
changeset
|
489 span.logtags span.bookmarktag { |
b602ac02f1ba
hgweb: add bookmark labels to gitweb theme (based on 270f57d35525)
Yuya Nishihara <yuya@tcha.org>
parents:
13597
diff
changeset
|
490 background-color: #afdffa; |
b602ac02f1ba
hgweb: add bookmark labels to gitweb theme (based on 270f57d35525)
Yuya Nishihara <yuya@tcha.org>
parents:
13597
diff
changeset
|
491 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
|
492 } |
23744
d1933c2e3c8c
templates: use CSS classes for diff styling
Gregory Szorc <gregory.szorc@gmail.com>
parents:
23409
diff
changeset
|
493 span.difflineplus { color:#008800; } |
d1933c2e3c8c
templates: use CSS classes for diff styling
Gregory Szorc <gregory.szorc@gmail.com>
parents:
23409
diff
changeset
|
494 span.difflineminus { color:#cc0000; } |
d1933c2e3c8c
templates: use CSS classes for diff styling
Gregory Szorc <gregory.szorc@gmail.com>
parents:
23409
diff
changeset
|
495 span.difflineat { color:#990099; } |
26288
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
496 div.diffblocks { counter-reset: lineno; } |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
497 div.diffblock { counter-increment: lineno; } |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
498 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
|
499 pre.sourcelines > span { |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
500 display: inline-block; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
501 box-sizing: border-box; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
502 width: 100%; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
503 padding: 0 0 0 5em; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
504 counter-increment: lineno; |
26362
3bfc473f4d33
gitweb, monoblue: fix vertical align of spans in .sourcelines
Anton Shestakov <av6@dwimlabs.net>
parents:
26288
diff
changeset
|
505 vertical-align: top; |
26288
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 > span:before { |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
508 -moz-user-select: -moz-none; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
509 -khtml-user-select: none; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
510 -webkit-user-select: none; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
511 -ms-user-select: none; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
512 user-select: none; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
513 display: inline-block; |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
514 margin-left: -6em; |
26288
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
515 width: 4em; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
516 color: #999; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
517 text-align: right; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
518 content: counters(lineno,"."); |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
519 float: left; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
520 } |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
521 pre.sourcelines > a { |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
522 display: inline-block; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
523 position: absolute; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
524 left: 0px; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
525 width: 4em; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
526 height: 1em; |
2239626369f5
gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26175
diff
changeset
|
527 } |
26363
f29ee23bf361
gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26362
diff
changeset
|
528 tr:target td, |
f29ee23bf361
gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26362
diff
changeset
|
529 pre.sourcelines > span:target, |
f29ee23bf361
gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26362
diff
changeset
|
530 pre.sourcelines.stripes > span:target { |
f29ee23bf361
gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26362
diff
changeset
|
531 background-color: #bfdfff; |
f29ee23bf361
gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents:
26362
diff
changeset
|
532 } |
12432 | 533 |
31625
c208bc65318a
gitweb: use monospace font for commit messages
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30765
diff
changeset
|
534 .description { |
c208bc65318a
gitweb: use monospace font for commit messages
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30765
diff
changeset
|
535 font-family: monospace; |
33557
875b054e5b95
gitweb: preserve whitespace in description
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33390
diff
changeset
|
536 white-space: pre; |
31625
c208bc65318a
gitweb: use monospace font for commit messages
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30765
diff
changeset
|
537 } |
c208bc65318a
gitweb: use monospace font for commit messages
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30765
diff
changeset
|
538 |
31949
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
539 /* Followlines */ |
32996
1c97df5e3b46
hgweb: plug followlines action in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32992
diff
changeset
|
540 tbody.sourcelines > tr.followlines-selected, |
31949
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
541 pre.sourcelines > span.followlines-selected { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
542 background-color: #99C7E9 !important; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
543 } |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
544 |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
545 div#followlines { |
35019
b445fc69b86c
gitweb: apply styles from annotate tooltip to followlines popup
Anton Shestakov <av6@dwimlabs.net>
parents:
34391
diff
changeset
|
546 background-color: #FFF; |
b445fc69b86c
gitweb: apply styles from annotate tooltip to followlines popup
Anton Shestakov <av6@dwimlabs.net>
parents:
34391
diff
changeset
|
547 border: 1px solid #d9d8d1; |
b445fc69b86c
gitweb: apply styles from annotate tooltip to followlines popup
Anton Shestakov <av6@dwimlabs.net>
parents:
34391
diff
changeset
|
548 padding: 5px; |
31949
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
549 position: fixed; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
550 } |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
551 |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
552 div.followlines-cancel { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
553 text-align: right; |
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 { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
557 line-height: 80%; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
558 padding: 0; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
559 border: 0; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
560 border-radius: 2px; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
561 background-color: inherit; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
562 font-weight: bold; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
563 } |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
564 |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
565 div.followlines-cancel > button:hover { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
566 color: #FFFFFF; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
567 background-color: #CF1F1F; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
568 } |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
569 |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
570 div.followlines-link { |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
571 margin: 2px; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
572 margin-top: 4px; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
573 font-family: sans-serif; |
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 |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
576 .btn-followlines { |
37492
8d05938dd063
hgweb: make followlines button absolutely positioned
Anton Shestakov <av6@dwimlabs.net>
parents:
36394
diff
changeset
|
577 position: absolute; |
31949
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
578 display: none; |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
579 cursor: pointer; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
580 box-sizing: content-box; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
581 font-size: 11px; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
582 width: 13px; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
583 height: 13px; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
584 border-radius: 3px; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
585 margin: 0px; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
586 margin-top: -2px; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
587 padding: 0px; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
588 background-color: #E5FDE5; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
589 border: 1px solid #9BC19B; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
590 font-family: monospace; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
591 text-align: center; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
592 line-height: 5px; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
593 } |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
594 |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
595 span.followlines-select .btn-followlines { |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
596 margin-left: -1.6em; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
597 } |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
598 |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
599 .btn-followlines:hover { |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
600 transform: scale(1.1, 1.1); |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
601 } |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
602 |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
603 .btn-followlines .followlines-plus { |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
604 color: green; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
605 } |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
606 |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
607 .btn-followlines .followlines-minus { |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
608 color: red; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
609 } |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
610 |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
611 .btn-followlines-end { |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
612 background-color: #ffdcdc; |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
613 } |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
614 |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
615 .sourcelines tr:hover .btn-followlines, |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
616 .sourcelines span.followlines-select:hover > .btn-followlines { |
31949
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
617 display: inline; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
618 } |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
619 |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
620 .btn-followlines-hidden, |
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
621 .sourcelines tr:hover .btn-followlines-hidden { |
31949
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
622 display: none; |
eaf3819631c2
gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31625
diff
changeset
|
623 } |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
624 |
12432 | 625 /* Graph */ |
626 div#wrapper { | |
627 position: relative; | |
628 margin: 0; | |
629 padding: 0; | |
630 margin-top: 3px; | |
631 } | |
632 | |
633 canvas { | |
634 position: absolute; | |
635 z-index: 5; | |
636 top: -0.9em; | |
637 margin: 0; | |
638 } | |
639 | |
35531
6c2264732dc5
gitweb: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents:
35522
diff
changeset
|
640 ul#graphnodes { |
12432 | 641 list-style: none inside none; |
642 padding: 0; | |
643 margin: 0; | |
644 } | |
645 | |
35531
6c2264732dc5
gitweb: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents:
35522
diff
changeset
|
646 ul#graphnodes li { |
6c2264732dc5
gitweb: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents:
35522
diff
changeset
|
647 position: relative; |
6c2264732dc5
gitweb: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents:
35522
diff
changeset
|
648 height: 37px; |
6c2264732dc5
gitweb: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents:
35522
diff
changeset
|
649 overflow: visible; |
6c2264732dc5
gitweb: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents:
35522
diff
changeset
|
650 padding-top: 2px; |
6c2264732dc5
gitweb: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents:
35522
diff
changeset
|
651 } |
6c2264732dc5
gitweb: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents:
35522
diff
changeset
|
652 |
6c2264732dc5
gitweb: make actual changeset entries have backgrounds on /graph
Anton Shestakov <av6@dwimlabs.net>
parents:
35522
diff
changeset
|
653 ul#graphnodes li .fg { |
12432 | 654 position: absolute; |
655 z-index: 10; | |
656 } | |
657 | |
658 ul#graphnodes li .info { | |
659 font-size: 100%; | |
660 font-style: italic; | |
661 } | |
17202
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
662 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
663 /* Comparison */ |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
664 .legend { |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
665 padding: 1.5% 0 1.5% 0; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
666 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
667 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
668 .legendinfo { |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
669 border: 1px solid #d9d8d1; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
670 font-size: 80%; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
671 text-align: center; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
672 padding: 0.5%; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
673 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
674 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
675 .equal { |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
676 background-color: #ffffff; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
677 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
678 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
679 .delete { |
17243
106cdea0183d
hgweb: improve colors for comparison page
Matt Mackall <mpm@selenic.com>
parents:
17202
diff
changeset
|
680 background-color: #faa; |
106cdea0183d
hgweb: improve colors for comparison page
Matt Mackall <mpm@selenic.com>
parents:
17202
diff
changeset
|
681 color: #333; |
17202
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
682 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
683 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
684 .insert { |
17243
106cdea0183d
hgweb: improve colors for comparison page
Matt Mackall <mpm@selenic.com>
parents:
17202
diff
changeset
|
685 background-color: #ffa; |
17202
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
686 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
687 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
688 .replace { |
17243
106cdea0183d
hgweb: improve colors for comparison page
Matt Mackall <mpm@selenic.com>
parents:
17202
diff
changeset
|
689 background-color: #e8e8e8; |
17202
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
690 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
691 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
692 .comparison { |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
693 overflow-x: auto; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
694 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
695 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
696 .header th { |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
697 text-align: center; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
698 } |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
699 |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
700 .block { |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
701 border-top: 1px solid #d9d8d1; |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
17017
diff
changeset
|
702 } |
20256
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
703 |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
704 .scroll-loading { |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
705 -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
|
706 -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
|
707 -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
|
708 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
|
709 } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
710 |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
711 @-webkit-keyframes change_color { |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
712 from { background-color: #A0CEFF; } to { } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
713 } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
714 @-moz-keyframes change_color { |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
715 from { background-color: #A0CEFF; } to { } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
716 } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
717 @-o-keyframes change_color { |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
718 from { background-color: #A0CEFF; } to { } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
719 } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
720 @keyframes change_color { |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
721 from { background-color: #A0CEFF; } to { } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
722 } |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
723 |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
724 .scroll-loading-error { |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
725 background-color: #FFCCCC !important; |
b786754ba604
test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents:
19796
diff
changeset
|
726 } |
26175
eae3c6de71e5
tests: fix css-related test-hgweb.t breakage from 93258d53ec35
Anton Shestakov <av6@dwimlabs.net>
parents:
25777
diff
changeset
|
727 |
eae3c6de71e5
tests: fix css-related test-hgweb.t breakage from 93258d53ec35
Anton Shestakov <av6@dwimlabs.net>
parents:
25777
diff
changeset
|
728 #doc { |
eae3c6de71e5
tests: fix css-related test-hgweb.t breakage from 93258d53ec35
Anton Shestakov <av6@dwimlabs.net>
parents:
25777
diff
changeset
|
729 margin: 0 8px; |
eae3c6de71e5
tests: fix css-related test-hgweb.t breakage from 93258d53ec35
Anton Shestakov <av6@dwimlabs.net>
parents:
25777
diff
changeset
|
730 } |
12432 | 731 304 Not Modified |
732 | |
9842
d3dbdca92458
hgweb: don't choke when an inexistent style is requested (issue1901)
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8167
diff
changeset
|
733 |
22577
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
734 phase changes are refreshed (issue4061) |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
735 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
736 $ echo bar >> foo |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
737 $ hg ci -msecret --secret |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
738 $ 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
|
739 200 Script output follows |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
740 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
741 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
742 # HG changelog |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
743 # Node ID 2ef0ac749a14e4f57a5a822464a0902c6f7f448f |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
744 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
745 changeset: 2ef0ac749a14e4f57a5a822464a0902c6f7f448f |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
746 revision: 0 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
747 user: test |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
748 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
|
749 summary: base |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
750 branch: default |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
751 tag: tip |
25777
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
752 bookmark: @ |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
753 bookmark: a b c |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
754 bookmark: d/e/f |
22577
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
755 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
756 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
757 $ hg phase --draft tip |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
758 $ 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
|
759 200 Script output follows |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
760 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
761 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
762 # HG changelog |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
763 # Node ID a084749e708a9c4c0a5b652a2a446322ce290e04 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
764 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
765 changeset: a084749e708a9c4c0a5b652a2a446322ce290e04 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
766 revision: 1 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
767 user: test |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
768 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
|
769 summary: secret |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
770 branch: default |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
771 tag: tip |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
772 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
773 changeset: 2ef0ac749a14e4f57a5a822464a0902c6f7f448f |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
774 revision: 0 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
775 user: test |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
776 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
|
777 summary: base |
25777
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
778 bookmark: @ |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
779 bookmark: a b c |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
780 bookmark: d/e/f |
22577
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
781 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
782 |
a111e460318a
hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents:
22506
diff
changeset
|
783 |
25777
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
784 access bookmarks |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
785 |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
786 $ 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
|
787 200 Script output follows |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
788 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
|
789 |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
790 $ 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
|
791 200 Script output follows |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
792 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
|
793 |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
794 $ 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
|
795 200 Script output follows |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
796 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
|
797 |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
798 $ 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
|
799 200 Script output follows |
1c2a8db33b8f
hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
800 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
|
801 |
38203
c2e3bc99fba4
paper: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
37827
diff
changeset
|
802 no '[up]' entry in file view when in root directory |
c2e3bc99fba4
paper: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
37827
diff
changeset
|
803 |
c2e3bc99fba4
paper: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
37827
diff
changeset
|
804 $ get-with-headers.py localhost:$HGPORT 'file/tip?style=paper' | grep -F '[up]' |
c2e3bc99fba4
paper: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
37827
diff
changeset
|
805 [1] |
c2e3bc99fba4
paper: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
37827
diff
changeset
|
806 $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=paper' | grep -F '[up]' |
c2e3bc99fba4
paper: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
37827
diff
changeset
|
807 <a href="/file/tip/?style=paper">[up]</a> |
c2e3bc99fba4
paper: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
37827
diff
changeset
|
808 $ get-with-headers.py localhost:$HGPORT 'file/tip?style=coal' | grep -F '[up]' |
c2e3bc99fba4
paper: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
37827
diff
changeset
|
809 [1] |
c2e3bc99fba4
paper: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
37827
diff
changeset
|
810 $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=coal' | grep -F '[up]' |
c2e3bc99fba4
paper: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
37827
diff
changeset
|
811 <a href="/file/tip/?style=coal">[up]</a> |
38204
d6aa1fc8292f
gitweb: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
38203
diff
changeset
|
812 $ get-with-headers.py localhost:$HGPORT 'file/tip?style=gitweb' | grep -F '[up]' |
d6aa1fc8292f
gitweb: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
38203
diff
changeset
|
813 [1] |
d6aa1fc8292f
gitweb: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
38203
diff
changeset
|
814 $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=gitweb' | grep -F '[up]' |
d6aa1fc8292f
gitweb: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
38203
diff
changeset
|
815 <a href="/file/tip/?style=gitweb">[up]</a> |
38205
9ed3527019b5
monoblue: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
38204
diff
changeset
|
816 $ get-with-headers.py localhost:$HGPORT 'file/tip?style=monoblue' | grep -F '[up]' |
9ed3527019b5
monoblue: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
38204
diff
changeset
|
817 [1] |
9ed3527019b5
monoblue: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
38204
diff
changeset
|
818 $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=monoblue' | grep -F '[up]' |
9ed3527019b5
monoblue: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
38204
diff
changeset
|
819 <a href="/file/tip/?style=monoblue">[up]</a> |
38206
273ce823ba5c
spartan: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
38205
diff
changeset
|
820 $ get-with-headers.py localhost:$HGPORT 'file/tip?style=spartan' | grep -F '[up]' |
273ce823ba5c
spartan: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
38205
diff
changeset
|
821 [1] |
273ce823ba5c
spartan: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
38205
diff
changeset
|
822 $ get-with-headers.py localhost:$HGPORT 'file/tip/da?style=spartan' | grep -F '[up]' |
273ce823ba5c
spartan: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
38205
diff
changeset
|
823 <a href="/file/tip/?style=spartan">[up]</a> |
38203
c2e3bc99fba4
paper: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents:
37827
diff
changeset
|
824 |
24296
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
825 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
|
826 |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
827 $ 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
|
828 $ 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
|
829 > default = 'shortlog' |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
830 > 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
|
831 > mimetype = 'text/plain' |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
832 > EOF |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
833 $ 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
|
834 > default = 'shortlog' |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
835 > 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
|
836 > mimetype = 'text/plain' |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
837 > EOF |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
838 |
25474
8c14f87bd0ae
tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents:
25472
diff
changeset
|
839 $ killdaemons.py |
24296
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
840 $ 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
|
841 > --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
|
842 $ 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
|
843 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
844 $ 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
|
845 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
|
846 |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
847 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
|
848 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
849 $ 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
|
850 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
|
851 |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
852 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
|
853 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
854 $ 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
|
855 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
|
856 |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
857 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
|
858 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
859 $ 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
|
860 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
|
861 |
b73a22d1d9bf
hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents:
23952
diff
changeset
|
862 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
|
863 |
38039
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
864 $ killdaemons.py |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
865 |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
866 Test signal-safe-lock in web and non-web processes |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
867 |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
868 $ cat <<'EOF' > disablesig.py |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
869 > import signal |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
870 > from mercurial import error, extensions |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
871 > def disabledsig(orig, signalnum, handler): |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
872 > if signalnum == signal.SIGTERM: |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
873 > raise error.Abort(b'SIGTERM cannot be replaced') |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
874 > try: |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
875 > return orig(signalnum, handler) |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
876 > except ValueError: |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
877 > raise error.Abort(b'signal.signal() called in thread?') |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
878 > def uisetup(ui): |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
879 > extensions.wrapfunction(signal, b'signal', disabledsig) |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
880 > EOF |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
881 |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
882 by default, signal interrupt should be disabled while making a lock file |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
883 |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
884 $ hg debuglock -s --config extensions.disablesig=disablesig.py |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
885 abort: SIGTERM cannot be replaced |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
886 [255] |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
887 |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
888 but in hgweb, it isn't disabled since some WSGI servers complains about |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
889 unsupported signal.signal() calls (see issue5889) |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
890 |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
891 $ hg serve --config extensions.disablesig=disablesig.py \ |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
892 > --config web.allow-push='*' --config web.push_ssl=False \ |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
893 > -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
894 $ cat hg.pid >> $DAEMON_PIDS |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
895 |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
896 $ hg clone -q http://localhost:$HGPORT/ repo |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
897 $ hg bookmark -R repo foo |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
898 |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
899 push would fail if signal.signal() were called |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
900 |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
901 $ hg push -R repo -B foo |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
902 pushing to http://localhost:$HGPORT/ |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
903 searching for changes |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
904 no changes found |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
905 exporting bookmark foo |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
906 [1] |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
907 |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
908 $ rm -R repo |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
909 $ killdaemons.py |
5b831053d9b6
hgweb: do not try to replace signal handlers while locking
Yuya Nishihara <yuya@tcha.org>
parents:
37827
diff
changeset
|
910 |
12432 | 911 errors |
5690
1b365c5723bc
server: append to logfiles
Mirko Friedenhagen <mirko-lists@friedenhagen.de>
parents:
5580
diff
changeset
|
912 |
41462
9b2b8794f801
hgweb: log error before attempting I/O
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39707
diff
changeset
|
913 $ cat errors.log | "$PYTHON" $TESTDIR/filtertraceback.py |
9b2b8794f801
hgweb: log error before attempting I/O
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39707
diff
changeset
|
914 $ rm -f errors.log |
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
15446
diff
changeset
|
915 |
23409
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
916 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
|
917 |
28549 | 918 $ 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
|
919 $ cat hg.pid >> $DAEMON_PIDS |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
920 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
921 $ 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
|
922 500 Internal Server Error |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
923 transfer-encoding: chunked |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
924 |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
925 Internal Server Error (no-eol) |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
926 [1] |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
927 |
25474
8c14f87bd0ae
tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents:
25472
diff
changeset
|
928 $ killdaemons.py |
41462
9b2b8794f801
hgweb: log error before attempting I/O
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39707
diff
changeset
|
929 $ cat errors.log | "$PYTHON" $TESTDIR/filtertraceback.py |
23409
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
930 .* Exception happened during processing request '/raiseerror': (re) |
41462
9b2b8794f801
hgweb: log error before attempting I/O
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39707
diff
changeset
|
931 Traceback (most recent call last): |
9b2b8794f801
hgweb: log error before attempting I/O
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39707
diff
changeset
|
932 AttributeError: I am an uncaught error! |
9b2b8794f801
hgweb: log error before attempting I/O
Gregory Szorc <gregory.szorc@gmail.com>
parents:
39707
diff
changeset
|
933 |
23409
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
934 |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
935 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
|
936 |
28549 | 937 $ 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
|
938 $ cat hg.pid >> $DAEMON_PIDS |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24303
diff
changeset
|
939 $ 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
|
940 200 Script output follows |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
941 transfer-encoding: chunked |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
942 content-type: text/plain |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
943 |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
944 partial content |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
945 Internal Server Error (no-eol) |
dc4d2cd3aa3e
hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents:
22947
diff
changeset
|
946 |
25474
8c14f87bd0ae
tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents:
25472
diff
changeset
|
947 $ killdaemons.py |
37826
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
948 |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
949 HTTP 304 works with hgwebdir (issue5844) |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
950 |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
951 $ cat > hgweb.conf << EOF |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
952 > [paths] |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
953 > /repo = $TESTTMP/test |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
954 > EOF |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
955 |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
956 $ hg serve --web-conf hgweb.conf -p $HGPORT -d --pid-file hg.pid -E error.log |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
957 $ cat hg.pid >> $DAEMON_PIDS |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
958 |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
959 $ get-with-headers.py --twice --headeronly localhost:$HGPORT 'repo/static/style.css' - date etag server |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
960 200 Script output follows |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
961 content-length: 2677 |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
962 content-type: text/css |
37827
11ee9bf24791
hgweb: discard Content-Type header for 304 responses (issue5844)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37826
diff
changeset
|
963 304 Not Modified |
37826
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
964 |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
965 $ killdaemons.py |
d105bbb74658
tests: add tests demonstrating ISE for HTTP 304 responses with hgwebdir
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37492
diff
changeset
|
966 |
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
15446
diff
changeset
|
967 $ cd .. |