annotate tests/test-hgweb-empty.t @ 12666:ead4e21f49f1

web: add a help view for getting hg help output
author Augie Fackler <durin42@gmail.com>
date Sat, 09 Oct 2010 12:27:14 -0500
parents b52ce78de84d
children d664547ef540
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12436
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
1 Some tests for hgweb in an empty repository
7565
5f162f61e479 hgweb: fix problems with empty repositories
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
2
12436
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
3 $ hg init test
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
4 $ cd test
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
5 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
6 $ cat hg.pid >> $DAEMON_PIDS
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
7 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/shortlog')
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
8 200 Script output follows
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
9
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
10 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
11 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
12 <head>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
13 <link rel="icon" href="/static/hgicon.png" type="image/png" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
14 <meta name="robots" content="index, nofollow" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
15 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
16
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
17 <title>test: log</title>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
18 <link rel="alternate" type="application/atom+xml"
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
19 href="/atom-log" title="Atom feed for test" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
20 <link rel="alternate" type="application/rss+xml"
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
21 href="/rss-log" title="RSS feed for test" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
22 </head>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
23 <body>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
24
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
25 <div class="container">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
26 <div class="menu">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
27 <div class="logo">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
28 <a href="http://mercurial.selenic.com/">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
29 <img src="/static/hglogo.png" alt="mercurial" /></a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
30 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
31 <ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
32 <li class="active">log</li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
33 <li><a href="/graph/000000000000">graph</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
34 <li><a href="/tags">tags</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
35 <li><a href="/branches">branches</a></li>
12666
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
36 <li><a href="/help">help</a></li>
12436
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
37 </ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
38 <ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
39 <li><a href="/rev/000000000000">changeset</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
40 <li><a href="/file/000000000000">browse</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
41 </ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
42 <ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
43
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
44 </ul>
12666
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
45 <ul>
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
46 <li><a href="/help">help</a></li>
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
47 </ul>
12436
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
48 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
49
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
50 <div class="main">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
51 <h2><a href="/">test</a></h2>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
52 <h3>log</h3>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
53
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
54 <form class="search" action="/log">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
55
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
56 <p><input name="rev" id="search1" type="text" size="30" /></p>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
57 <div id="hint">find changesets by author, revision,
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
58 files, or words in the commit message</div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
59 </form>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
60
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
61 <div class="navigate">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
62 <a href="/shortlog/-1?revcount=30">less</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
63 <a href="/shortlog/-1?revcount=120">more</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
64 | rev -1: <a href="/shortlog/000000000000">(0)</a> <a href="/shortlog/tip">tip</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
65 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
66
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
67 <table class="bigtable">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
68 <tr>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
69 <th class="age">age</th>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
70 <th class="author">author</th>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
71 <th class="description">description</th>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
72 </tr>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
73
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
74 </table>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
75
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
76 <div class="navigate">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
77 <a href="/shortlog/-1?revcount=30">less</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
78 <a href="/shortlog/-1?revcount=120">more</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
79 | rev -1: <a href="/shortlog/000000000000">(0)</a> <a href="/shortlog/tip">tip</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
80 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
81
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
82 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
83 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
84
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
85
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
86
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
87 </body>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
88 </html>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
89
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
90 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log')
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
91 200 Script output follows
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
92
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
93 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
94 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
95 <head>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
96 <link rel="icon" href="/static/hgicon.png" type="image/png" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
97 <meta name="robots" content="index, nofollow" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
98 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
99
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
100 <title>test: log</title>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
101 <link rel="alternate" type="application/atom+xml"
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
102 href="/atom-log" title="Atom feed for test" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
103 <link rel="alternate" type="application/rss+xml"
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
104 href="/rss-log" title="RSS feed for test" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
105 </head>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
106 <body>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
107
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
108 <div class="container">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
109 <div class="menu">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
110 <div class="logo">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
111 <a href="http://mercurial.selenic.com/">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
112 <img src="/static/hglogo.png" alt="mercurial" /></a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
113 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
114 <ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
115 <li class="active">log</li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
116 <li><a href="/graph/000000000000">graph</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
117 <li><a href="/tags">tags</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
118 <li><a href="/branches">branches</a></li>
12666
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
119 <li><a href="/help">help</a></li>
12436
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
120 </ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
121 <ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
122 <li><a href="/rev/000000000000">changeset</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
123 <li><a href="/file/000000000000">browse</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
124 </ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
125 <ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
126
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
127 </ul>
12666
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
128 <ul>
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
129 <li><a href="/help">help</a></li>
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
130 </ul>
12436
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
131 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
132
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
133 <div class="main">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
134 <h2><a href="/">test</a></h2>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
135 <h3>log</h3>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
136
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
137 <form class="search" action="/log">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
138
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
139 <p><input name="rev" id="search1" type="text" size="30" /></p>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
140 <div id="hint">find changesets by author, revision,
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
141 files, or words in the commit message</div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
142 </form>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
143
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
144 <div class="navigate">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
145 <a href="/shortlog/-1?revcount=5">less</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
146 <a href="/shortlog/-1?revcount=20">more</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
147 | rev -1: <a href="/shortlog/000000000000">(0)</a> <a href="/shortlog/tip">tip</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
148 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
149
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
150 <table class="bigtable">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
151 <tr>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
152 <th class="age">age</th>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
153 <th class="author">author</th>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
154 <th class="description">description</th>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
155 </tr>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
156
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
157 </table>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
158
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
159 <div class="navigate">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
160 <a href="/shortlog/-1?revcount=5">less</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
161 <a href="/shortlog/-1?revcount=20">more</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
162 | rev -1: <a href="/shortlog/000000000000">(0)</a> <a href="/shortlog/tip">tip</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
163 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
164
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
165 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
166 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
167
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
168
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
169
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
170 </body>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
171 </html>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
172
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
173 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/graph')
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
174 200 Script output follows
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
175
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
176 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
177 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
178 <head>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
179 <link rel="icon" href="/static/hgicon.png" type="image/png" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
180 <meta name="robots" content="index, nofollow" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
181 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
182
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
183 <title>test: revision graph</title>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
184 <link rel="alternate" type="application/atom+xml"
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
185 href="/atom-log" title="Atom feed for test: log" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
186 <link rel="alternate" type="application/rss+xml"
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
187 href="/rss-log" title="RSS feed for test: log" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
188 <!--[if IE]><script type="text/javascript" src="/static/excanvas.js"></script><![endif]-->
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
189 </head>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
190 <body>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
191
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
192 <div class="container">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
193 <div class="menu">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
194 <div class="logo">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
195 <a href="http://mercurial.selenic.com/">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
196 <img src="/static/hglogo.png" alt="mercurial" /></a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
197 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
198 <ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
199 <li><a href="/shortlog/000000000000">log</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
200 <li class="active">graph</li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
201 <li><a href="/tags">tags</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
202 <li><a href="/branches">branches</a></li>
12666
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
203 <li><a href="/help">help</a></li>
12436
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
204 </ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
205 <ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
206 <li><a href="/rev/000000000000">changeset</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
207 <li><a href="/file/000000000000">browse</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
208 </ul>
12666
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
209 <ul>
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
210 <li><a href="/help">help</a></li>
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
211 </ul>
12436
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
212 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
213
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
214 <div class="main">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
215 <h2><a href="/">test</a></h2>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
216 <h3>graph</h3>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
217
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
218 <form class="search" action="/log">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
219
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
220 <p><input name="rev" id="search1" type="text" size="30" /></p>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
221 <div id="hint">find changesets by author, revision,
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
222 files, or words in the commit message</div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
223 </form>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
224
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
225 <div class="navigate">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
226 <a href="/graph/-1?revcount=30">less</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
227 <a href="/graph/-1?revcount=120">more</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
228 | rev -1: <a href="/graph/000000000000">(0)</a> <a href="/graph/tip">tip</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
229 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
230
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
231 <noscript><p>The revision graph only works with JavaScript-enabled browsers.</p></noscript>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
232
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
233 <div id="wrapper">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
234 <ul id="nodebgs"></ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
235 <canvas id="graph" width="224" height="12"></canvas>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
236 <ul id="graphnodes"></ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
237 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
238
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
239 <script type="text/javascript" src="/static/graph.js"></script>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
240 <script type="text/javascript">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
241 <!-- hide script content
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
242
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
243 var data = [];
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
244 var graph = new Graph();
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
245 graph.scale(39);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
246
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
247 graph.edge = function(x0, y0, x1, y1, color) {
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
248
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
249 this.setColor(color, 0.0, 0.65);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
250 this.ctx.beginPath();
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
251 this.ctx.moveTo(x0, y0);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
252 this.ctx.lineTo(x1, y1);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
253 this.ctx.stroke();
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
254
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
255 }
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
256
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
257 var revlink = '<li style="_STYLE"><span class="desc">';
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
258 revlink += '<a href="/rev/_NODEID" title="_NODEID">_DESC</a>';
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
259 revlink += '</span>_TAGS<span class="info">_DATE, by _USER</span></li>';
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
260
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
261 graph.vertex = function(x, y, color, parity, cur) {
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
262
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
263 this.ctx.beginPath();
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
264 color = this.setColor(color, 0.25, 0.75);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
265 this.ctx.arc(x, y, radius, 0, Math.PI * 2, true);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
266 this.ctx.fill();
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
267
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
268 var bg = '<li class="bg parity' + parity + '"></li>';
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
269 var left = (this.columns + 1) * this.bg_height;
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
270 var nstyle = 'padding-left: ' + left + 'px;';
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
271 var item = revlink.replace(/_STYLE/, nstyle);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
272 item = item.replace(/_PARITY/, 'parity' + parity);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
273 item = item.replace(/_NODEID/, cur[0]);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
274 item = item.replace(/_NODEID/, cur[0]);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
275 item = item.replace(/_DESC/, cur[3]);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
276 item = item.replace(/_USER/, cur[4]);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
277 item = item.replace(/_DATE/, cur[5]);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
278
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
279 var tagspan = '';
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
280 if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) {
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
281 tagspan = '<span class="logtags">';
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
282 if (cur[6][1]) {
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
283 tagspan += '<span class="branchhead" title="' + cur[6][0] + '">';
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
284 tagspan += cur[6][0] + '</span> ';
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
285 } else if (!cur[6][1] && cur[6][0] != 'default') {
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
286 tagspan += '<span class="branchname" title="' + cur[6][0] + '">';
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
287 tagspan += cur[6][0] + '</span> ';
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
288 }
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
289 if (cur[7].length) {
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
290 for (var t in cur[7]) {
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
291 var tag = cur[7][t];
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
292 tagspan += '<span class="tag">' + tag + '</span> ';
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
293 }
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
294 }
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
295 tagspan += '</span>';
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
296 }
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
297
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
298 item = item.replace(/_TAGS/, tagspan);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
299 return [bg, item];
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
300
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
301 }
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
302
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
303 graph.render(data);
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
304
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
305 // stop hiding script -->
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
306 </script>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
307
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
308 <div class="navigate">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
309 <a href="/graph/-1?revcount=30">less</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
310 <a href="/graph/-1?revcount=120">more</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
311 | rev -1: <a href="/graph/000000000000">(0)</a> <a href="/graph/tip">tip</a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
312 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
313
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
314 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
315 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
316
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
317
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
318
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
319 </body>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
320 </html>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
321
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
322 $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file')
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
323 200 Script output follows
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
324
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
325 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
326 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
327 <head>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
328 <link rel="icon" href="/static/hgicon.png" type="image/png" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
329 <meta name="robots" content="index, nofollow" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
330 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
331
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
332 <title>test: 000000000000 /</title>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
333 </head>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
334 <body>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
335
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
336 <div class="container">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
337 <div class="menu">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
338 <div class="logo">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
339 <a href="http://mercurial.selenic.com/">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
340 <img src="/static/hglogo.png" alt="mercurial" /></a>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
341 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
342 <ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
343 <li><a href="/shortlog/000000000000">log</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
344 <li><a href="/graph/000000000000">graph</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
345 <li><a href="/tags">tags</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
346 <li><a href="/branches">branches</a></li>
12666
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
347 <li><a href="/help">help</a></li>
12436
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
348 </ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
349 <ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
350 <li><a href="/rev/000000000000">changeset</a></li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
351 <li class="active">browse</li>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
352 </ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
353 <ul>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
354
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
355 </ul>
12666
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
356 <ul>
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
357 <li><a href="/help">help</a></li>
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 12436
diff changeset
358 </ul>
12436
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
359 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
360
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
361 <div class="main">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
362 <h2><a href="/">test</a></h2>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
363 <h3>directory / @ -1:000000000000 <span class="tag">tip</span> </h3>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
364
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
365 <form class="search" action="/log">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
366
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
367 <p><input name="rev" id="search1" type="text" size="30" /></p>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
368 <div id="hint">find changesets by author, revision,
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
369 files, or words in the commit message</div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
370 </form>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
371
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
372 <table class="bigtable">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
373 <tr>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
374 <th class="name">name</th>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
375 <th class="size">size</th>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
376 <th class="permissions">permissions</th>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
377 </tr>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
378 <tr class="fileline parity0">
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
379 <td class="name"><a href="/file/000000000000/">[up]</a></td>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
380 <td class="size"></td>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
381 <td class="permissions">drwxr-xr-x</td>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
382 </tr>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
383
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
384
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
385 </table>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
386 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
387 </div>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
388
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
389
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
390 </body>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
391 </html>
b52ce78de84d tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents: 7565
diff changeset
392