author | Jun Wu <quark@fb.com> |
Sun, 26 Mar 2017 20:48:00 -0700 | |
changeset 31682 | 07d62fa518a4 |
parent 30765 | eb7de21b15be |
child 32758 | cba4461aa0a0 |
permissions | -rw-r--r-- |
22046
7a9cbb315d84
tests: replace exit 80 with #require
Matt Mackall <mpm@selenic.com>
parents:
20253
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:
15071
diff
changeset
|
2 |
|
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
3 |
Some tests for hgweb in an empty repository |
7565
5f162f61e479
hgweb: fix problems with empty repositories
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
4 |
|
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
5 |
$ hg init test |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
6 |
$ cd test |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
7 |
$ 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
|
8 |
$ cat hg.pid >> $DAEMON_PIDS |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24952
diff
changeset
|
9 |
$ (get-with-headers.py localhost:$HGPORT 'shortlog') |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
10 |
200 Script output follows |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
11 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
12 |
<!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
|
13 |
<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
|
14 |
<head> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
15 |
<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
|
16 |
<meta name="robots" content="index, nofollow" /> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
17 |
<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:
13622
diff
changeset
|
18 |
<script type="text/javascript" src="/static/mercurial.js"></script> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
19 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
20 |
<title>test: log</title> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
21 |
<link rel="alternate" type="application/atom+xml" |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
22 |
href="/atom-log" title="Atom feed for test" /> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
23 |
<link rel="alternate" type="application/rss+xml" |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
24 |
href="/rss-log" title="RSS feed for test" /> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
25 |
</head> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
26 |
<body> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
27 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
28 |
<div class="container"> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
29 |
<div class="menu"> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
30 |
<div class="logo"> |
26421
4b0fc75f9403
urls: bulk-change primary website URLs
Matt Mackall <mpm@selenic.com>
parents:
25617
diff
changeset
|
31 |
<a href="https://mercurial-scm.org/"> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
32 |
<img src="/static/hglogo.png" alt="mercurial" /></a> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
33 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
34 |
<ul> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
35 |
<li class="active">log</li> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
36 |
<li><a href="/graph/tip">graph</a></li> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
37 |
<li><a href="/tags">tags</a></li> |
13597
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
13596
diff
changeset
|
38 |
<li><a href="/bookmarks">bookmarks</a></li> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
39 |
<li><a href="/branches">branches</a></li> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
40 |
</ul> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
41 |
<ul> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
42 |
<li><a href="/rev/tip">changeset</a></li> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
43 |
<li><a href="/file/tip">browse</a></li> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
44 |
</ul> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
45 |
<ul> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
46 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
47 |
</ul> |
12666
ead4e21f49f1
web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents:
12436
diff
changeset
|
48 |
<ul> |
ead4e21f49f1
web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents:
12436
diff
changeset
|
49 |
<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
|
50 |
</ul> |
18200
b31266671918
hgweb: add (Atom) subscribe link to the main paper template pages
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17580
diff
changeset
|
51 |
<div class="atom-logo"> |
b31266671918
hgweb: add (Atom) subscribe link to the main paper template pages
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17580
diff
changeset
|
52 |
<a href="/atom-log" title="subscribe to atom feed"> |
23830
c4f6fc4eb01e
hgweb: close <img> elements
Anton Shestakov <engored@ya.ru>
parents:
23829
diff
changeset
|
53 |
<img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> |
18200
b31266671918
hgweb: add (Atom) subscribe link to the main paper template pages
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17580
diff
changeset
|
54 |
</a> |
b31266671918
hgweb: add (Atom) subscribe link to the main paper template pages
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17580
diff
changeset
|
55 |
</div> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
56 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
57 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
58 |
<div class="main"> |
18264
d6ebdbdd70a5
tests: update hgweb tests to include breadcrumbs
Bryan O'Sullivan <bryano@fb.com>
parents:
18200
diff
changeset
|
59 |
<h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
60 |
<h3>log</h3> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
61 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
62 |
<form class="search" action="/log"> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
63 |
|
19396
afc23eddc324
hgweb: show current search query in the input field
Alexander Plavin <me@aplavin.ru>
parents:
19093
diff
changeset
|
64 |
<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
|
65 |
<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
|
66 |
number or hash, or <a href="/help/revsets">revset expression</a>.</div> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
67 |
</form> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
68 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
69 |
<div class="navigate"> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
70 |
<a href="/shortlog/tip?revcount=30">less</a> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
71 |
<a href="/shortlog/tip?revcount=120">more</a> |
19093
6f27efc7db23
hgweb: fix empty navigation detection
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
18264
diff
changeset
|
72 |
| rev -1: |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
73 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
74 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
75 |
<table class="bigtable"> |
24054
fdf7794be41d
hgweb: replace implicit <tbody> with explicit <thead> where appropriate
Anton Shestakov <engored@ya.ru>
parents:
24041
diff
changeset
|
76 |
<thead> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
77 |
<tr> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
78 |
<th class="age">age</th> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
79 |
<th class="author">author</th> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
80 |
<th class="description">description</th> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
81 |
</tr> |
24054
fdf7794be41d
hgweb: replace implicit <tbody> with explicit <thead> where appropriate
Anton Shestakov <engored@ya.ru>
parents:
24041
diff
changeset
|
82 |
</thead> |
19452
6f5556454edd
hgweb: make stripes in log and search with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19447
diff
changeset
|
83 |
<tbody class="stripes2"> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
84 |
|
19452
6f5556454edd
hgweb: make stripes in log and search with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19447
diff
changeset
|
85 |
</tbody> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
86 |
</table> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
87 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
88 |
<div class="navigate"> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
89 |
<a href="/shortlog/tip?revcount=30">less</a> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
90 |
<a href="/shortlog/tip?revcount=120">more</a> |
19093
6f27efc7db23
hgweb: fix empty navigation detection
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
18264
diff
changeset
|
91 |
| rev -1: |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
92 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
93 |
|
19747
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
94 |
<script type="text/javascript"> |
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
95 |
ajaxScrollInit( |
19781
74564c90026b
hgweb: make infinite scroll handling more generic and extensible
Alexander Plavin <alexander@plav.in>
parents:
19747
diff
changeset
|
96 |
'/shortlog/%next%', |
19747
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
97 |
'', <!-- NEXTHASH |
19781
74564c90026b
hgweb: make infinite scroll handling more generic and extensible
Alexander Plavin <alexander@plav.in>
parents:
19747
diff
changeset
|
98 |
function (htmlText, previousVal) { |
74564c90026b
hgweb: make infinite scroll handling more generic and extensible
Alexander Plavin <alexander@plav.in>
parents:
19747
diff
changeset
|
99 |
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); |
74564c90026b
hgweb: make infinite scroll handling more generic and extensible
Alexander Plavin <alexander@plav.in>
parents:
19747
diff
changeset
|
100 |
return m ? m[1] : null; |
74564c90026b
hgweb: make infinite scroll handling more generic and extensible
Alexander Plavin <alexander@plav.in>
parents:
19747
diff
changeset
|
101 |
}, |
24952
169d2470d283
hgweb: bring back infinite scroll in shortlog of paper style
Yuya Nishihara <yuya@tcha.org>
parents:
24054
diff
changeset
|
102 |
'.bigtable > tbody', |
19747
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
103 |
'<tr class="%class%">\ |
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
104 |
<td colspan="3" style="text-align: center;">%text%</td>\ |
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
105 |
</tr>' |
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
106 |
); |
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
107 |
</script> |
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
108 |
|
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
109 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
110 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
111 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
112 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
113 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
114 |
</body> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
115 |
</html> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
116 |
|
19093
6f27efc7db23
hgweb: fix empty navigation detection
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
18264
diff
changeset
|
117 |
$ echo babar |
6f27efc7db23
hgweb: fix empty navigation detection
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
18264
diff
changeset
|
118 |
babar |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24952
diff
changeset
|
119 |
$ (get-with-headers.py localhost:$HGPORT 'log') |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
120 |
200 Script output follows |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
121 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
122 |
<!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
|
123 |
<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
|
124 |
<head> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
125 |
<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
|
126 |
<meta name="robots" content="index, nofollow" /> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
127 |
<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:
13622
diff
changeset
|
128 |
<script type="text/javascript" src="/static/mercurial.js"></script> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
129 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
130 |
<title>test: log</title> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
131 |
<link rel="alternate" type="application/atom+xml" |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
132 |
href="/atom-log" title="Atom feed for test" /> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
133 |
<link rel="alternate" type="application/rss+xml" |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
134 |
href="/rss-log" title="RSS feed for test" /> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
135 |
</head> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
136 |
<body> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
137 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
138 |
<div class="container"> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
139 |
<div class="menu"> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
140 |
<div class="logo"> |
26421
4b0fc75f9403
urls: bulk-change primary website URLs
Matt Mackall <mpm@selenic.com>
parents:
25617
diff
changeset
|
141 |
<a href="https://mercurial-scm.org/"> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
142 |
<img src="/static/hglogo.png" alt="mercurial" /></a> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
143 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
144 |
<ul> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
145 |
<li class="active">log</li> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
146 |
<li><a href="/graph/tip">graph</a></li> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
147 |
<li><a href="/tags">tags</a></li> |
13597
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
13596
diff
changeset
|
148 |
<li><a href="/bookmarks">bookmarks</a></li> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
149 |
<li><a href="/branches">branches</a></li> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
150 |
</ul> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
151 |
<ul> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
152 |
<li><a href="/rev/tip">changeset</a></li> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
153 |
<li><a href="/file/tip">browse</a></li> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
154 |
</ul> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
155 |
<ul> |
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 |
</ul> |
12666
ead4e21f49f1
web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents:
12436
diff
changeset
|
158 |
<ul> |
ead4e21f49f1
web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents:
12436
diff
changeset
|
159 |
<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
|
160 |
</ul> |
18200
b31266671918
hgweb: add (Atom) subscribe link to the main paper template pages
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17580
diff
changeset
|
161 |
<div class="atom-logo"> |
b31266671918
hgweb: add (Atom) subscribe link to the main paper template pages
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17580
diff
changeset
|
162 |
<a href="/atom-log" title="subscribe to atom feed"> |
23830
c4f6fc4eb01e
hgweb: close <img> elements
Anton Shestakov <engored@ya.ru>
parents:
23829
diff
changeset
|
163 |
<img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> |
18200
b31266671918
hgweb: add (Atom) subscribe link to the main paper template pages
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17580
diff
changeset
|
164 |
</a> |
b31266671918
hgweb: add (Atom) subscribe link to the main paper template pages
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17580
diff
changeset
|
165 |
</div> |
12436
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 |
<div class="main"> |
18264
d6ebdbdd70a5
tests: update hgweb tests to include breadcrumbs
Bryan O'Sullivan <bryano@fb.com>
parents:
18200
diff
changeset
|
169 |
<h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
170 |
<h3>log</h3> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
171 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
172 |
<form class="search" action="/log"> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
173 |
|
19396
afc23eddc324
hgweb: show current search query in the input field
Alexander Plavin <me@aplavin.ru>
parents:
19093
diff
changeset
|
174 |
<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
|
175 |
<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
|
176 |
number or hash, or <a href="/help/revsets">revset expression</a>.</div> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
177 |
</form> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
178 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
179 |
<div class="navigate"> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
180 |
<a href="/shortlog/tip?revcount=5">less</a> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
181 |
<a href="/shortlog/tip?revcount=20">more</a> |
19093
6f27efc7db23
hgweb: fix empty navigation detection
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
18264
diff
changeset
|
182 |
| rev -1: |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
183 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
184 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
185 |
<table class="bigtable"> |
24054
fdf7794be41d
hgweb: replace implicit <tbody> with explicit <thead> where appropriate
Anton Shestakov <engored@ya.ru>
parents:
24041
diff
changeset
|
186 |
<thead> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
187 |
<tr> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
188 |
<th class="age">age</th> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
189 |
<th class="author">author</th> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
190 |
<th class="description">description</th> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
191 |
</tr> |
24054
fdf7794be41d
hgweb: replace implicit <tbody> with explicit <thead> where appropriate
Anton Shestakov <engored@ya.ru>
parents:
24041
diff
changeset
|
192 |
</thead> |
19452
6f5556454edd
hgweb: make stripes in log and search with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19447
diff
changeset
|
193 |
<tbody class="stripes2"> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
194 |
|
19452
6f5556454edd
hgweb: make stripes in log and search with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19447
diff
changeset
|
195 |
</tbody> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
196 |
</table> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
197 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
198 |
<div class="navigate"> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
199 |
<a href="/shortlog/tip?revcount=5">less</a> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
200 |
<a href="/shortlog/tip?revcount=20">more</a> |
19093
6f27efc7db23
hgweb: fix empty navigation detection
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
18264
diff
changeset
|
201 |
| rev -1: |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
202 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
203 |
|
19747
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
204 |
<script type="text/javascript"> |
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
205 |
ajaxScrollInit( |
19781
74564c90026b
hgweb: make infinite scroll handling more generic and extensible
Alexander Plavin <alexander@plav.in>
parents:
19747
diff
changeset
|
206 |
'/shortlog/%next%', |
19747
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
207 |
'', <!-- NEXTHASH |
19781
74564c90026b
hgweb: make infinite scroll handling more generic and extensible
Alexander Plavin <alexander@plav.in>
parents:
19747
diff
changeset
|
208 |
function (htmlText, previousVal) { |
74564c90026b
hgweb: make infinite scroll handling more generic and extensible
Alexander Plavin <alexander@plav.in>
parents:
19747
diff
changeset
|
209 |
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); |
74564c90026b
hgweb: make infinite scroll handling more generic and extensible
Alexander Plavin <alexander@plav.in>
parents:
19747
diff
changeset
|
210 |
return m ? m[1] : null; |
74564c90026b
hgweb: make infinite scroll handling more generic and extensible
Alexander Plavin <alexander@plav.in>
parents:
19747
diff
changeset
|
211 |
}, |
24952
169d2470d283
hgweb: bring back infinite scroll in shortlog of paper style
Yuya Nishihara <yuya@tcha.org>
parents:
24054
diff
changeset
|
212 |
'.bigtable > tbody', |
19747
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
213 |
'<tr class="%class%">\ |
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
214 |
<td colspan="3" style="text-align: center;">%text%</td>\ |
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
215 |
</tr>' |
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
216 |
); |
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
217 |
</script> |
da3808bcfbfa
paper: call ajaxScrollInit in shortlog
Alexander Plavin <alexander@plav.in>
parents:
19453
diff
changeset
|
218 |
|
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
219 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
220 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
221 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
222 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
223 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
224 |
</body> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
225 |
</html> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
226 |
|
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24952
diff
changeset
|
227 |
$ (get-with-headers.py localhost:$HGPORT 'graph') |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
228 |
200 Script output follows |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
229 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
230 |
<!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
|
231 |
<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
|
232 |
<head> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
233 |
<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
|
234 |
<meta name="robots" content="index, nofollow" /> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
235 |
<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:
13622
diff
changeset
|
236 |
<script type="text/javascript" src="/static/mercurial.js"></script> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
237 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
238 |
<title>test: revision graph</title> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
239 |
<link rel="alternate" type="application/atom+xml" |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
240 |
href="/atom-log" title="Atom feed for test: log" /> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
241 |
<link rel="alternate" type="application/rss+xml" |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
242 |
href="/rss-log" title="RSS feed for test: log" /> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
243 |
<!--[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
|
244 |
</head> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
245 |
<body> |
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 |
<div class="container"> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
248 |
<div class="menu"> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
249 |
<div class="logo"> |
26421
4b0fc75f9403
urls: bulk-change primary website URLs
Matt Mackall <mpm@selenic.com>
parents:
25617
diff
changeset
|
250 |
<a href="https://mercurial-scm.org/"> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
251 |
<img src="/static/hglogo.png" alt="mercurial" /></a> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
252 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
253 |
<ul> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
254 |
<li><a href="/shortlog/tip">log</a></li> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
255 |
<li class="active">graph</li> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
256 |
<li><a href="/tags">tags</a></li> |
13597
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
13596
diff
changeset
|
257 |
<li><a href="/bookmarks">bookmarks</a></li> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
258 |
<li><a href="/branches">branches</a></li> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
259 |
</ul> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
260 |
<ul> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
261 |
<li><a href="/rev/tip">changeset</a></li> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
262 |
<li><a href="/file/tip">browse</a></li> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
263 |
</ul> |
12666
ead4e21f49f1
web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents:
12436
diff
changeset
|
264 |
<ul> |
ead4e21f49f1
web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents:
12436
diff
changeset
|
265 |
<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
|
266 |
</ul> |
18200
b31266671918
hgweb: add (Atom) subscribe link to the main paper template pages
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17580
diff
changeset
|
267 |
<div class="atom-logo"> |
b31266671918
hgweb: add (Atom) subscribe link to the main paper template pages
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17580
diff
changeset
|
268 |
<a href="/atom-log" title="subscribe to atom feed"> |
23830
c4f6fc4eb01e
hgweb: close <img> elements
Anton Shestakov <engored@ya.ru>
parents:
23829
diff
changeset
|
269 |
<img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed" /> |
18200
b31266671918
hgweb: add (Atom) subscribe link to the main paper template pages
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17580
diff
changeset
|
270 |
</a> |
b31266671918
hgweb: add (Atom) subscribe link to the main paper template pages
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17580
diff
changeset
|
271 |
</div> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
272 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
273 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
274 |
<div class="main"> |
18264
d6ebdbdd70a5
tests: update hgweb tests to include breadcrumbs
Bryan O'Sullivan <bryano@fb.com>
parents:
18200
diff
changeset
|
275 |
<h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
276 |
<h3>graph</h3> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
277 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
278 |
<form class="search" action="/log"> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
279 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
280 |
<p><input name="rev" id="search1" type="text" size="30" /></p> |
19796
544848ef65f2
paper: edit search hint to include new feature description
Alexander Plavin <alexander@plav.in>
parents:
19795
diff
changeset
|
281 |
<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
|
282 |
number or hash, or <a href="/help/revsets">revset expression</a>.</div> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
283 |
</form> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
284 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
285 |
<div class="navigate"> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
286 |
<a href="/graph/tip?revcount=30">less</a> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
287 |
<a href="/graph/tip?revcount=120">more</a> |
19093
6f27efc7db23
hgweb: fix empty navigation detection
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
18264
diff
changeset
|
288 |
| rev -1: |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
289 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
290 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
291 |
<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
|
292 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
293 |
<div id="wrapper"> |
19453
ece3b329ad25
hgweb: make stripes in graph with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19452
diff
changeset
|
294 |
<ul id="nodebgs" class="stripes2"></ul> |
27913
91ac8cb79125
templates: use canvaswidth instead of fixed width for canvas (issue2683)
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
26421
diff
changeset
|
295 |
<canvas id="graph" width="39" height="12"></canvas> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
296 |
<ul id="graphnodes"></ul> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
297 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
298 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
299 |
<script type="text/javascript"> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
300 |
<!-- hide script content |
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 |
var data = []; |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
303 |
var graph = new Graph(); |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
304 |
graph.scale(39); |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
305 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
306 |
graph.vertex = function(x, y, color, parity, cur) { |
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 |
this.ctx.beginPath(); |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
309 |
color = this.setColor(color, 0.25, 0.75); |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
310 |
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
|
311 |
this.ctx.fill(); |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
312 |
|
19453
ece3b329ad25
hgweb: make stripes in graph with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19452
diff
changeset
|
313 |
var bg = '<li class="bg"></li>'; |
17580
ffe3630cb243
hgweb: fix incorrect graph padding calculation (issue3626)
Tim Delaney <timothy.c.delaney@gmail.com>
parents:
17421
diff
changeset
|
314 |
var left = (this.bg_height - this.box_size) + (this.columns + 1) * this.box_size; |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
315 |
var nstyle = 'padding-left: ' + left + 'px;'; |
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 |
var tagspan = ''; |
15071
ad6eb7d7dbca
hgweb: properly check for bookmarks when drawing graph
Matt Mackall <mpm@selenic.com>
parents:
14046
diff
changeset
|
318 |
if (cur[7].length || cur[8].length || (cur[6][0] != 'default' || cur[6][1])) { |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
319 |
tagspan = '<span class="logtags">'; |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
320 |
if (cur[6][1]) { |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
321 |
tagspan += '<span class="branchhead" title="' + cur[6][0] + '">'; |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
322 |
tagspan += cur[6][0] + '</span> '; |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
323 |
} else if (!cur[6][1] && cur[6][0] != 'default') { |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
324 |
tagspan += '<span class="branchname" title="' + cur[6][0] + '">'; |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
325 |
tagspan += cur[6][0] + '</span> '; |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
326 |
} |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
327 |
if (cur[7].length) { |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
328 |
for (var t in cur[7]) { |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
329 |
var tag = cur[7][t]; |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
330 |
tagspan += '<span class="tag">' + tag + '</span> '; |
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 |
} |
13596
270f57d35525
hgweb: add display of bookmarks for changelog and changeset
Alexander Solovyov <alexander@solovyov.net>
parents:
12846
diff
changeset
|
333 |
if (cur[8].length) { |
270f57d35525
hgweb: add display of bookmarks for changelog and changeset
Alexander Solovyov <alexander@solovyov.net>
parents:
12846
diff
changeset
|
334 |
for (var b in cur[8]) { |
270f57d35525
hgweb: add display of bookmarks for changelog and changeset
Alexander Solovyov <alexander@solovyov.net>
parents:
12846
diff
changeset
|
335 |
var bookmark = cur[8][b]; |
270f57d35525
hgweb: add display of bookmarks for changelog and changeset
Alexander Solovyov <alexander@solovyov.net>
parents:
12846
diff
changeset
|
336 |
tagspan += '<span class="tag">' + bookmark + '</span> '; |
270f57d35525
hgweb: add display of bookmarks for changelog and changeset
Alexander Solovyov <alexander@solovyov.net>
parents:
12846
diff
changeset
|
337 |
} |
270f57d35525
hgweb: add display of bookmarks for changelog and changeset
Alexander Solovyov <alexander@solovyov.net>
parents:
12846
diff
changeset
|
338 |
} |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
339 |
tagspan += '</span>'; |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
340 |
} |
17421
3eb85477c0d9
hgweb: avoid bad $$ processing in graph (issue3601)
Mads Kiilerich <mads@kiilerich.com>
parents:
17017
diff
changeset
|
341 |
|
3eb85477c0d9
hgweb: avoid bad $$ processing in graph (issue3601)
Mads Kiilerich <mads@kiilerich.com>
parents:
17017
diff
changeset
|
342 |
var item = '<li style="' + nstyle + '"><span class="desc">'; |
3eb85477c0d9
hgweb: avoid bad $$ processing in graph (issue3601)
Mads Kiilerich <mads@kiilerich.com>
parents:
17017
diff
changeset
|
343 |
item += '<a href="/rev/' + cur[0] + '" title="' + cur[0] + '">' + cur[3] + '</a>'; |
3eb85477c0d9
hgweb: avoid bad $$ processing in graph (issue3601)
Mads Kiilerich <mads@kiilerich.com>
parents:
17017
diff
changeset
|
344 |
item += '</span>' + tagspan + '<span class="info">' + cur[5] + ', by ' + cur[4] + '</span></li>'; |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
345 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
346 |
return [bg, item]; |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
347 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
348 |
} |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
349 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
350 |
graph.render(data); |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
351 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
352 |
// stop hiding script --> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
353 |
</script> |
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 |
<div class="navigate"> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
356 |
<a href="/graph/tip?revcount=30">less</a> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
357 |
<a href="/graph/tip?revcount=120">more</a> |
19093
6f27efc7db23
hgweb: fix empty navigation detection
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents:
18264
diff
changeset
|
358 |
| rev -1: |
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 |
|
19783
1c2a309bba4f
paper: add infinite scrolling to graph by calling ajaxScrollInit at the page
Alexander Plavin <alexander@plav.in>
parents:
19781
diff
changeset
|
361 |
<script type="text/javascript"> |
1c2a309bba4f
paper: add infinite scrolling to graph by calling ajaxScrollInit at the page
Alexander Plavin <alexander@plav.in>
parents:
19781
diff
changeset
|
362 |
ajaxScrollInit( |
20253
43cfad930d38
hgweb: avoid invalid infinity scroll request when overwritten web.style
Takumi IINO <trot.thunder@gmail.com>
parents:
19796
diff
changeset
|
363 |
'/graph/-1?revcount=%next%&style=paper', |
19783
1c2a309bba4f
paper: add infinite scrolling to graph by calling ajaxScrollInit at the page
Alexander Plavin <alexander@plav.in>
parents:
19781
diff
changeset
|
364 |
60+60, |
1c2a309bba4f
paper: add infinite scrolling to graph by calling ajaxScrollInit at the page
Alexander Plavin <alexander@plav.in>
parents:
19781
diff
changeset
|
365 |
function (htmlText, previousVal) { return previousVal + 60; }, |
1c2a309bba4f
paper: add infinite scrolling to graph by calling ajaxScrollInit at the page
Alexander Plavin <alexander@plav.in>
parents:
19781
diff
changeset
|
366 |
'#wrapper', |
1c2a309bba4f
paper: add infinite scrolling to graph by calling ajaxScrollInit at the page
Alexander Plavin <alexander@plav.in>
parents:
19781
diff
changeset
|
367 |
'<div class="%class%" style="text-align: center;">%text%</div>', |
1c2a309bba4f
paper: add infinite scrolling to graph by calling ajaxScrollInit at the page
Alexander Plavin <alexander@plav.in>
parents:
19781
diff
changeset
|
368 |
'graph' |
1c2a309bba4f
paper: add infinite scrolling to graph by calling ajaxScrollInit at the page
Alexander Plavin <alexander@plav.in>
parents:
19781
diff
changeset
|
369 |
); |
1c2a309bba4f
paper: add infinite scrolling to graph by calling ajaxScrollInit at the page
Alexander Plavin <alexander@plav.in>
parents:
19781
diff
changeset
|
370 |
</script> |
1c2a309bba4f
paper: add infinite scrolling to graph by calling ajaxScrollInit at the page
Alexander Plavin <alexander@plav.in>
parents:
19781
diff
changeset
|
371 |
|
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
372 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
373 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
374 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
375 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
376 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
377 |
</body> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
378 |
</html> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
379 |
|
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
24952
diff
changeset
|
380 |
$ (get-with-headers.py localhost:$HGPORT 'file') |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
381 |
200 Script output follows |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
382 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
383 |
<!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
|
384 |
<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
|
385 |
<head> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
386 |
<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
|
387 |
<meta name="robots" content="index, nofollow" /> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
388 |
<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:
13622
diff
changeset
|
389 |
<script type="text/javascript" src="/static/mercurial.js"></script> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
390 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
391 |
<title>test: 000000000000 /</title> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
392 |
</head> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
393 |
<body> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
394 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
395 |
<div class="container"> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
396 |
<div class="menu"> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
397 |
<div class="logo"> |
26421
4b0fc75f9403
urls: bulk-change primary website URLs
Matt Mackall <mpm@selenic.com>
parents:
25617
diff
changeset
|
398 |
<a href="https://mercurial-scm.org/"> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
399 |
<img src="/static/hglogo.png" alt="mercurial" /></a> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
400 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
401 |
<ul> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
402 |
<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:
25472
diff
changeset
|
403 |
<li><a href="/graph/tip">graph</a></li> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
404 |
<li><a href="/tags">tags</a></li> |
13597
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
13596
diff
changeset
|
405 |
<li><a href="/bookmarks">bookmarks</a></li> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
406 |
<li><a href="/branches">branches</a></li> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
407 |
</ul> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
408 |
<ul> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
409 |
<li><a href="/rev/tip">changeset</a></li> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
410 |
<li class="active">browse</li> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
411 |
</ul> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
412 |
<ul> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
413 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
414 |
</ul> |
12666
ead4e21f49f1
web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents:
12436
diff
changeset
|
415 |
<ul> |
ead4e21f49f1
web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents:
12436
diff
changeset
|
416 |
<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
|
417 |
</ul> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
418 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
419 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
420 |
<div class="main"> |
18264
d6ebdbdd70a5
tests: update hgweb tests to include breadcrumbs
Bryan O'Sullivan <bryano@fb.com>
parents:
18200
diff
changeset
|
421 |
<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
|
422 |
<h3> |
63be46407a50
hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
423 |
directory / @ -1:<a href="/rev/000000000000">000000000000</a> |
63be46407a50
hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
424 |
<span class="tag">tip</span> |
63be46407a50
hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
425 |
</h3> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
426 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
427 |
<form class="search" action="/log"> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
428 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
429 |
<p><input name="rev" id="search1" type="text" size="30" /></p> |
19796
544848ef65f2
paper: edit search hint to include new feature description
Alexander Plavin <alexander@plav.in>
parents:
19795
diff
changeset
|
430 |
<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
|
431 |
number or hash, or <a href="/help/revsets">revset expression</a>.</div> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
432 |
</form> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
433 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
434 |
<table class="bigtable"> |
24054
fdf7794be41d
hgweb: replace implicit <tbody> with explicit <thead> where appropriate
Anton Shestakov <engored@ya.ru>
parents:
24041
diff
changeset
|
435 |
<thead> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
436 |
<tr> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
437 |
<th class="name">name</th> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
438 |
<th class="size">size</th> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
439 |
<th class="permissions">permissions</th> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
440 |
</tr> |
24054
fdf7794be41d
hgweb: replace implicit <tbody> with explicit <thead> where appropriate
Anton Shestakov <engored@ya.ru>
parents:
24041
diff
changeset
|
441 |
</thead> |
19447
182942b38d24
hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19396
diff
changeset
|
442 |
<tbody class="stripes2"> |
182942b38d24
hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19396
diff
changeset
|
443 |
<tr class="fileline"> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25472
diff
changeset
|
444 |
<td class="name"><a href="/file/tip/">[up]</a></td> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
445 |
<td class="size"></td> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
446 |
<td class="permissions">drwxr-xr-x</td> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
447 |
</tr> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
448 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
449 |
|
19447
182942b38d24
hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19396
diff
changeset
|
450 |
</tbody> |
12436
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
451 |
</table> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
452 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
453 |
</div> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
454 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
455 |
|
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
456 |
</body> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
457 |
</html> |
b52ce78de84d
tests: unify test-hgweb-empty
Matt Mackall <mpm@selenic.com>
parents:
7565
diff
changeset
|
458 |
|
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
16137
diff
changeset
|
459 |
|
28710
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
460 |
$ (get-with-headers.py localhost:$HGPORT 'atom-bookmarks') |
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
461 |
200 Script output follows |
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
462 |
|
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
463 |
<?xml version="1.0" encoding="ascii"?> |
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
464 |
<feed xmlns="http://www.w3.org/2005/Atom"> |
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
465 |
<id>http://*:$HGPORT/</id> (glob) |
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
466 |
<link rel="self" href="http://*:$HGPORT/atom-bookmarks"/> (glob) |
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
467 |
<link rel="alternate" href="http://*:$HGPORT/bookmarks"/> (glob) |
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
468 |
<title>test: bookmarks</title> |
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
469 |
<summary>test bookmark history</summary> |
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
470 |
<author><name>Mercurial SCM</name></author> |
28712
80e922479891
hgweb: generate last change date for an empty atom-bookmarks feed (issue5022)
Anton Shestakov <av6@dwimlabs.net>
parents:
28710
diff
changeset
|
471 |
<updated>1970-01-01T00:00:00+00:00</updated> |
28710
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
472 |
|
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
473 |
|
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
474 |
</feed> |
ca0c0ca30c62
hgweb: sort bookmarks early
Anton Shestakov <av6@dwimlabs.net>
parents:
27913
diff
changeset
|
475 |
|
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
16137
diff
changeset
|
476 |
$ cd .. |