Mercurial > hg
annotate tests/test-highlight.t @ 41078:46e0563c67db
merge with stable
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 30 Dec 2018 17:31:57 +0900 |
parents | 3b84ef904aea |
children | 9d39671adadb |
rev | line source |
---|---|
22046
7a9cbb315d84
tests: replace exit 80 with #require
Matt Mackall <mpm@selenic.com>
parents:
21120
diff
changeset
|
1 #require pygments serve |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
2 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
3 $ cat <<EOF >> $HGRCPATH |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
4 > [extensions] |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
5 > highlight = |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
6 > [web] |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
7 > pygments_style = friendly |
26249
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
8 > highlightfiles = **.py and size('<100KB') |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
9 > EOF |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
10 $ hg init test |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
11 $ cd test |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
12 |
27996
4301b99126ef
test-highlight: factor out function that normalizes pygments output
Yuya Nishihara <yuya@tcha.org>
parents:
27995
diff
changeset
|
13 $ filterhtml () { |
4301b99126ef
test-highlight: factor out function that normalizes pygments output
Yuya Nishihara <yuya@tcha.org>
parents:
27995
diff
changeset
|
14 > sed -e "s/class=\"k\"/class=\"kn\"/g" \ |
27997
bc2dd19b9534
test-highlight: add normalization rule for Pygments 2.1
Yuya Nishihara <yuya@tcha.org>
parents:
27996
diff
changeset
|
15 > -e "s/class=\"mf\"/class=\"mi\"/g" \ |
30853
312b861924c8
test-highlight: add normalization rule for Pygments 2.2
Yuya Nishihara <yuya@tcha.org>
parents:
30765
diff
changeset
|
16 > -e "s/class=\"vm\"/class=\"n\"/g" \ |
27997
bc2dd19b9534
test-highlight: add normalization rule for Pygments 2.1
Yuya Nishihara <yuya@tcha.org>
parents:
27996
diff
changeset
|
17 > -e "s/class=\"\([cs]\)[h12]\"/class=\"\1\"/g" |
27996
4301b99126ef
test-highlight: factor out function that normalizes pygments output
Yuya Nishihara <yuya@tcha.org>
parents:
27995
diff
changeset
|
18 > } |
4301b99126ef
test-highlight: factor out function that normalizes pygments output
Yuya Nishihara <yuya@tcha.org>
parents:
27995
diff
changeset
|
19 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
20 create random Python file to exercise Pygments |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
21 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
22 $ cat <<EOF > primes.py |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
23 > """Fun with generators. Corresponding Haskell implementation: |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
24 > |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
25 > primes = 2 : sieve [3, 5..] |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
26 > where sieve (p:ns) = p : sieve [n | n <- ns, mod n p /= 0] |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
27 > """ |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
28 > |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
29 > import itertools |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
30 > |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
31 > def primes(): |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
32 > """Generate all primes.""" |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
33 > def sieve(ns): |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
34 > p = ns.next() |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
35 > # It is important to yield *here* in order to stop the |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
36 > # infinite recursion. |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
37 > yield p |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
38 > ns = itertools.ifilter(lambda n: n % p != 0, ns) |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
39 > for n in sieve(ns): |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
40 > yield n |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
41 > |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
42 > odds = itertools.ifilter(lambda i: i % 2 == 1, itertools.count()) |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
43 > dropwhile = itertools.dropwhile |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
44 > return itertools.chain([2], sieve(dropwhile(lambda n: n < 3, odds))) |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
45 > |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
46 > if __name__ == "__main__": |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
47 > import sys |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
48 > try: |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
49 > n = int(sys.argv[1]) |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
50 > except (ValueError, IndexError): |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
51 > n = 10 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
52 > p = primes() |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
53 > print("The first %d primes: %s" % (n, list(itertools.islice(p, n)))) |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
54 > EOF |
25867
a74e9806d17d
highlight: produce correct markup when there's a blank line just before EOF
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
55 $ echo >> primes.py # to test html markup with an empty line just before EOF |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
56 $ hg ci -Ama |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
57 adding primes.py |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8083
diff
changeset
|
58 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
59 hg serve |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8083
diff
changeset
|
60 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
61 $ hg serve -p $HGPORT -d -n test --pid-file=hg.pid -A access.log -E errors.log |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
62 $ cat hg.pid >> $DAEMON_PIDS |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8083
diff
changeset
|
63 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
64 hgweb filerevision, html |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8083
diff
changeset
|
65 |
27996
4301b99126ef
test-highlight: factor out function that normalizes pygments output
Yuya Nishihara <yuya@tcha.org>
parents:
27995
diff
changeset
|
66 $ (get-with-headers.py localhost:$HGPORT 'file/tip/primes.py') | filterhtml |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
67 200 Script output follows |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
68 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
69 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
70 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
71 <head> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
72 <link rel="icon" href="/static/hgicon.png" type="image/png" /> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
73 <meta name="robots" content="index, nofollow" /> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
74 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> |
14053
139fb11210bb
fix broken tests
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
13618
diff
changeset
|
75 <script type="text/javascript" src="/static/mercurial.js"></script> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
76 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
77 <link rel="stylesheet" href="/highlightcss" type="text/css" /> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
78 <title>test: 687f2d169546 primes.py</title> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
79 </head> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
80 <body> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
81 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
82 <div class="container"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
83 <div class="menu"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
84 <div class="logo"> |
26421
4b0fc75f9403
urls: bulk-change primary website URLs
Matt Mackall <mpm@selenic.com>
parents:
26249
diff
changeset
|
85 <a href="https://mercurial-scm.org/"> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
86 <img src="/static/hglogo.png" alt="mercurial" /></a> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
87 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
88 <ul> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
89 <li><a href="/shortlog/tip">log</a></li> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
90 <li><a href="/graph/tip">graph</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
91 <li><a href="/tags">tags</a></li> |
21120
9ea9e94c7492
hgweb: fix lack of "bookmarks" link in "/file" page of "paper" style
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents:
20598
diff
changeset
|
92 <li><a href="/bookmarks">bookmarks</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
93 <li><a href="/branches">branches</a></li> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
94 </ul> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
95 <ul> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
96 <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:
25474
diff
changeset
|
97 <li><a href="/file/tip/">browse</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
98 </ul> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
99 <ul> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
100 <li class="active">file</li> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
101 <li><a href="/file/tip/primes.py">latest</a></li> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
102 <li><a href="/diff/tip/primes.py">diff</a></li> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
103 <li><a href="/comparison/tip/primes.py">comparison</a></li> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
104 <li><a href="/annotate/tip/primes.py">annotate</a></li> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
105 <li><a href="/log/tip/primes.py">file log</a></li> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
106 <li><a href="/raw-file/tip/primes.py">raw</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
107 </ul> |
12680
d664547ef540
hgweb: add help link to templates missed in ead4e21f49f1
Augie Fackler <durin42@gmail.com>
parents:
12445
diff
changeset
|
108 <ul> |
d664547ef540
hgweb: add help link to templates missed in ead4e21f49f1
Augie Fackler <durin42@gmail.com>
parents:
12445
diff
changeset
|
109 <li><a href="/help">help</a></li> |
d664547ef540
hgweb: add help link to templates missed in ead4e21f49f1
Augie Fackler <durin42@gmail.com>
parents:
12445
diff
changeset
|
110 </ul> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
111 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
112 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
113 <div class="main"> |
18291
5db16424142c
tests: fix up test-highlight for breadcrumb changes
Matt Mackall <mpm@selenic.com>
parents:
17466
diff
changeset
|
114 <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
|
115 <h3> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
116 view primes.py @ 0:<a href="/rev/687f2d169546">687f2d169546</a> |
35065
a1de4ffaa7a8
hgweb: show commit phase if it's not public
Anton Shestakov <av6@dwimlabs.net>
parents:
35064
diff
changeset
|
117 <span class="phase">draft</span> <span class="branchhead">default</span> <span class="tag">tip</span> |
25617
63be46407a50
hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
118 </h3> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
119 |
32758
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32070
diff
changeset
|
120 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
121 <form class="search" action="/log"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
122 |
32758
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32070
diff
changeset
|
123 <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
|
124 <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
|
125 number or hash, or <a href="/help/revsets">revset expression</a>.</div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
126 </form> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
127 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
128 <div class="description">a</div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
129 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
130 <table id="changesetEntry"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
131 <tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
132 <th class="author">author</th> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
133 <td class="author">test</td> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
134 </tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
135 <tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
136 <th class="date">date</th> |
15375
fe9d36a6853e
hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents:
15243
diff
changeset
|
137 <td class="date age">Thu, 01 Jan 1970 00:00:00 +0000</td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
138 </tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
139 <tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
140 <th class="author">parents</th> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
141 <td class="author"></td> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
142 </tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
143 <tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
144 <th class="author">children</th> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
145 <td class="author"></td> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
146 </tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
147 </table> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
148 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
149 <div class="overflow"> |
37830
82ae4f471254
paper: add href="#" to links with click handlers
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37829
diff
changeset
|
150 <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="#">on</a></div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
151 <div class="sourcefirst"> line source</div> |
32995
7c82bfd55d47
hgweb: parameterize the tag name of elements holding followlines selection
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32938
diff
changeset
|
152 <pre class="sourcelines stripes4 wrap bottomline" |
7c82bfd55d47
hgweb: parameterize the tag name of elements holding followlines selection
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32938
diff
changeset
|
153 data-logurl="/log/tip/primes.py" |
7c82bfd55d47
hgweb: parameterize the tag name of elements holding followlines selection
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32938
diff
changeset
|
154 data-selectabletag="SPAN" |
7c82bfd55d47
hgweb: parameterize the tag name of elements holding followlines selection
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32938
diff
changeset
|
155 data-ishead="1"> |
7c82bfd55d47
hgweb: parameterize the tag name of elements holding followlines selection
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32938
diff
changeset
|
156 |
32936
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
157 <span id="l1"><span class="sd">"""Fun with generators. Corresponding Haskell implementation:</span></span><a href="#l1"></a> |
19387
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
158 <span id="l2"></span><a href="#l2"></a> |
32936
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
159 <span id="l3"><span class="sd">primes = 2 : sieve [3, 5..]</span></span><a href="#l3"></a> |
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
160 <span id="l4"><span class="sd"> where sieve (p:ns) = p : sieve [n | n <- ns, mod n p /= 0]</span></span><a href="#l4"></a> |
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
161 <span id="l5"><span class="sd">"""</span></span><a href="#l5"></a> |
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
162 <span id="l6"></span><a href="#l6"></a> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
163 <span id="l7"><span class="kn">import</span> <span class="nn">itertools</span></span><a href="#l7"></a> |
19387
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
164 <span id="l8"></span><a href="#l8"></a> |
32936
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
165 <span id="l9"><span class="kn">def</span> <span class="nf">primes</span><span class="p">():</span></span><a href="#l9"></a> |
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
166 <span id="l10"> <span class="sd">"""Generate all primes."""</span></span><a href="#l10"></a> |
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
167 <span id="l11"> <span class="kn">def</span> <span class="nf">sieve</span><span class="p">(</span><span class="n">ns</span><span class="p">):</span></span><a href="#l11"></a> |
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
168 <span id="l12"> <span class="n">p</span> <span class="o">=</span> <span class="n">ns</span><span class="o">.</span><span class="n">next</span><span class="p">()</span></span><a href="#l12"></a> |
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
169 <span id="l13"> <span class="c"># It is important to yield *here* in order to stop the</span></span><a href="#l13"></a> |
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
170 <span id="l14"> <span class="c"># infinite recursion.</span></span><a href="#l14"></a> |
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
171 <span id="l15"> <span class="kn">yield</span> <span class="n">p</span></span><a href="#l15"></a> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
172 <span id="l16"> <span class="n">ns</span> <span class="o">=</span> <span class="n">itertools</span><span class="o">.</span><span class="n">ifilter</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">n</span> <span class="o">%</span> <span class="n">p</span> <span class="o">!=</span> <span class="mi">0</span><span class="p">,</span> <span class="n">ns</span><span class="p">)</span></span><a href="#l16"></a> |
32936
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
173 <span id="l17"> <span class="kn">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">sieve</span><span class="p">(</span><span class="n">ns</span><span class="p">):</span></span><a href="#l17"></a> |
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
174 <span id="l18"> <span class="kn">yield</span> <span class="n">n</span></span><a href="#l18"></a> |
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
175 <span id="l19"></span><a href="#l19"></a> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
176 <span id="l20"> <span class="n">odds</span> <span class="o">=</span> <span class="n">itertools</span><span class="o">.</span><span class="n">ifilter</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">i</span><span class="p">:</span> <span class="n">i</span> <span class="o">%</span> <span class="mi">2</span> <span class="o">==</span> <span class="mi">1</span><span class="p">,</span> <span class="n">itertools</span><span class="o">.</span><span class="n">count</span><span class="p">())</span></span><a href="#l20"></a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
177 <span id="l21"> <span class="n">dropwhile</span> <span class="o">=</span> <span class="n">itertools</span><span class="o">.</span><span class="n">dropwhile</span></span><a href="#l21"></a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
178 <span id="l22"> <span class="kn">return</span> <span class="n">itertools</span><span class="o">.</span><span class="n">chain</span><span class="p">([</span><span class="mi">2</span><span class="p">],</span> <span class="n">sieve</span><span class="p">(</span><span class="n">dropwhile</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">n</span> <span class="o"><</span> <span class="mi">3</span><span class="p">,</span> <span class="n">odds</span><span class="p">)))</span></span><a href="#l22"></a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
179 <span id="l23"></span><a href="#l23"></a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
180 <span id="l24"><span class="kn">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">"__main__"</span><span class="p">:</span></span><a href="#l24"></a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
181 <span id="l25"> <span class="kn">import</span> <span class="nn">sys</span></span><a href="#l25"></a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
182 <span id="l26"> <span class="kn">try</span><span class="p">:</span></span><a href="#l26"></a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
183 <span id="l27"> <span class="n">n</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span></span><a href="#l27"></a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
184 <span id="l28"> <span class="kn">except</span> <span class="p">(</span><span class="ne">ValueError</span><span class="p">,</span> <span class="ne">IndexError</span><span class="p">):</span></span><a href="#l28"></a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
185 <span id="l29"> <span class="n">n</span> <span class="o">=</span> <span class="mi">10</span></span><a href="#l29"></a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
186 <span id="l30"> <span class="n">p</span> <span class="o">=</span> <span class="n">primes</span><span class="p">()</span></span><a href="#l30"></a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
187 <span id="l31"> <span class="kn">print</span><span class="p">(</span><span class="s">"The first </span><span class="si">%d</span><span class="s"> primes: </span><span class="si">%s</span><span class="s">"</span> <span class="o">%</span> <span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="nb">list</span><span class="p">(</span><span class="n">itertools</span><span class="o">.</span><span class="n">islice</span><span class="p">(</span><span class="n">p</span><span class="p">,</span> <span class="n">n</span><span class="p">))))</span></span><a href="#l31"></a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
188 <span id="l32"></span><a href="#l32"></a> |
32995
7c82bfd55d47
hgweb: parameterize the tag name of elements holding followlines selection
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32938
diff
changeset
|
189 </pre> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
190 </div> |
31758
04ec317b8128
hgweb: expose a followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
30853
diff
changeset
|
191 |
31785
d15c9feb4399
hgweb: rename linerangelog.js as followlines.js
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
31758
diff
changeset
|
192 <script type="text/javascript" src="/static/followlines.js"></script> |
31758
04ec317b8128
hgweb: expose a followlines UI in filerevision view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
30853
diff
changeset
|
193 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
194 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
195 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
196 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
197 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
198 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
199 </body> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
200 </html> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
201 |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8083
diff
changeset
|
202 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
203 hgweb fileannotate, html |
6987
d09e813b21e3
highlight: only pygmentize for HTML mimetypes
Rocco Rutte <pdmef@gmx.net>
parents:
6863
diff
changeset
|
204 |
27996
4301b99126ef
test-highlight: factor out function that normalizes pygments output
Yuya Nishihara <yuya@tcha.org>
parents:
27995
diff
changeset
|
205 $ (get-with-headers.py localhost:$HGPORT 'annotate/tip/primes.py') | filterhtml |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
206 200 Script output follows |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
207 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
208 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
209 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
210 <head> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
211 <link rel="icon" href="/static/hgicon.png" type="image/png" /> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
212 <meta name="robots" content="index, nofollow" /> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
213 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> |
14053
139fb11210bb
fix broken tests
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
13618
diff
changeset
|
214 <script type="text/javascript" src="/static/mercurial.js"></script> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
215 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
216 <link rel="stylesheet" href="/highlightcss" type="text/css" /> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
217 <title>test: primes.py annotate</title> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
218 </head> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
219 <body> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
220 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
221 <div class="container"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
222 <div class="menu"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
223 <div class="logo"> |
26421
4b0fc75f9403
urls: bulk-change primary website URLs
Matt Mackall <mpm@selenic.com>
parents:
26249
diff
changeset
|
224 <a href="https://mercurial-scm.org/"> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
225 <img src="/static/hglogo.png" alt="mercurial" /></a> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
226 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
227 <ul> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
228 <li><a href="/shortlog/tip">log</a></li> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
229 <li><a href="/graph/tip">graph</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
230 <li><a href="/tags">tags</a></li> |
13618
b217619a6cf5
test-highlight: fix test output (introduced by 2151703e7f84)
Patrick Mezard <pmezard@gmail.com>
parents:
12943
diff
changeset
|
231 <li><a href="/bookmarks">bookmarks</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
232 <li><a href="/branches">branches</a></li> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
233 </ul> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
234 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
235 <ul> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
236 <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:
25474
diff
changeset
|
237 <li><a href="/file/tip/">browse</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
238 </ul> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
239 <ul> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
240 <li><a href="/file/tip/primes.py">file</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
241 <li><a href="/file/tip/primes.py">latest</a></li> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
242 <li><a href="/diff/tip/primes.py">diff</a></li> |
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
243 <li><a href="/comparison/tip/primes.py">comparison</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
244 <li class="active">annotate</li> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
245 <li><a href="/log/tip/primes.py">file log</a></li> |
30708
011122b3b1c4
hgweb: link to raw-file on annotation page (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29572
diff
changeset
|
246 <li><a href="/raw-file/tip/primes.py">raw</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
247 </ul> |
12680
d664547ef540
hgweb: add help link to templates missed in ead4e21f49f1
Augie Fackler <durin42@gmail.com>
parents:
12445
diff
changeset
|
248 <ul> |
d664547ef540
hgweb: add help link to templates missed in ead4e21f49f1
Augie Fackler <durin42@gmail.com>
parents:
12445
diff
changeset
|
249 <li><a href="/help">help</a></li> |
d664547ef540
hgweb: add help link to templates missed in ead4e21f49f1
Augie Fackler <durin42@gmail.com>
parents:
12445
diff
changeset
|
250 </ul> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
251 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
252 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
253 <div class="main"> |
18291
5db16424142c
tests: fix up test-highlight for breadcrumb changes
Matt Mackall <mpm@selenic.com>
parents:
17466
diff
changeset
|
254 <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
|
255 <h3> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
256 annotate primes.py @ 0:<a href="/rev/687f2d169546">687f2d169546</a> |
35065
a1de4ffaa7a8
hgweb: show commit phase if it's not public
Anton Shestakov <av6@dwimlabs.net>
parents:
35064
diff
changeset
|
257 <span class="phase">draft</span> <span class="branchhead">default</span> <span class="tag">tip</span> |
25617
63be46407a50
hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
258 </h3> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
259 |
32758
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32070
diff
changeset
|
260 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
261 <form class="search" action="/log"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
262 |
32758
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
32070
diff
changeset
|
263 <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
|
264 <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
|
265 number or hash, or <a href="/help/revsets">revset expression</a>.</div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
266 </form> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
267 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
268 <div class="description">a</div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
269 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
270 <table id="changesetEntry"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
271 <tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
272 <th class="author">author</th> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
273 <td class="author">test</td> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
274 </tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
275 <tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
276 <th class="date">date</th> |
15375
fe9d36a6853e
hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents:
15243
diff
changeset
|
277 <td class="date age">Thu, 01 Jan 1970 00:00:00 +0000</td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
278 </tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
279 <tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
280 <th class="author">parents</th> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
281 <td class="author"></td> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
282 </tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
283 <tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
284 <th class="author">children</th> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
285 <td class="author"></td> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
286 </tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
287 </table> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
288 |
34391
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
289 |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
290 <form id="diffopts-form" |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
291 data-ignorews="0" |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
292 data-ignorewsamount="0" |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
293 data-ignorewseol="0" |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
294 data-ignoreblanklines="0"> |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
295 <span>Ignore whitespace changes - </span> |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
296 <span>Everywhere:</span> |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
297 <input id="ignorews-checkbox" type="checkbox" /> |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
298 <span>Within whitespace:</span> |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
299 <input id="ignorewsamount-checkbox" type="checkbox" /> |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
300 <span>At end of lines:</span> |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
301 <input id="ignorewseol-checkbox" type="checkbox" /> |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
302 </form> |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
303 |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
304 <script type="text/javascript"> |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
305 renderDiffOptsForm(); |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
306 </script> |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33717
diff
changeset
|
307 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
308 <div class="overflow"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
309 <table class="bigtable"> |
24054
fdf7794be41d
hgweb: replace implicit <tbody> with explicit <thead> where appropriate
Anton Shestakov <engored@ya.ru>
parents:
22947
diff
changeset
|
310 <thead> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
311 <tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
312 <th class="annotate">rev</th> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
313 <th class="line"> line source</th> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
314 </tr> |
24054
fdf7794be41d
hgweb: replace implicit <tbody> with explicit <thead> where appropriate
Anton Shestakov <engored@ya.ru>
parents:
22947
diff
changeset
|
315 </thead> |
32996
1c97df5e3b46
hgweb: plug followlines action in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32995
diff
changeset
|
316 <tbody class="stripes2 sourcelines" |
1c97df5e3b46
hgweb: plug followlines action in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32995
diff
changeset
|
317 data-logurl="/log/tip/primes.py" |
1c97df5e3b46
hgweb: plug followlines action in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32995
diff
changeset
|
318 data-selectabletag="TR" |
1c97df5e3b46
hgweb: plug followlines action in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32995
diff
changeset
|
319 data-ishead="1"> |
19449
9f471af285a9
hgweb: make stripes in file annotate view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19431
diff
changeset
|
320 |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
321 <tr id="l1" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
322 <td class="annotate parity0"> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
323 <a href="/annotate/687f2d169546/primes.py#l1"> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
324 0 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
325 </a> |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
326 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
327 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
328 <a href="/annotate/687f2d169546/primes.py#l1"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
329 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
330 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
331 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
332 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
333 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
334 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
335 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
336 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
337 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
338 <td class="source followlines-btn-parent"><a href="#l1"> 1</a> <span class="sd">"""Fun with generators. Corresponding Haskell implementation:</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
339 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
340 <tr id="l2" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
341 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
342 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
343 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
344 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
345 <a href="/annotate/687f2d169546/primes.py#l2"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
346 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
347 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
348 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
349 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
350 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
351 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
352 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
353 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
354 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
355 <td class="source followlines-btn-parent"><a href="#l2"> 2</a> </td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
356 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
357 <tr id="l3" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
358 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
359 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
360 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
361 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
362 <a href="/annotate/687f2d169546/primes.py#l3"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
363 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
364 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
365 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
366 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
367 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
368 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
369 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
370 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
371 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
372 <td class="source followlines-btn-parent"><a href="#l3"> 3</a> <span class="sd">primes = 2 : sieve [3, 5..]</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
373 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
374 <tr id="l4" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
375 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
376 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
377 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
378 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
379 <a href="/annotate/687f2d169546/primes.py#l4"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
380 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
381 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
382 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
383 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
384 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
385 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
386 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
387 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
388 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
389 <td class="source followlines-btn-parent"><a href="#l4"> 4</a> <span class="sd"> where sieve (p:ns) = p : sieve [n | n <- ns, mod n p /= 0]</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
390 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
391 <tr id="l5" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
392 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
393 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
394 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
395 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
396 <a href="/annotate/687f2d169546/primes.py#l5"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
397 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
398 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
399 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
400 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
401 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
402 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
403 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
404 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
405 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
406 <td class="source followlines-btn-parent"><a href="#l5"> 5</a> <span class="sd">"""</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
407 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
408 <tr id="l6" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
409 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
410 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
411 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
412 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
413 <a href="/annotate/687f2d169546/primes.py#l6"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
414 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
415 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
416 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
417 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
418 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
419 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
420 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
421 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
422 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
423 <td class="source followlines-btn-parent"><a href="#l6"> 6</a> </td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
424 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
425 <tr id="l7" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
426 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
427 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
428 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
429 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
430 <a href="/annotate/687f2d169546/primes.py#l7"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
431 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
432 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
433 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
434 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
435 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
436 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
437 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
438 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
439 </td> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
440 <td class="source followlines-btn-parent"><a href="#l7"> 7</a> <span class="kn">import</span> <span class="nn">itertools</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
441 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
442 <tr id="l8" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
443 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
444 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
445 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
446 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
447 <a href="/annotate/687f2d169546/primes.py#l8"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
448 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
449 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
450 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
451 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
452 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
453 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
454 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
455 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
456 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
457 <td class="source followlines-btn-parent"><a href="#l8"> 8</a> </td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
458 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
459 <tr id="l9" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
460 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
461 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
462 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
463 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
464 <a href="/annotate/687f2d169546/primes.py#l9"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
465 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
466 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
467 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
468 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
469 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
470 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
471 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
472 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
473 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
474 <td class="source followlines-btn-parent"><a href="#l9"> 9</a> <span class="kn">def</span> <span class="nf">primes</span><span class="p">():</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
475 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
476 <tr id="l10" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
477 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
478 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
479 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
480 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
481 <a href="/annotate/687f2d169546/primes.py#l10"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
482 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
483 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
484 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
485 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
486 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
487 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
488 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
489 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
490 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
491 <td class="source followlines-btn-parent"><a href="#l10"> 10</a> <span class="sd">"""Generate all primes."""</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
492 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
493 <tr id="l11" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
494 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
495 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
496 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
497 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
498 <a href="/annotate/687f2d169546/primes.py#l11"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
499 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
500 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
501 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
502 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
503 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
504 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
505 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
506 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
507 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
508 <td class="source followlines-btn-parent"><a href="#l11"> 11</a> <span class="kn">def</span> <span class="nf">sieve</span><span class="p">(</span><span class="n">ns</span><span class="p">):</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
509 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
510 <tr id="l12" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
511 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
512 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
513 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
514 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
515 <a href="/annotate/687f2d169546/primes.py#l12"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
516 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
517 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
518 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
519 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
520 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
521 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
522 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
523 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
524 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
525 <td class="source followlines-btn-parent"><a href="#l12"> 12</a> <span class="n">p</span> <span class="o">=</span> <span class="n">ns</span><span class="o">.</span><span class="n">next</span><span class="p">()</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
526 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
527 <tr id="l13" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
528 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
529 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
530 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
531 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
532 <a href="/annotate/687f2d169546/primes.py#l13"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
533 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
534 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
535 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
536 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
537 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
538 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
539 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
540 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
541 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
542 <td class="source followlines-btn-parent"><a href="#l13"> 13</a> <span class="c"># It is important to yield *here* in order to stop the</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
543 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
544 <tr id="l14" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
545 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
546 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
547 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
548 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
549 <a href="/annotate/687f2d169546/primes.py#l14"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
550 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
551 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
552 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
553 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
554 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
555 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
556 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
557 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
558 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
559 <td class="source followlines-btn-parent"><a href="#l14"> 14</a> <span class="c"># infinite recursion.</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
560 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
561 <tr id="l15" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
562 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
563 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
564 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
565 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
566 <a href="/annotate/687f2d169546/primes.py#l15"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
567 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
568 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
569 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
570 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
571 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
572 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
573 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
574 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
575 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
576 <td class="source followlines-btn-parent"><a href="#l15"> 15</a> <span class="kn">yield</span> <span class="n">p</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
577 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
578 <tr id="l16" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
579 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
580 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
581 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
582 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
583 <a href="/annotate/687f2d169546/primes.py#l16"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
584 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
585 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
586 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
587 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
588 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
589 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
590 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
591 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
592 </td> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
593 <td class="source followlines-btn-parent"><a href="#l16"> 16</a> <span class="n">ns</span> <span class="o">=</span> <span class="n">itertools</span><span class="o">.</span><span class="n">ifilter</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">n</span> <span class="o">%</span> <span class="n">p</span> <span class="o">!=</span> <span class="mi">0</span><span class="p">,</span> <span class="n">ns</span><span class="p">)</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
594 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
595 <tr id="l17" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
596 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
597 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
598 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
599 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
600 <a href="/annotate/687f2d169546/primes.py#l17"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
601 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
602 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
603 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
604 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
605 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
606 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
607 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
608 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
609 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
610 <td class="source followlines-btn-parent"><a href="#l17"> 17</a> <span class="kn">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">sieve</span><span class="p">(</span><span class="n">ns</span><span class="p">):</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
611 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
612 <tr id="l18" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
613 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
614 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
615 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
616 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
617 <a href="/annotate/687f2d169546/primes.py#l18"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
618 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
619 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
620 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
621 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
622 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
623 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
624 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
625 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
626 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
627 <td class="source followlines-btn-parent"><a href="#l18"> 18</a> <span class="kn">yield</span> <span class="n">n</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
628 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
629 <tr id="l19" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
630 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
631 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
632 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
633 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
634 <a href="/annotate/687f2d169546/primes.py#l19"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
635 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
636 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
637 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
638 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
639 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
640 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
641 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
642 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
643 </td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32996
diff
changeset
|
644 <td class="source followlines-btn-parent"><a href="#l19"> 19</a> </td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
645 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
646 <tr id="l20" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
647 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
648 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
649 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
650 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
651 <a href="/annotate/687f2d169546/primes.py#l20"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
652 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
653 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
654 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
655 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
656 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
657 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
658 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
659 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
660 </td> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
661 <td class="source followlines-btn-parent"><a href="#l20"> 20</a> <span class="n">odds</span> <span class="o">=</span> <span class="n">itertools</span><span class="o">.</span><span class="n">ifilter</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">i</span><span class="p">:</span> <span class="n">i</span> <span class="o">%</span> <span class="mi">2</span> <span class="o">==</span> <span class="mi">1</span><span class="p">,</span> <span class="n">itertools</span><span class="o">.</span><span class="n">count</span><span class="p">())</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
662 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
663 <tr id="l21" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
664 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
665 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
666 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
667 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
668 <a href="/annotate/687f2d169546/primes.py#l21"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
669 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
670 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
671 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
672 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
673 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
674 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
675 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
676 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
677 </td> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
678 <td class="source followlines-btn-parent"><a href="#l21"> 21</a> <span class="n">dropwhile</span> <span class="o">=</span> <span class="n">itertools</span><span class="o">.</span><span class="n">dropwhile</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
679 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
680 <tr id="l22" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
681 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
682 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
683 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
684 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
685 <a href="/annotate/687f2d169546/primes.py#l22"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
686 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
687 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
688 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
689 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
690 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
691 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
692 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
693 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
694 </td> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
695 <td class="source followlines-btn-parent"><a href="#l22"> 22</a> <span class="kn">return</span> <span class="n">itertools</span><span class="o">.</span><span class="n">chain</span><span class="p">([</span><span class="mi">2</span><span class="p">],</span> <span class="n">sieve</span><span class="p">(</span><span class="n">dropwhile</span><span class="p">(</span><span class="kn">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">n</span> <span class="o"><</span> <span class="mi">3</span><span class="p">,</span> <span class="n">odds</span><span class="p">)))</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
696 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
697 <tr id="l23" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
698 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
699 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
700 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
701 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
702 <a href="/annotate/687f2d169546/primes.py#l23"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
703 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
704 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
705 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
706 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
707 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
708 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
709 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
710 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
711 </td> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
712 <td class="source followlines-btn-parent"><a href="#l23"> 23</a> </td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
713 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
714 <tr id="l24" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
715 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
716 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
717 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
718 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
719 <a href="/annotate/687f2d169546/primes.py#l24"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
720 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
721 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
722 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
723 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
724 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
725 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
726 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
727 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
728 </td> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
729 <td class="source followlines-btn-parent"><a href="#l24"> 24</a> <span class="kn">if</span> <span class="n">__name__</span> <span class="o">==</span> <span class="s">"__main__"</span><span class="p">:</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
730 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
731 <tr id="l25" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
732 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
733 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
734 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
735 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
736 <a href="/annotate/687f2d169546/primes.py#l25"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
737 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
738 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
739 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
740 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
741 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
742 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
743 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
744 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
745 </td> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
746 <td class="source followlines-btn-parent"><a href="#l25"> 25</a> <span class="kn">import</span> <span class="nn">sys</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
747 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
748 <tr id="l26" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
749 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
750 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
751 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
752 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
753 <a href="/annotate/687f2d169546/primes.py#l26"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
754 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
755 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
756 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
757 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
758 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
759 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
760 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
761 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
762 </td> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
763 <td class="source followlines-btn-parent"><a href="#l26"> 26</a> <span class="kn">try</span><span class="p">:</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
764 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
765 <tr id="l27" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
766 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
767 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
768 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
769 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
770 <a href="/annotate/687f2d169546/primes.py#l27"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
771 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
772 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
773 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
774 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
775 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
776 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
777 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
778 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
779 </td> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
780 <td class="source followlines-btn-parent"><a href="#l27"> 27</a> <span class="n">n</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
781 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
782 <tr id="l28" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
783 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
784 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
785 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
786 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
787 <a href="/annotate/687f2d169546/primes.py#l28"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
788 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
789 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
790 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
791 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
792 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
793 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
794 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
795 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
796 </td> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
797 <td class="source followlines-btn-parent"><a href="#l28"> 28</a> <span class="kn">except</span> <span class="p">(</span><span class="ne">ValueError</span><span class="p">,</span> <span class="ne">IndexError</span><span class="p">):</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
798 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
799 <tr id="l29" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
800 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
801 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
802 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
803 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
804 <a href="/annotate/687f2d169546/primes.py#l29"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
805 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
806 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
807 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
808 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
809 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
810 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
811 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
812 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
813 </td> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
814 <td class="source followlines-btn-parent"><a href="#l29"> 29</a> <span class="n">n</span> <span class="o">=</span> <span class="mi">10</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
815 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
816 <tr id="l30" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
817 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
818 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
819 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
820 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
821 <a href="/annotate/687f2d169546/primes.py#l30"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
822 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
823 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
824 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
825 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
826 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
827 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
828 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
829 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
830 </td> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
831 <td class="source followlines-btn-parent"><a href="#l30"> 30</a> <span class="n">p</span> <span class="o">=</span> <span class="n">primes</span><span class="p">()</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
832 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
833 <tr id="l31" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
834 <td class="annotate parity0"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
835 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
836 <div class="annotate-info"> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
837 <div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
838 <a href="/annotate/687f2d169546/primes.py#l31"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
839 687f2d169546</a> |
29525
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
840 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
841 </div> |
29524
19f96077c61b
hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29523
diff
changeset
|
842 <div><em>test</em></div> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
843 <div>parents: </div> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
844 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
845 <a href="/rev/687f2d169546">changeset</a> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
846 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
847 </td> |
40370
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
848 <td class="source followlines-btn-parent"><a href="#l31"> 31</a> <span class="kn">print</span><span class="p">(</span><span class="s">"The first </span><span class="si">%d</span><span class="s"> primes: </span><span class="si">%s</span><span class="s">"</span> <span class="o">%</span> <span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="nb">list</span><span class="p">(</span><span class="n">itertools</span><span class="o">.</span><span class="n">islice</span><span class="p">(</span><span class="n">p</span><span class="p">,</span> <span class="n">n</span><span class="p">))))</span></td> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
849 </tr> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
850 <tr id="l32" class="thisrev"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
851 <td class="annotate parity0"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
852 |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
853 <div class="annotate-info"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
854 <div> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
855 <a href="/annotate/687f2d169546/primes.py#l32"> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
856 687f2d169546</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
857 a |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
858 </div> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
859 <div><em>test</em></div> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
860 <div>parents: </div> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
861 <a href="/diff/687f2d169546/primes.py">diff</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
862 <a href="/rev/687f2d169546">changeset</a> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
863 </div> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
864 </td> |
3b84ef904aea
py3: fix module imports in test-highlight.t
Matt Harbison <matt_harbison@yahoo.com>
parents:
39707
diff
changeset
|
865 <td class="source followlines-btn-parent"><a href="#l32"> 32</a> </td> |
25867
a74e9806d17d
highlight: produce correct markup when there's a blank line just before EOF
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
866 </tr> |
19449
9f471af285a9
hgweb: make stripes in file annotate view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19431
diff
changeset
|
867 </tbody> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
868 </table> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
869 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
870 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
871 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
872 |
32996
1c97df5e3b46
hgweb: plug followlines action in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32995
diff
changeset
|
873 <script type="text/javascript" src="/static/followlines.js"></script> |
1c97df5e3b46
hgweb: plug followlines action in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32995
diff
changeset
|
874 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
875 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
876 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
877 </body> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
878 </html> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
879 |
6485
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
880 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
881 hgweb fileannotate, raw |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
882 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
25136
diff
changeset
|
883 $ (get-with-headers.py localhost:$HGPORT 'annotate/tip/primes.py?style=raw') \ |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
884 > | sed "s/test@//" > a |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
885 $ echo "200 Script output follows" > b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
886 $ echo "" >> b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
887 $ echo "" >> b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
888 $ hg annotate "primes.py" >> b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
889 $ echo "" >> b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
890 $ echo "" >> b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
891 $ echo "" >> b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
892 $ echo "" >> b |
20598
e57e2da803aa
solaris: diff -u emits "No differences encountered"
Danek Duvall <danek.duvall@oracle.com>
parents:
19796
diff
changeset
|
893 $ cmp b a || diff -u b a |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
894 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
895 hgweb filerevision, raw |
6485
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
896 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
25136
diff
changeset
|
897 $ (get-with-headers.py localhost:$HGPORT 'file/tip/primes.py?style=raw') \ |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
898 > > a |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
899 $ echo "200 Script output follows" > b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
900 $ echo "" >> b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
901 $ hg cat primes.py >> b |
20598
e57e2da803aa
solaris: diff -u emits "No differences encountered"
Danek Duvall <danek.duvall@oracle.com>
parents:
19796
diff
changeset
|
902 $ cmp b a || diff -u b a |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
903 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
904 hgweb highlightcss friendly |
6485
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
905 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
25136
diff
changeset
|
906 $ get-with-headers.py localhost:$HGPORT 'highlightcss' > out |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
907 $ head -n 4 out |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
908 200 Script output follows |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
909 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
910 /* pygments_style = friendly */ |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
911 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
912 $ rm out |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
913 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
914 errors encountered |
6485
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
915 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
916 $ cat errors.log |
25474
8c14f87bd0ae
tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents:
25472
diff
changeset
|
917 $ killdaemons.py |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
918 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
919 Change the pygments style |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
920 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
921 $ cat > .hg/hgrc <<EOF |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
922 > [web] |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
923 > pygments_style = fruity |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
924 > EOF |
9424
799373ff2554
highlight: fixes garbled text in non-UTF-8 environment
Yuya Nishihara <yuya@tcha.org>
parents:
8485
diff
changeset
|
925 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
926 hg serve again |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
927 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
928 $ hg serve -p $HGPORT -d -n test --pid-file=hg.pid -A access.log -E errors.log |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
929 $ cat hg.pid >> $DAEMON_PIDS |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
930 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
931 hgweb highlightcss fruity |
9424
799373ff2554
highlight: fixes garbled text in non-UTF-8 environment
Yuya Nishihara <yuya@tcha.org>
parents:
8485
diff
changeset
|
932 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
25136
diff
changeset
|
933 $ get-with-headers.py localhost:$HGPORT 'highlightcss' > out |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
934 $ head -n 4 out |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
935 200 Script output follows |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
936 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
937 /* pygments_style = fruity */ |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
938 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
939 $ rm out |
9424
799373ff2554
highlight: fixes garbled text in non-UTF-8 environment
Yuya Nishihara <yuya@tcha.org>
parents:
8485
diff
changeset
|
940 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
941 errors encountered |
9424
799373ff2554
highlight: fixes garbled text in non-UTF-8 environment
Yuya Nishihara <yuya@tcha.org>
parents:
8485
diff
changeset
|
942 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
943 $ cat errors.log |
26249
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
944 $ killdaemons.py |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
945 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
946 only highlight C source files |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
947 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
948 $ cat > .hg/hgrc <<EOF |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
949 > [web] |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
950 > highlightfiles = **.c |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
951 > EOF |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
952 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
953 hg serve again |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
954 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
955 $ hg serve -p $HGPORT -d -n test --pid-file=hg.pid -A access.log -E errors.log |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
956 $ cat hg.pid >> $DAEMON_PIDS |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
957 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
958 test that fileset in highlightfiles works and primes.py is not highlighted |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
959 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
960 $ get-with-headers.py localhost:$HGPORT 'file/tip/primes.py' | grep 'id="l11"' |
32936
edbd60e31217
tests: remove #! from primes.py in test-highlight.t
Augie Fackler <augie@google.com>
parents:
32758
diff
changeset
|
961 <span id="l11"> def sieve(ns):</span><a href="#l11"></a> |
26249
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
962 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
963 errors encountered |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
964 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
965 $ cat errors.log |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
966 $ cd .. |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
967 $ hg init eucjp |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
968 $ cd eucjp |
39707
5abc47d4ca6b
tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents:
37830
diff
changeset
|
969 $ "$PYTHON" -c 'print("\265\376")' >> eucjp.txt # Japanese kanji "Kyo" |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
970 $ hg ci -Ama |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
971 adding eucjp.txt |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
972 $ hgserveget () { |
25474
8c14f87bd0ae
tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents:
25472
diff
changeset
|
973 > killdaemons.py |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
974 > echo % HGENCODING="$1" hg serve |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
975 > HGENCODING="$1" hg serve -p $HGPORT -d -n test --pid-file=hg.pid -E errors.log |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
976 > cat hg.pid >> $DAEMON_PIDS |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
977 > |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
978 > echo % hgweb filerevision, html |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
25136
diff
changeset
|
979 > get-with-headers.py localhost:$HGPORT "file/tip/$2" \ |
12943
7439ea4146f8
tests: use (esc) instead of other kinds of string escaping
Mads Kiilerich <mads@kiilerich.com>
parents:
12680
diff
changeset
|
980 > | grep '<div class="parity0 source">' |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
981 > echo % errors encountered |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
982 > cat errors.log |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
983 > } |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
984 $ hgserveget euc-jp eucjp.txt |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
985 % HGENCODING=euc-jp hg serve |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
986 % hgweb filerevision, html |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
987 % errors encountered |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
988 $ hgserveget utf-8 eucjp.txt |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
989 % HGENCODING=utf-8 hg serve |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
990 % hgweb filerevision, html |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
991 % errors encountered |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
992 $ hgserveget us-ascii eucjp.txt |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
993 % HGENCODING=us-ascii hg serve |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
994 % hgweb filerevision, html |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
995 % errors encountered |
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
16577
diff
changeset
|
996 |
26680
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
997 We attempt to highlight unknown files by default |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
998 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
999 $ killdaemons.py |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1000 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1001 $ cat > .hg/hgrc << EOF |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1002 > [web] |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1003 > highlightfiles = ** |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1004 > EOF |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1005 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1006 $ cat > unknownfile << EOF |
32938
b6776b34e44e
tests: use $PYTHON in #! so we always use the right Python
Augie Fackler <augie@google.com>
parents:
32936
diff
changeset
|
1007 > #!$PYTHON |
26680
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1008 > def foo(): |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1009 > pass |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1010 > EOF |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1011 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1012 $ hg add unknownfile |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1013 $ hg commit -m unknown unknownfile |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1014 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1015 $ hg serve -p $HGPORT -d -n test --pid-file=hg.pid |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1016 $ cat hg.pid >> $DAEMON_PIDS |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1017 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1018 $ get-with-headers.py localhost:$HGPORT 'file/tip/unknownfile' | grep l2 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1019 <span id="l2"><span class="k">def</span> <span class="nf">foo</span><span class="p">():</span></span><a href="#l2"></a> |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1020 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1021 We can prevent Pygments from falling back to a non filename-based |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1022 detection mode |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1023 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1024 $ cat > .hg/hgrc << EOF |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1025 > [web] |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1026 > highlightfiles = ** |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1027 > highlightonlymatchfilename = true |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1028 > EOF |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1029 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1030 $ killdaemons.py |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1031 $ hg serve -p $HGPORT -d -n test --pid-file=hg.pid |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1032 $ cat hg.pid >> $DAEMON_PIDS |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1033 $ get-with-headers.py localhost:$HGPORT 'file/tip/unknownfile' | grep l2 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1034 <span id="l2">def foo():</span><a href="#l2"></a> |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1035 |
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
16577
diff
changeset
|
1036 $ cd .. |