annotate tests/test-hgweb.t @ 32789:443e8543a125

checkheads: pass "ispushed" function to the obsmarkers logic We are about to make "allfuturecommon" a set of revs instead of a set of nodes. The function updated in this patch do not needs to know about these details so we just pass it a 'ispushed(node)' function. This will simplify the next changeset.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 05 Jun 2017 15:17:47 +0100
parents 2d93d2159e30
children 816a4fa7d5f8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
3 Some tests for hgweb. Tests static files, plain files and different 404's.
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
4
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
5 $ hg init test
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
6 $ cd test
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
7 $ mkdir da
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
8 $ echo foo > da/foo
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
9 $ echo foo > foo
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
10 $ hg ci -Ambase
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
11 adding da/foo
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
16 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
17 $ cat hg.pid >> $DAEMON_PIDS
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
18
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
19 manifest
3942
8eccfce0ab5e hgweb: simple tests
Brendan Cully <brendan@kublai.com>
parents:
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
22 200 Script output follows
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
23
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
24
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
25 drwxr-xr-x da
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
26 -rw-r--r-- 4 foo
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
27
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
30 200 Script output follows
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
31
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
32
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
33 -rw-r--r-- 4 foo
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
34
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
35
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
36
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
37 plain file
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
40 200 Script output follows
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
41
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
42 foo
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
43
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
47 404 Not Found
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
48
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
49 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
50 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
51 <head>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
52 <link rel="icon" href="/static/hgicon.png" type="image/png" />
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
53 <meta name="robots" content="index, nofollow" />
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
56
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
57 <title>test: error</title>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
58 </head>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
59 <body>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
60
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
61 <div class="container">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
62 <div class="menu">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
65 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
66 </div>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
67 <ul>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
68 <li><a href="/shortlog">log</a></li>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
69 <li><a href="/graph">graph</a></li>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
76 </ul>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
77 </div>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
78
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
79 <div class="main">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
82 <h3>error</h3>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
83
32758
cba4461aa0a0 hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents: 31949
diff changeset
84
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
85 <form class="search" action="/log">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
90 </form>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
91
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
92 <div class="description">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
93 <p>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
94 An error occurred while processing your request:
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
95 </p>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
96 <p>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
97 Not Found
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
98 </p>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
99 </div>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
100 </div>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
101 </div>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
102
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
103
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
104
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
105 </body>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
106 </html>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
107
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
108 [1]
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
109
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
110 should give a 404 - bad revision
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
113 404 Not Found
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
114
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
115
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
116 error: revision not found: spam
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
117 [1]
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
118
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
122 400* (glob)
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
123
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
124
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
125 error: no such method: spam
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
126 [1]
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
149 404 Not Found
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
150
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
151
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
152 error: bork@2ef0ac749a14: not found in manifest
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
155 404 Not Found
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
156
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
157 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
158 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
159 <head>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
160 <link rel="icon" href="/static/hgicon.png" type="image/png" />
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
161 <meta name="robots" content="index, nofollow" />
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
164
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
165 <title>test: error</title>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
166 </head>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
167 <body>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
168
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
169 <div class="container">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
170 <div class="menu">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
173 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
174 </div>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
175 <ul>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
176 <li><a href="/shortlog">log</a></li>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
177 <li><a href="/graph">graph</a></li>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
184 </ul>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
185 </div>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
186
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
187 <div class="main">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
190 <h3>error</h3>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
191
32758
cba4461aa0a0 hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents: 31949
diff changeset
192
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
193 <form class="search" action="/log">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
198 </form>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
199
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
200 <div class="description">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
201 <p>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
202 An error occurred while processing your request:
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
203 </p>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
204 <p>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
205 bork@2ef0ac749a14: not found in manifest
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
206 </p>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
207 </div>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
208 </div>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
209 </div>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
210
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
211
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
212
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
213 </body>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
214 </html>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
215
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
218 404 Not Found
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
219
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
220
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
221 error: bork@2ef0ac749a14: not found in manifest
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
227 200 Script output follows
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
228
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
229 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
230 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
231 <head>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
232 <link rel="icon" href="/static/hgicon.png" type="image/png" />
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
233 <meta name="robots" content="index, nofollow" />
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
236
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
237 <title>test: 2ef0ac749a14 /</title>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
238 </head>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
239 <body>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
240
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
241 <div class="container">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
242 <div class="menu">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
245 <img src="/static/hglogo.png" alt="mercurial" /></a>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
246 </div>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
252 <li><a href="/branches">branches</a></li>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
253 </ul>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
256 <li class="active">browse</li>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
257 </ul>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
258 <ul>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
259
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
264 </div>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
265
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
266 <div class="main">
18264
d6ebdbdd70a5 tests: update hgweb tests to include breadcrumbs
Bryan O'Sullivan <bryano@fb.com>
parents: 17466
diff changeset
267 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
25617
63be46407a50 hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents: 25606
diff changeset
268 <h3>
63be46407a50 hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents: 25606
diff changeset
269 directory / @ 0:<a href="/rev/2ef0ac749a14">2ef0ac749a14</a>
25777
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
270 <span class="tag">tip</span> <span class="tag">@</span> <span class="tag">a b c</span> <span class="tag">d/e/f</span>
25617
63be46407a50 hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents: 25606
diff changeset
271 </h3>
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
272
32758
cba4461aa0a0 hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents: 31949
diff changeset
273
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
274 <form class="search" action="/log">
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
279 </form>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
280
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
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
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
283 <tr>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
284 <th class="name">name</th>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
285 <th class="size">size</th>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
286 <th class="permissions">permissions</th>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
287 </tr>
24054
fdf7794be41d hgweb: replace implicit <tbody> with explicit <thead> where appropriate
Anton Shestakov <engored@ya.ru>
parents: 23952
diff changeset
288 </thead>
19447
182942b38d24 hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents: 19076
diff changeset
289 <tbody class="stripes2">
182942b38d24 hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents: 19076
diff changeset
290 <tr class="fileline">
25606
3bb6f5f478a7 hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents: 25474
diff changeset
291 <td class="name"><a href="/file/tip/">[up]</a></td>
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
292 <td class="size"></td>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
293 <td class="permissions">drwxr-xr-x</td>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
294 </tr>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
295
19447
182942b38d24 hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents: 19076
diff changeset
296 <tr class="fileline">
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
297 <td class="name">
25606
3bb6f5f478a7 hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents: 25474
diff changeset
298 <a href="/file/tip/da">
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
299 <img src="/static/coal-folder.png" alt="dir."/> da/
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
300 </a>
25606
3bb6f5f478a7 hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents: 25474
diff changeset
301 <a href="/file/tip/da/">
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
302
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
303 </a>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
304 </td>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
305 <td class="size"></td>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
306 <td class="permissions">drwxr-xr-x</td>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
307 </tr>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
308
19447
182942b38d24 hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents: 19076
diff changeset
309 <tr class="fileline">
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
310 <td class="filename">
25606
3bb6f5f478a7 hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents: 25474
diff changeset
311 <a href="/file/tip/foo">
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
312 <img src="/static/coal-file.png" alt="file"/> foo
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
313 </a>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
314 </td>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
315 <td class="size">4</td>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
316 <td class="permissions">-rw-r--r--</td>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
317 </tr>
19447
182942b38d24 hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents: 19076
diff changeset
318 </tbody>
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
319 </table>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
320 </div>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
321 </div>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
322
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
323
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
324 </body>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
325 </html>
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
326
5561
22713dce19f6 hgweb: return meaningful HTTP status codes instead of nonsense
Bryan O'Sullivan <bos@serpentine.com>
parents: 5384
diff changeset
327
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
328 stop and restart
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
329
25474
8c14f87bd0ae tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents: 25472
diff changeset
330 $ killdaemons.py
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
331 $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
332 $ cat hg.pid >> $DAEMON_PIDS
5561
22713dce19f6 hgweb: return meaningful HTTP status codes instead of nonsense
Bryan O'Sullivan <bos@serpentine.com>
parents: 5384
diff changeset
333
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
334 Test the access/error files are opened in append mode
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
335
22947
c63a09b6b337 tests: use $PYTHON instead of hardcoding python
Augie Fackler <raf@durin42.com>
parents: 22578
diff changeset
336 $ $PYTHON -c "print len(file('access.log').readlines()), 'log lines written'"
22506
6e1fbcb18a75 hgweb: fail if an invalid command was supplied in url path (issue4071)
Anton Shestakov <engored@ya.ru>
parents: 20256
diff changeset
337 14 log lines written
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
338
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
339 static file
5561
22713dce19f6 hgweb: return meaningful HTTP status codes instead of nonsense
Bryan O'Sullivan <bos@serpentine.com>
parents: 5384
diff changeset
340
25472
4d2b9b304ad0 tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents: 24303
diff changeset
341 $ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
342 200 Script output follows
32762
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32758
diff changeset
343 content-length: 8265
18380
a4d7fd7ad1f7 serve: don't send any content headers with 304 responses
Mads Kiilerich <madski@unity3d.com>
parents: 18264
diff changeset
344 content-type: text/css
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
345
26536
93a3687a94d7 hgweb: ensure both foreground and background colors are specified (issue4872)
Gijs Kruitbosch <gijskruitbosch@gmail.com>
parents: 26421
diff changeset
346 body { font-family: sans-serif; font-size: 12px; border:solid #d9d8d1; border-width:1px; margin:10px; background: white; color: black; }
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
347 a { color:#0000cc; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
348 a:hover, a:visited, a:active { color:#880000; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
349 div.page_header { height:25px; padding:8px; font-size:18px; font-weight:bold; background-color:#d9d8d1; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
350 div.page_header a:visited { color:#0000cc; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
351 div.page_header a:hover { color:#880000; }
32762
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32758
diff changeset
352 div.page_nav {
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32758
diff changeset
353 padding:8px;
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32758
diff changeset
354 display: flex;
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32758
diff changeset
355 justify-content: space-between;
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32758
diff changeset
356 align-items: center;
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32758
diff changeset
357 }
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
358 div.page_nav a:visited { color:#0000cc; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
359 div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px}
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
360 div.page_footer { padding:4px 8px; background-color: #d9d8d1; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
361 div.page_footer_text { float:left; color:#555555; font-style:italic; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
362 div.page_body { padding:8px; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
363 div.title, a.title {
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
364 display:block; padding:6px 8px;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
365 font-weight:bold; background-color:#edece6; text-decoration:none; color:#000000;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
366 }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
367 a.title:hover { background-color: #d9d8d1; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
368 div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
369 div.log_body { padding:8px 8px 8px 150px; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
370 .age { white-space:nowrap; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
371 span.age { position:relative; float:left; width:142px; font-style:italic; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
372 div.log_link {
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
373 padding:0px 8px;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
374 font-size:10px; font-family:sans-serif; font-style:normal;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
375 position:relative; float:left; width:136px;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
376 }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
377 div.list_head { padding:6px 8px 4px; border:solid #d9d8d1; border-width:1px 0px 0px; font-style:italic; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
378 a.list { text-decoration:none; color:#000000; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
379 a.list:hover { text-decoration:underline; color:#880000; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
380 table { padding:8px 4px; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
381 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
382 .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
383 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
384 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
385 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
386 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
387 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
388 pre.sourcelines.stripes > :nth-child(4n+3):hover + :nth-child(4n+4) { background-color:#edece6; }
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
389 td { padding:2px 5px; font-size:12px; vertical-align:top; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
390 td.closed { background-color: #99f; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
391 td.link { padding:2px 5px; font-family:sans-serif; font-size:10px; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
392 td.indexlinks { white-space: nowrap; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
393 td.indexlinks a {
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
394 padding: 2px 5px; line-height: 10px;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
395 border: 1px solid;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
396 color: #ffffff; background-color: #7777bb;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
397 border-color: #aaaadd #333366 #333366 #aaaadd;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
398 font-weight: bold; text-align: center; text-decoration: none;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
399 font-size: 10px;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
400 }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
401 td.indexlinks a:hover { background-color: #6666aa; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
402 div.pre { font-family:monospace; font-size:12px; white-space:pre; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
403 div.diff_info { font-family:monospace; color:#000099; background-color:#edece6; font-style:italic; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
404 div.index_include { border:solid #d9d8d1; border-width:0px 0px 1px; padding:12px 8px; }
32762
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32758
diff changeset
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;
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32758
diff changeset
418 }
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 #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
421
29387
6b77adc2c7b5 hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 28549
diff changeset
422 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
423 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
424 td.annotate {
8f34e217338b hgweb: avoid line wrap between revision and annotate-info (issue5398)
Tooru Fujisawa <arai.unmht@gmail.com>
parents: 29626
diff changeset
425 white-space: nowrap;
8f34e217338b hgweb: avoid line wrap between revision and annotate-info (issue5398)
Tooru Fujisawa <arai.unmht@gmail.com>
parents: 29626
diff changeset
426 }
29522
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
427 div.annotate-info {
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
428 display: none;
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
429 position: absolute;
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
430 background-color: #FFFFFF;
29626
4317aa562580 gitweb: make annotate popup use theme colors
Anton Shestakov <av6@dwimlabs.net>
parents: 29573
diff changeset
431 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
432 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
433 color: #000000;
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
434 padding: 5px;
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
435 }
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
436 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
437 td.annotate:hover div.annotate-info { display: inline; }
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
438 .linenr { color:#999999; text-decoration:none }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
439 div.rss_logo { float: right; white-space: nowrap; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
440 div.rss_logo a {
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
441 padding:3px 6px; line-height:10px;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
442 border:1px solid; border-color:#fcc7a5 #7d3302 #3e1a01 #ff954e;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
443 color:#ffffff; background-color:#ff6600;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
444 font-weight:bold; font-family:sans-serif; font-size:10px;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
445 text-align:center; text-decoration:none;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
446 }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
447 div.rss_logo a:hover { background-color:#ee5500; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
448 pre { margin: 0; }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
449 span.logtags span {
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
450 padding: 0px 4px;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
451 font-size: 10px;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
452 font-weight: normal;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
453 border: 1px solid;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
454 background-color: #ffaaff;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
455 border-color: #ffccff #ff00ee #ff00ee #ffccff;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
456 }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
457 span.logtags span.tagtag {
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
458 background-color: #ffffaa;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
459 border-color: #ffffcc #ffee00 #ffee00 #ffffcc;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
460 }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
461 span.logtags span.branchtag {
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
462 background-color: #aaffaa;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
463 border-color: #ccffcc #00cc33 #00cc33 #ccffcc;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
464 }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
465 span.logtags span.inbranchtag {
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
466 background-color: #d5dde6;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
467 border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
468 }
13863
b602ac02f1ba hgweb: add bookmark labels to gitweb theme (based on 270f57d35525)
Yuya Nishihara <yuya@tcha.org>
parents: 13597
diff changeset
469 span.logtags span.bookmarktag {
b602ac02f1ba hgweb: add bookmark labels to gitweb theme (based on 270f57d35525)
Yuya Nishihara <yuya@tcha.org>
parents: 13597
diff changeset
470 background-color: #afdffa;
b602ac02f1ba hgweb: add bookmark labels to gitweb theme (based on 270f57d35525)
Yuya Nishihara <yuya@tcha.org>
parents: 13597
diff changeset
471 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
472 }
23744
d1933c2e3c8c templates: use CSS classes for diff styling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 23409
diff changeset
473 span.difflineplus { color:#008800; }
d1933c2e3c8c templates: use CSS classes for diff styling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 23409
diff changeset
474 span.difflineminus { color:#cc0000; }
d1933c2e3c8c templates: use CSS classes for diff styling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 23409
diff changeset
475 span.difflineat { color:#990099; }
26288
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
476 div.diffblocks { counter-reset: lineno; }
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
477 div.diffblock { counter-increment: lineno; }
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
478 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
479 pre.sourcelines > span {
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
480 display: inline-block;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
481 box-sizing: border-box;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
482 width: 100%;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
483 padding: 0 0 0 5em;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
484 counter-increment: lineno;
26362
3bfc473f4d33 gitweb, monoblue: fix vertical align of spans in .sourcelines
Anton Shestakov <av6@dwimlabs.net>
parents: 26288
diff changeset
485 vertical-align: top;
26288
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
486 }
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
487 pre.sourcelines > span:before {
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
488 -moz-user-select: -moz-none;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
489 -khtml-user-select: none;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
490 -webkit-user-select: none;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
491 -ms-user-select: none;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
492 user-select: none;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
493 display: inline-block;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
494 margin-left: -5em;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
495 width: 4em;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
496 color: #999;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
497 text-align: right;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
498 content: counters(lineno,".");
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
499 float: left;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
500 }
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
501 pre.sourcelines > a {
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
502 display: inline-block;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
503 position: absolute;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
504 left: 0px;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
505 width: 4em;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
506 height: 1em;
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26175
diff changeset
507 }
26363
f29ee23bf361 gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26362
diff changeset
508 tr:target td,
f29ee23bf361 gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26362
diff changeset
509 pre.sourcelines > span:target,
f29ee23bf361 gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26362
diff changeset
510 pre.sourcelines.stripes > span:target {
f29ee23bf361 gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26362
diff changeset
511 background-color: #bfdfff;
f29ee23bf361 gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26362
diff changeset
512 }
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
513
31625
c208bc65318a gitweb: use monospace font for commit messages
Gregory Szorc <gregory.szorc@gmail.com>
parents: 30765
diff changeset
514 .description {
c208bc65318a gitweb: use monospace font for commit messages
Gregory Szorc <gregory.szorc@gmail.com>
parents: 30765
diff changeset
515 font-family: monospace;
c208bc65318a gitweb: use monospace font for commit messages
Gregory Szorc <gregory.szorc@gmail.com>
parents: 30765
diff changeset
516 }
c208bc65318a gitweb: use monospace font for commit messages
Gregory Szorc <gregory.szorc@gmail.com>
parents: 30765
diff changeset
517
31949
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
518 /* Followlines */
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
519 div.page_body pre.sourcelines > span.followlines-select:hover {
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
520 cursor: cell;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
521 }
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
522
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
523 pre.sourcelines > span.followlines-selected {
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
524 background-color: #99C7E9 !important;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
525 }
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
526
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
527 div#followlines {
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
528 background-color: #B7B7B7;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
529 border: 1px solid #CCC;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
530 border-radius: 5px;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
531 padding: 4px;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
532 position: fixed;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
533 }
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
534
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
535 div.followlines-cancel {
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
536 text-align: right;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
537 }
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
538
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
539 div.followlines-cancel > button {
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
540 line-height: 80%;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
541 padding: 0;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
542 border: 0;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
543 border-radius: 2px;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
544 background-color: inherit;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
545 font-weight: bold;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
546 }
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
547
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
548 div.followlines-cancel > button:hover {
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
549 color: #FFFFFF;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
550 background-color: #CF1F1F;
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
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
553 div.followlines-link {
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
554 margin: 2px;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
555 margin-top: 4px;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
556 font-family: sans-serif;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
557 }
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
558
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
559 div#followlines-tooltip {
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
560 display: none;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
561 position: fixed;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
562 background-color: #ffc;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
563 border: 1px solid #999;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
564 padding: 2px;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
565 }
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
566
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
567 .sourcelines:hover > div#followlines-tooltip {
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
568 display: inline;
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
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
571 .sourcelines:hover > div#followlines-tooltip.hidden {
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
572 display: none;
eaf3819631c2 gitweb: plug followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 31625
diff changeset
573 }
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
574 /* Graph */
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
575 div#wrapper {
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
576 position: relative;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
577 margin: 0;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
578 padding: 0;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
579 margin-top: 3px;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
580 }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
581
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
582 canvas {
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
583 position: absolute;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
584 z-index: 5;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
585 top: -0.9em;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
586 margin: 0;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
587 }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
588
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
589 ul#nodebgs {
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
590 list-style: none inside none;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
591 padding: 0;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
592 margin: 0;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
593 top: -0.7em;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
594 }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
595
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
596 ul#graphnodes li, ul#nodebgs li {
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
597 height: 39px;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
598 }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
599
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
600 ul#graphnodes {
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
601 position: absolute;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
602 z-index: 10;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
603 top: -0.8em;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
604 list-style: none inside none;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
605 padding: 0;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
606 }
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
607
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
608 ul#graphnodes li .info {
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
609 display: block;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
610 font-size: 100%;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
611 position: relative;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
612 top: -3px;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
613 font-style: italic;
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
614 }
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
615
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
616 /* Comparison */
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
617 .legend {
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
618 padding: 1.5% 0 1.5% 0;
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
619 }
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
620
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
621 .legendinfo {
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
622 border: 1px solid #d9d8d1;
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
623 font-size: 80%;
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
624 text-align: center;
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
625 padding: 0.5%;
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
626 }
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
627
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
628 .equal {
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
629 background-color: #ffffff;
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
630 }
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
631
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
632 .delete {
17243
106cdea0183d hgweb: improve colors for comparison page
Matt Mackall <mpm@selenic.com>
parents: 17202
diff changeset
633 background-color: #faa;
106cdea0183d hgweb: improve colors for comparison page
Matt Mackall <mpm@selenic.com>
parents: 17202
diff changeset
634 color: #333;
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
635 }
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
636
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
637 .insert {
17243
106cdea0183d hgweb: improve colors for comparison page
Matt Mackall <mpm@selenic.com>
parents: 17202
diff changeset
638 background-color: #ffa;
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
639 }
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
640
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
641 .replace {
17243
106cdea0183d hgweb: improve colors for comparison page
Matt Mackall <mpm@selenic.com>
parents: 17202
diff changeset
642 background-color: #e8e8e8;
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
643 }
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
644
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
645 .comparison {
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
646 overflow-x: auto;
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
647 }
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
648
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
649 .header th {
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
650 text-align: center;
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
651 }
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
652
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
653 .block {
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
654 border-top: 1px solid #d9d8d1;
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 17017
diff changeset
655 }
20256
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
656
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
657 .scroll-loading {
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
658 -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
659 -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
660 -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
661 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
662 }
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
663
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
664 @-webkit-keyframes change_color {
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
665 from { background-color: #A0CEFF; } to { }
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
666 }
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
667 @-moz-keyframes change_color {
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
668 from { background-color: #A0CEFF; } to { }
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
669 }
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
670 @-o-keyframes change_color {
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
671 from { background-color: #A0CEFF; } to { }
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
672 }
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
673 @keyframes change_color {
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
674 from { background-color: #A0CEFF; } to { }
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
675 }
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
676
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
677 .scroll-loading-error {
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
678 background-color: #FFCCCC !important;
b786754ba604 test-hgweb-*: output change fixes from b1d65cb8
Augie Fackler <raf@durin42.com>
parents: 19796
diff changeset
679 }
26175
eae3c6de71e5 tests: fix css-related test-hgweb.t breakage from 93258d53ec35
Anton Shestakov <av6@dwimlabs.net>
parents: 25777
diff changeset
680
eae3c6de71e5 tests: fix css-related test-hgweb.t breakage from 93258d53ec35
Anton Shestakov <av6@dwimlabs.net>
parents: 25777
diff changeset
681 #doc {
eae3c6de71e5 tests: fix css-related test-hgweb.t breakage from 93258d53ec35
Anton Shestakov <av6@dwimlabs.net>
parents: 25777
diff changeset
682 margin: 0 8px;
eae3c6de71e5 tests: fix css-related test-hgweb.t breakage from 93258d53ec35
Anton Shestakov <av6@dwimlabs.net>
parents: 25777
diff changeset
683 }
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
684 304 Not Modified
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
685
9842
d3dbdca92458 hgweb: don't choke when an inexistent style is requested (issue1901)
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8167
diff changeset
686
22577
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
687 phase changes are refreshed (issue4061)
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
688
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
689 $ echo bar >> foo
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
690 $ hg ci -msecret --secret
25472
4d2b9b304ad0 tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents: 24303
diff changeset
691 $ 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
692 200 Script output follows
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
693
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
694
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
695 # HG changelog
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
696 # Node ID 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
697
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
698 changeset: 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
699 revision: 0
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
700 user: test
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
701 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
702 summary: base
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
703 branch: default
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
704 tag: tip
25777
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
705 bookmark: @
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
706 bookmark: a b c
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
707 bookmark: d/e/f
22577
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
708
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
709
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
710 $ hg phase --draft tip
25472
4d2b9b304ad0 tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents: 24303
diff changeset
711 $ 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
712 200 Script output follows
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
713
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
714
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
715 # HG changelog
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
716 # Node ID a084749e708a9c4c0a5b652a2a446322ce290e04
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
717
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
718 changeset: a084749e708a9c4c0a5b652a2a446322ce290e04
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
719 revision: 1
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
720 user: test
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
721 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
722 summary: secret
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
723 branch: default
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
724 tag: tip
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
725
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
726 changeset: 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
727 revision: 0
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
728 user: test
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
729 date: Thu, 01 Jan 1970 00:00:00 +0000
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
730 summary: base
25777
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
731 bookmark: @
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
732 bookmark: a b c
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
733 bookmark: d/e/f
22577
a111e460318a hgweb: refresh hgweb.repo on phase change (issue4061)
Anton Shestakov <engored@ya.ru>
parents: 22506
diff changeset
734
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
25777
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
737 access bookmarks
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
738
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
739 $ 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
740 200 Script output follows
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
741 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
742
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
743 $ 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
744 200 Script output follows
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
745 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
746
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
747 $ get-with-headers.py localhost:$HGPORT 'rev/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
748 200 Script output follows
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
749 changeset 0:<a href="/rev/2ef0ac749a14?style=paper">2ef0ac749a14</a>
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
750
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
751 $ get-with-headers.py localhost:$HGPORT 'rev/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
752 200 Script output follows
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
753 changeset 0:<a href="/rev/2ef0ac749a14?style=paper">2ef0ac749a14</a>
1c2a8db33b8f hgweb: allow symbolic revisions with forward slashes in urls
Anton Shestakov <av6@dwimlabs.net>
parents: 25617
diff changeset
754
24296
b73a22d1d9bf hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents: 23952
diff changeset
755 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
756
b73a22d1d9bf hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents: 23952
diff changeset
757 $ 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
758 $ 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
759 > default = 'shortlog'
b73a22d1d9bf hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents: 23952
diff changeset
760 > 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
761 > mimetype = 'text/plain'
b73a22d1d9bf hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents: 23952
diff changeset
762 > EOF
b73a22d1d9bf hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents: 23952
diff changeset
763 $ 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
764 > default = 'shortlog'
b73a22d1d9bf hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents: 23952
diff changeset
765 > 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
766 > mimetype = 'text/plain'
b73a22d1d9bf hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents: 23952
diff changeset
767 > EOF
b73a22d1d9bf hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents: 23952
diff changeset
768
25474
8c14f87bd0ae tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents: 25472
diff changeset
769 $ killdaemons.py
24296
b73a22d1d9bf hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents: 23952
diff changeset
770 $ 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
771 > --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
772 $ 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
773
25472
4d2b9b304ad0 tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents: 24303
diff changeset
774 $ 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
775 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
776
b73a22d1d9bf hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents: 23952
diff changeset
777 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
778
25472
4d2b9b304ad0 tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents: 24303
diff changeset
779 $ 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
780 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
781
b73a22d1d9bf hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents: 23952
diff changeset
782 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
783
25472
4d2b9b304ad0 tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents: 24303
diff changeset
784 $ 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
785 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
786
b73a22d1d9bf hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents: 23952
diff changeset
787 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
788
25472
4d2b9b304ad0 tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents: 24303
diff changeset
789 $ 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
790 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
791
b73a22d1d9bf hgweb: prevent loading style map from directories other than specified paths
Yuya Nishihara <yuya@tcha.org>
parents: 23952
diff changeset
792 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
793
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
794 errors
5690
1b365c5723bc server: append to logfiles
Mirko Friedenhagen <mirko-lists@friedenhagen.de>
parents: 5580
diff changeset
795
12432
7f3af5da4e6c tests: unify test-hgweb
Matt Mackall <mpm@selenic.com>
parents: 12182
diff changeset
796 $ cat errors.log
16913
f2719b387380 tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents: 15446
diff changeset
797
23409
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
798 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
799
25474
8c14f87bd0ae tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents: 25472
diff changeset
800 $ killdaemons.py
28549
e01bd7385f4f tests: reorder hg serve commands
Jun Wu <quark@fb.com>
parents: 26670
diff changeset
801 $ 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
802 $ cat hg.pid >> $DAEMON_PIDS
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
803
25472
4d2b9b304ad0 tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents: 24303
diff changeset
804 $ 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
805 500 Internal Server Error
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
806 transfer-encoding: chunked
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
807
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
808 Internal Server Error (no-eol)
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
809 [1]
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
810
25474
8c14f87bd0ae tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents: 25472
diff changeset
811 $ killdaemons.py
23409
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
812 $ head -1 errors.log
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
813 .* Exception happened during processing request '/raiseerror': (re)
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
814
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
815 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
816
28549
e01bd7385f4f tests: reorder hg serve commands
Jun Wu <quark@fb.com>
parents: 26670
diff changeset
817 $ 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
818 $ cat hg.pid >> $DAEMON_PIDS
25472
4d2b9b304ad0 tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents: 24303
diff changeset
819 $ 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
820 200 Script output follows
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
821 transfer-encoding: chunked
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
822 content-type: text/plain
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
823
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
824 partial content
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
825 Internal Server Error (no-eol)
dc4d2cd3aa3e hgweb: send proper HTTP response after uncaught exception
Gregory Szorc <gregory.szorc@gmail.com>
parents: 22947
diff changeset
826
25474
8c14f87bd0ae tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents: 25472
diff changeset
827 $ killdaemons.py
16913
f2719b387380 tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents: 15446
diff changeset
828 $ cd ..