Mercurial > hg
annotate tests/test-highlight.t @ 30884:a68510b69f41
chg: verify XDG_RUNTIME_DIR
According to the specification [1], $XDG_RUNTIME_DIR should be ignored
unless:
The directory MUST be owned by the user, and he MUST be the only one
having read and write access to it. Its Unix access mode MUST be 0700.
This patch adds a check and ignores it if it does not meet part of the
criteria.
[1]: https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
author | Jun Wu <quark@fb.com> |
---|---|
date | Mon, 06 Feb 2017 17:01:06 -0800 |
parents | 312b861924c8 |
children | 04ec317b8128 |
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 > #!/usr/bin/env python |
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 > """Fun with generators. Corresponding Haskell implementation: |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
26 > |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
27 > primes = 2 : sieve [3, 5..] |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
28 > 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
|
29 > """ |
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 > from itertools import dropwhile, ifilter, islice, count, chain |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
32 > |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
33 > def primes(): |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
34 > """Generate all primes.""" |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
35 > def sieve(ns): |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
36 > p = ns.next() |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
37 > # 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
|
38 > # infinite recursion. |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
39 > yield p |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
40 > ns = ifilter(lambda n: n % p != 0, ns) |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
41 > for n in sieve(ns): |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
42 > yield n |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
43 > |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
44 > odds = ifilter(lambda i: i % 2 == 1, count()) |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
45 > return chain([2], sieve(dropwhile(lambda n: n < 3, odds))) |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
46 > |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
47 > if __name__ == "__main__": |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
48 > import sys |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
49 > try: |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
50 > n = int(sys.argv[1]) |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
51 > except (ValueError, IndexError): |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
52 > n = 10 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
53 > p = primes() |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
54 > print "The first %d primes: %s" % (n, list(islice(p, n))) |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
55 > 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
|
56 $ 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
|
57 $ hg ci -Ama |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
58 adding primes.py |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8083
diff
changeset
|
59 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
60 hg serve |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8083
diff
changeset
|
61 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
62 $ 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
|
63 $ 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
|
64 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
65 hgweb filerevision, html |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8083
diff
changeset
|
66 |
27996
4301b99126ef
test-highlight: factor out function that normalizes pygments output
Yuya Nishihara <yuya@tcha.org>
parents:
27995
diff
changeset
|
67 $ (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
|
68 200 Script output follows |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
69 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
70 <!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
|
71 <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
|
72 <head> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
73 <link rel="icon" href="/static/hgicon.png" type="image/png" /> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
74 <meta name="robots" content="index, nofollow" /> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
75 <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
|
76 <script type="text/javascript" src="/static/mercurial.js"></script> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
77 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
78 <link rel="stylesheet" href="/highlightcss" type="text/css" /> |
25867
a74e9806d17d
highlight: produce correct markup when there's a blank line just before EOF
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
79 <title>test: 06824edf55d0 primes.py</title> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
80 </head> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
81 <body> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
82 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
83 <div class="container"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
84 <div class="menu"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
85 <div class="logo"> |
26421
4b0fc75f9403
urls: bulk-change primary website URLs
Matt Mackall <mpm@selenic.com>
parents:
26249
diff
changeset
|
86 <a href="https://mercurial-scm.org/"> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
87 <img src="/static/hglogo.png" alt="mercurial" /></a> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
88 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
89 <ul> |
25606
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="/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
|
91 <li><a href="/graph/tip">graph</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
92 <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
|
93 <li><a href="/bookmarks">bookmarks</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
94 <li><a href="/branches">branches</a></li> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
95 </ul> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
96 <ul> |
25606
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="/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
|
98 <li><a href="/file/tip/">browse</a></li> |
12445
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 <ul> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
101 <li class="active">file</li> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
102 <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
|
103 <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
|
104 <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
|
105 <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
|
106 <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
|
107 <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
|
108 </ul> |
12680
d664547ef540
hgweb: add help link to templates missed in ead4e21f49f1
Augie Fackler <durin42@gmail.com>
parents:
12445
diff
changeset
|
109 <ul> |
d664547ef540
hgweb: add help link to templates missed in ead4e21f49f1
Augie Fackler <durin42@gmail.com>
parents:
12445
diff
changeset
|
110 <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
|
111 </ul> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
112 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
113 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
114 <div class="main"> |
18291
5db16424142c
tests: fix up test-highlight for breadcrumb changes
Matt Mackall <mpm@selenic.com>
parents:
17466
diff
changeset
|
115 <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
|
116 <h3> |
25867
a74e9806d17d
highlight: produce correct markup when there's a blank line just before EOF
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
117 view primes.py @ 0:<a href="/rev/06824edf55d0">06824edf55d0</a> |
25617
63be46407a50
hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
118 <span class="tag">tip</span> |
63be46407a50
hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
119 </h3> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
120 |
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 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
123 <p><input name="rev" id="search1" type="text" size="30" /></p> |
19796
544848ef65f2
paper: edit search hint to include new feature description
Alexander Plavin <alexander@plav.in>
parents:
19795
diff
changeset
|
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"> |
19430
5ec5097b4c0f
hgweb: add line wrapping switch to file source view
Alexander Plavin <me@aplavin.ru>
parents:
19387
diff
changeset
|
150 <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">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> |
26245
d53212d70893
hgweb: replace .sourcelast with .bottomline that does the same
Anton Shestakov <av6@dwimlabs.net>
parents:
25867
diff
changeset
|
152 <pre class="sourcelines stripes4 wrap bottomline"> |
19387
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
153 <span id="l1"><span class="c">#!/usr/bin/env python</span></span><a href="#l1"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
154 <span id="l2"></span><a href="#l2"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
155 <span id="l3"><span class="sd">"""Fun with generators. Corresponding Haskell implementation:</span></span><a href="#l3"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
156 <span id="l4"></span><a href="#l4"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
157 <span id="l5"><span class="sd">primes = 2 : sieve [3, 5..]</span></span><a href="#l5"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
158 <span id="l6"><span class="sd"> where sieve (p:ns) = p : sieve [n | n <- ns, mod n p /= 0]</span></span><a href="#l6"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
159 <span id="l7"><span class="sd">"""</span></span><a href="#l7"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
160 <span id="l8"></span><a href="#l8"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
161 <span id="l9"><span class="kn">from</span> <span class="nn">itertools</span> <span class="kn">import</span> <span class="n">dropwhile</span><span class="p">,</span> <span class="n">ifilter</span><span class="p">,</span> <span class="n">islice</span><span class="p">,</span> <span class="n">count</span><span class="p">,</span> <span class="n">chain</span></span><a href="#l9"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
162 <span id="l10"></span><a href="#l10"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
163 <span id="l11"><span class="kn">def</span> <span class="nf">primes</span><span class="p">():</span></span><a href="#l11"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
164 <span id="l12"> <span class="sd">"""Generate all primes."""</span></span><a href="#l12"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
165 <span id="l13"> <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="#l13"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
166 <span id="l14"> <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="#l14"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
167 <span id="l15"> <span class="c"># It is important to yield *here* in order to stop the</span></span><a href="#l15"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
168 <span id="l16"> <span class="c"># infinite recursion.</span></span><a href="#l16"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
169 <span id="l17"> <span class="kn">yield</span> <span class="n">p</span></span><a href="#l17"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
170 <span id="l18"> <span class="n">ns</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="#l18"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
171 <span id="l19"> <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="#l19"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
172 <span id="l20"> <span class="kn">yield</span> <span class="n">n</span></span><a href="#l20"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
173 <span id="l21"></span><a href="#l21"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
174 <span id="l22"> <span class="n">odds</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">count</span><span class="p">())</span></span><a href="#l22"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
175 <span id="l23"> <span class="kn">return</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="#l23"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
176 <span id="l24"></span><a href="#l24"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
177 <span id="l25"><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="#l25"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
178 <span id="l26"> <span class="kn">import</span> <span class="nn">sys</span></span><a href="#l26"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
179 <span id="l27"> <span class="kn">try</span><span class="p">:</span></span><a href="#l27"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
180 <span id="l28"> <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="#l28"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
181 <span id="l29"> <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="#l29"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
182 <span id="l30"> <span class="n">n</span> <span class="o">=</span> <span class="mi">10</span></span><a href="#l30"></a> |
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18291
diff
changeset
|
183 <span id="l31"> <span class="n">p</span> <span class="o">=</span> <span class="n">primes</span><span class="p">()</span></span><a href="#l31"></a> |
25867
a74e9806d17d
highlight: produce correct markup when there's a blank line just before EOF
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
184 <span id="l32"> <span class="kn">print</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">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="#l32"></a> |
a74e9806d17d
highlight: produce correct markup when there's a blank line just before EOF
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
185 <span id="l33"></span><a href="#l33"></a></pre> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
186 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
187 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
188 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
189 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
190 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
191 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
192 </body> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
193 </html> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
194 |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8083
diff
changeset
|
195 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
196 hgweb fileannotate, html |
6987
d09e813b21e3
highlight: only pygmentize for HTML mimetypes
Rocco Rutte <pdmef@gmx.net>
parents:
6863
diff
changeset
|
197 |
27996
4301b99126ef
test-highlight: factor out function that normalizes pygments output
Yuya Nishihara <yuya@tcha.org>
parents:
27995
diff
changeset
|
198 $ (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
|
199 200 Script output follows |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
200 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
201 <!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
|
202 <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
|
203 <head> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
204 <link rel="icon" href="/static/hgicon.png" type="image/png" /> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
205 <meta name="robots" content="index, nofollow" /> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
206 <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
|
207 <script type="text/javascript" src="/static/mercurial.js"></script> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
208 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
209 <link rel="stylesheet" href="/highlightcss" type="text/css" /> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
210 <title>test: primes.py annotate</title> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
211 </head> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
212 <body> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
213 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
214 <div class="container"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
215 <div class="menu"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
216 <div class="logo"> |
26421
4b0fc75f9403
urls: bulk-change primary website URLs
Matt Mackall <mpm@selenic.com>
parents:
26249
diff
changeset
|
217 <a href="https://mercurial-scm.org/"> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
218 <img src="/static/hglogo.png" alt="mercurial" /></a> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
219 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
220 <ul> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
221 <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
|
222 <li><a href="/graph/tip">graph</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
223 <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
|
224 <li><a href="/bookmarks">bookmarks</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
225 <li><a href="/branches">branches</a></li> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
226 </ul> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
227 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
228 <ul> |
25606
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="/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
|
230 <li><a href="/file/tip/">browse</a></li> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
231 </ul> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
232 <ul> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
25474
diff
changeset
|
233 <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
|
234 <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
|
235 <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
|
236 <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
|
237 <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
|
238 <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
|
239 <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
|
240 </ul> |
12680
d664547ef540
hgweb: add help link to templates missed in ead4e21f49f1
Augie Fackler <durin42@gmail.com>
parents:
12445
diff
changeset
|
241 <ul> |
d664547ef540
hgweb: add help link to templates missed in ead4e21f49f1
Augie Fackler <durin42@gmail.com>
parents:
12445
diff
changeset
|
242 <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
|
243 </ul> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
244 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
245 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
246 <div class="main"> |
18291
5db16424142c
tests: fix up test-highlight for breadcrumb changes
Matt Mackall <mpm@selenic.com>
parents:
17466
diff
changeset
|
247 <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
|
248 <h3> |
25867
a74e9806d17d
highlight: produce correct markup when there's a blank line just before EOF
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
249 annotate primes.py @ 0:<a href="/rev/06824edf55d0">06824edf55d0</a> |
25617
63be46407a50
hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
250 <span class="tag">tip</span> |
63be46407a50
hgweb: link to revision by node hash in paper & coal
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
251 </h3> |
12445
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 <form class="search" action="/log"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
254 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
255 <p><input name="rev" id="search1" type="text" size="30" /></p> |
19796
544848ef65f2
paper: edit search hint to include new feature description
Alexander Plavin <alexander@plav.in>
parents:
19795
diff
changeset
|
256 <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
|
257 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
|
258 </form> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
259 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
260 <div class="description">a</div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
261 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
262 <table id="changesetEntry"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
263 <tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
264 <th class="author">author</th> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
265 <td class="author">test</td> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
266 </tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
267 <tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
268 <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
|
269 <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
|
270 </tr> |
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">parents</th> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
273 <td class="author"></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="author">children</th> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
277 <td class="author"></td> |
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 </table> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
280 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
281 <div class="overflow"> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
282 <table class="bigtable"> |
24054
fdf7794be41d
hgweb: replace implicit <tbody> with explicit <thead> where appropriate
Anton Shestakov <engored@ya.ru>
parents:
22947
diff
changeset
|
283 <thead> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
284 <tr> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
285 <th class="annotate">rev</th> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
286 <th class="line"> line source</th> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
287 </tr> |
24054
fdf7794be41d
hgweb: replace implicit <tbody> with explicit <thead> where appropriate
Anton Shestakov <engored@ya.ru>
parents:
22947
diff
changeset
|
288 </thead> |
19449
9f471af285a9
hgweb: make stripes in file annotate view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19431
diff
changeset
|
289 <tbody class="stripes2"> |
9f471af285a9
hgweb: make stripes in file annotate view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19431
diff
changeset
|
290 |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
291 <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
|
292 <td class="annotate parity0"> |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
293 <a href="/annotate/06824edf55d0/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
|
294 0 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
295 </a> |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
296 <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
|
297 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
298 <a href="/annotate/06824edf55d0/primes.py#l1"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
299 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
300 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
301 </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
|
302 <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
|
303 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
304 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
305 <a href="/rev/06824edf55d0">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
|
306 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
307 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
308 <td class="source"><a href="#l1"> 1</a> <span class="c">#!/usr/bin/env python</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
309 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
310 <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
|
311 <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
|
312 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
313 <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
|
314 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
315 <a href="/annotate/06824edf55d0/primes.py#l2"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
316 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
317 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
318 </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
|
319 <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
|
320 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
321 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
322 <a href="/rev/06824edf55d0">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
|
323 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
324 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
325 <td class="source"><a href="#l2"> 2</a> </td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
326 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
327 <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
|
328 <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
|
329 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
330 <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
|
331 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
332 <a href="/annotate/06824edf55d0/primes.py#l3"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
333 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
334 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
335 </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
|
336 <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
|
337 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
338 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
339 <a href="/rev/06824edf55d0">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
|
340 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
341 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
342 <td class="source"><a href="#l3"> 3</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
|
343 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
344 <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
|
345 <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
|
346 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
347 <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
|
348 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
349 <a href="/annotate/06824edf55d0/primes.py#l4"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
350 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
351 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
352 </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
|
353 <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
|
354 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
355 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
356 <a href="/rev/06824edf55d0">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
|
357 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
358 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
359 <td class="source"><a href="#l4"> 4</a> </td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
360 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
361 <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
|
362 <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
|
363 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
364 <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
|
365 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
366 <a href="/annotate/06824edf55d0/primes.py#l5"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
367 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
368 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
369 </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
|
370 <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
|
371 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
372 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
373 <a href="/rev/06824edf55d0">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
|
374 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
375 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
376 <td class="source"><a href="#l5"> 5</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
|
377 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
378 <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
|
379 <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
|
380 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
381 <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
|
382 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
383 <a href="/annotate/06824edf55d0/primes.py#l6"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
384 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
385 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
386 </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
|
387 <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
|
388 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
389 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
390 <a href="/rev/06824edf55d0">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
|
391 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
392 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
393 <td class="source"><a href="#l6"> 6</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
|
394 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
395 <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
|
396 <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
|
397 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
398 <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
|
399 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
400 <a href="/annotate/06824edf55d0/primes.py#l7"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
401 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
402 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
403 </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
|
404 <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
|
405 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
406 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
407 <a href="/rev/06824edf55d0">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
|
408 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
409 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
410 <td class="source"><a href="#l7"> 7</a> <span class="sd">"""</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
411 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
412 <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
|
413 <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
|
414 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
415 <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
|
416 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
417 <a href="/annotate/06824edf55d0/primes.py#l8"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
418 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
419 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
420 </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
|
421 <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
|
422 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
423 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
424 <a href="/rev/06824edf55d0">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
|
425 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
426 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
427 <td class="source"><a href="#l8"> 8</a> </td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
428 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
429 <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
|
430 <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
|
431 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
432 <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
|
433 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
434 <a href="/annotate/06824edf55d0/primes.py#l9"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
435 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
436 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
437 </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
|
438 <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
|
439 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
440 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
441 <a href="/rev/06824edf55d0">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
|
442 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
443 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
444 <td class="source"><a href="#l9"> 9</a> <span class="kn">from</span> <span class="nn">itertools</span> <span class="kn">import</span> <span class="n">dropwhile</span><span class="p">,</span> <span class="n">ifilter</span><span class="p">,</span> <span class="n">islice</span><span class="p">,</span> <span class="n">count</span><span class="p">,</span> <span class="n">chain</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
445 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
446 <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
|
447 <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
|
448 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
449 <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
|
450 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
451 <a href="/annotate/06824edf55d0/primes.py#l10"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
452 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
453 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
454 </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
|
455 <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
|
456 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
457 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
458 <a href="/rev/06824edf55d0">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
|
459 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
460 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
461 <td class="source"><a href="#l10"> 10</a> </td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
462 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
463 <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
|
464 <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
|
465 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
466 <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
|
467 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
468 <a href="/annotate/06824edf55d0/primes.py#l11"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
469 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
470 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
471 </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
|
472 <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
|
473 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
474 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
475 <a href="/rev/06824edf55d0">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
|
476 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
477 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
478 <td class="source"><a href="#l11"> 11</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
|
479 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
480 <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
|
481 <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
|
482 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
483 <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
|
484 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
485 <a href="/annotate/06824edf55d0/primes.py#l12"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
486 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
487 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
488 </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
|
489 <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
|
490 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
491 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
492 <a href="/rev/06824edf55d0">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
|
493 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
494 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
495 <td class="source"><a href="#l12"> 12</a> <span class="sd">"""Generate all primes."""</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
496 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
497 <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
|
498 <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
|
499 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
500 <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
|
501 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
502 <a href="/annotate/06824edf55d0/primes.py#l13"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
503 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
504 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
505 </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
|
506 <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
|
507 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
508 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
509 <a href="/rev/06824edf55d0">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
|
510 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
511 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
512 <td class="source"><a href="#l13"> 13</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
|
513 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
514 <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
|
515 <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
|
516 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
517 <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
|
518 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
519 <a href="/annotate/06824edf55d0/primes.py#l14"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
520 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
521 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
522 </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
|
523 <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
|
524 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
525 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
526 <a href="/rev/06824edf55d0">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
|
527 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
528 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
529 <td class="source"><a href="#l14"> 14</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
|
530 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
531 <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
|
532 <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
|
533 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
534 <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
|
535 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
536 <a href="/annotate/06824edf55d0/primes.py#l15"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
537 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
538 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
539 </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
|
540 <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
|
541 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
542 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
543 <a href="/rev/06824edf55d0">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
|
544 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
545 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
546 <td class="source"><a href="#l15"> 15</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
|
547 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
548 <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
|
549 <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
|
550 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
551 <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
|
552 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
553 <a href="/annotate/06824edf55d0/primes.py#l16"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
554 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
555 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
556 </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
|
557 <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
|
558 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
559 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
560 <a href="/rev/06824edf55d0">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
|
561 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
562 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
563 <td class="source"><a href="#l16"> 16</a> <span class="c"># infinite recursion.</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
564 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
565 <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
|
566 <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
|
567 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
568 <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
|
569 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
570 <a href="/annotate/06824edf55d0/primes.py#l17"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
571 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
572 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
573 </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
|
574 <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
|
575 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
576 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
577 <a href="/rev/06824edf55d0">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
|
578 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
579 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
580 <td class="source"><a href="#l17"> 17</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
|
581 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
582 <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
|
583 <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
|
584 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
585 <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
|
586 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
587 <a href="/annotate/06824edf55d0/primes.py#l18"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
588 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
589 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
590 </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
|
591 <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
|
592 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
593 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
594 <a href="/rev/06824edf55d0">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
|
595 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
596 </td> |
27995
834d27c4655d
test-highlight: unify normalization rule of pygments output
Yuya Nishihara <yuya@tcha.org>
parents:
26680
diff
changeset
|
597 <td class="source"><a href="#l18"> 18</a> <span class="n">ns</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
|
598 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
599 <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
|
600 <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
|
601 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
602 <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
|
603 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
604 <a href="/annotate/06824edf55d0/primes.py#l19"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
605 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
606 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
607 </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
|
608 <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
|
609 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
610 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
611 <a href="/rev/06824edf55d0">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
|
612 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
613 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
614 <td class="source"><a href="#l19"> 19</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
|
615 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
616 <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
|
617 <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
|
618 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
619 <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
|
620 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
621 <a href="/annotate/06824edf55d0/primes.py#l20"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
622 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
623 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
624 </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
|
625 <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
|
626 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
627 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
628 <a href="/rev/06824edf55d0">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
|
629 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
630 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
631 <td class="source"><a href="#l20"> 20</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
|
632 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
633 <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
|
634 <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
|
635 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
636 <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
|
637 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
638 <a href="/annotate/06824edf55d0/primes.py#l21"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
639 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
640 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
641 </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
|
642 <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
|
643 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
644 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
645 <a href="/rev/06824edf55d0">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
|
646 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
647 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
648 <td class="source"><a href="#l21"> 21</a> </td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
649 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
650 <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
|
651 <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
|
652 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
653 <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
|
654 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
655 <a href="/annotate/06824edf55d0/primes.py#l22"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
656 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
657 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
658 </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
|
659 <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
|
660 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
661 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
662 <a href="/rev/06824edf55d0">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
|
663 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
664 </td> |
27995
834d27c4655d
test-highlight: unify normalization rule of pygments output
Yuya Nishihara <yuya@tcha.org>
parents:
26680
diff
changeset
|
665 <td class="source"><a href="#l22"> 22</a> <span class="n">odds</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">count</span><span class="p">())</span></td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
666 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
667 <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
|
668 <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
|
669 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
670 <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
|
671 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
672 <a href="/annotate/06824edf55d0/primes.py#l23"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
673 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
674 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
675 </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
|
676 <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
|
677 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
678 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
679 <a href="/rev/06824edf55d0">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
|
680 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
681 </td> |
27995
834d27c4655d
test-highlight: unify normalization rule of pygments output
Yuya Nishihara <yuya@tcha.org>
parents:
26680
diff
changeset
|
682 <td class="source"><a href="#l23"> 23</a> <span class="kn">return</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
|
683 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
684 <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
|
685 <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
|
686 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
687 <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
|
688 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
689 <a href="/annotate/06824edf55d0/primes.py#l24"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
690 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
691 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
692 </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
|
693 <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
|
694 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
695 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
696 <a href="/rev/06824edf55d0">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
|
697 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
698 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
699 <td class="source"><a href="#l24"> 24</a> </td> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
700 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
701 <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
|
702 <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
|
703 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
704 <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
|
705 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
706 <a href="/annotate/06824edf55d0/primes.py#l25"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
707 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
708 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
709 </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
|
710 <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
|
711 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
712 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
713 <a href="/rev/06824edf55d0">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
|
714 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
715 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
716 <td class="source"><a href="#l25"> 25</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
|
717 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
718 <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
|
719 <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
|
720 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
721 <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
|
722 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
723 <a href="/annotate/06824edf55d0/primes.py#l26"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
724 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
725 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
726 </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
|
727 <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
|
728 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
729 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
730 <a href="/rev/06824edf55d0">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
|
731 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
732 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
733 <td class="source"><a href="#l26"> 26</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
|
734 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
735 <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
|
736 <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
|
737 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
738 <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
|
739 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
740 <a href="/annotate/06824edf55d0/primes.py#l27"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
741 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
742 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
743 </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
|
744 <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
|
745 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
746 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
747 <a href="/rev/06824edf55d0">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
|
748 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
749 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
750 <td class="source"><a href="#l27"> 27</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
|
751 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
752 <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
|
753 <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
|
754 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
755 <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
|
756 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
757 <a href="/annotate/06824edf55d0/primes.py#l28"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
758 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
759 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
760 </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
|
761 <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
|
762 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
763 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
764 <a href="/rev/06824edf55d0">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
|
765 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
766 </td> |
27995
834d27c4655d
test-highlight: unify normalization rule of pygments output
Yuya Nishihara <yuya@tcha.org>
parents:
26680
diff
changeset
|
767 <td class="source"><a href="#l28"> 28</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
|
768 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
769 <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
|
770 <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
|
771 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
772 <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
|
773 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
774 <a href="/annotate/06824edf55d0/primes.py#l29"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
775 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
776 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
777 </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
|
778 <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
|
779 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
780 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
781 <a href="/rev/06824edf55d0">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
|
782 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
783 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
784 <td class="source"><a href="#l29"> 29</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
|
785 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
786 <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
|
787 <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
|
788 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
789 <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
|
790 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
791 <a href="/annotate/06824edf55d0/primes.py#l30"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
792 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
793 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
794 </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
|
795 <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
|
796 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
797 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
798 <a href="/rev/06824edf55d0">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
|
799 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
800 </td> |
27995
834d27c4655d
test-highlight: unify normalization rule of pygments output
Yuya Nishihara <yuya@tcha.org>
parents:
26680
diff
changeset
|
801 <td class="source"><a href="#l30"> 30</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
|
802 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
803 <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
|
804 <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
|
805 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
806 <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
|
807 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
808 <a href="/annotate/06824edf55d0/primes.py#l31"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
809 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
810 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
811 </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
|
812 <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
|
813 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
814 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
815 <a href="/rev/06824edf55d0">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
|
816 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
817 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
818 <td class="source"><a href="#l31"> 31</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
|
819 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
820 <tr id="l32" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
821 <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
|
822 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
823 <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
|
824 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
825 <a href="/annotate/06824edf55d0/primes.py#l32"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
826 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
827 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
828 </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
|
829 <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
|
830 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
831 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
832 <a href="/rev/06824edf55d0">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
|
833 </div> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
834 </td> |
19463
f3393d458bf5
hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
835 <td class="source"><a href="#l32"> 32</a> <span class="kn">print</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">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> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
836 </tr> |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27997
diff
changeset
|
837 <tr id="l33" class="thisrev"> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
838 <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
|
839 |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
840 <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
|
841 <div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
842 <a href="/annotate/06824edf55d0/primes.py#l33"> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
843 06824edf55d0</a> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
844 a |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
845 </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
|
846 <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
|
847 <div>parents: </div> |
29523
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
848 <a href="/diff/06824edf55d0/primes.py">diff</a> |
4b6afd1b445a
hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29522
diff
changeset
|
849 <a href="/rev/06824edf55d0">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
|
850 </div> |
25867
a74e9806d17d
highlight: produce correct markup when there's a blank line just before EOF
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
851 </td> |
a74e9806d17d
highlight: produce correct markup when there's a blank line just before EOF
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
852 <td class="source"><a href="#l33"> 33</a> </td> |
a74e9806d17d
highlight: produce correct markup when there's a blank line just before EOF
Anton Shestakov <av6@dwimlabs.net>
parents:
25617
diff
changeset
|
853 </tr> |
19449
9f471af285a9
hgweb: make stripes in file annotate view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19431
diff
changeset
|
854 </tbody> |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
855 </table> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
856 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
857 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
858 </div> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
859 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
860 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
861 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
862 </body> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
863 </html> |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
864 |
6485
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
865 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
866 hgweb fileannotate, raw |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
867 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
25136
diff
changeset
|
868 $ (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
|
869 > | sed "s/test@//" > a |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
870 $ echo "200 Script output follows" > b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
871 $ echo "" >> b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
872 $ echo "" >> b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
873 $ hg annotate "primes.py" >> b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
874 $ echo "" >> b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
875 $ echo "" >> b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
876 $ echo "" >> b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
877 $ echo "" >> b |
20598
e57e2da803aa
solaris: diff -u emits "No differences encountered"
Danek Duvall <danek.duvall@oracle.com>
parents:
19796
diff
changeset
|
878 $ cmp b a || diff -u b a |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
879 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
880 hgweb filerevision, raw |
6485
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
881 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
25136
diff
changeset
|
882 $ (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
|
883 > > a |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
884 $ echo "200 Script output follows" > b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
885 $ echo "" >> b |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
886 $ hg cat primes.py >> b |
20598
e57e2da803aa
solaris: diff -u emits "No differences encountered"
Danek Duvall <danek.duvall@oracle.com>
parents:
19796
diff
changeset
|
887 $ cmp b a || diff -u b a |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
888 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
889 hgweb highlightcss friendly |
6485
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
890 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
25136
diff
changeset
|
891 $ get-with-headers.py localhost:$HGPORT 'highlightcss' > out |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
892 $ head -n 4 out |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
893 200 Script output follows |
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 /* pygments_style = friendly */ |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
896 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
897 $ rm out |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
898 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
899 errors encountered |
6485
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
900 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
901 $ cat errors.log |
25474
8c14f87bd0ae
tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents:
25472
diff
changeset
|
902 $ killdaemons.py |
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 Change the pygments style |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
905 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
906 $ cat > .hg/hgrc <<EOF |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
907 > [web] |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
908 > pygments_style = fruity |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
909 > EOF |
9424
799373ff2554
highlight: fixes garbled text in non-UTF-8 environment
Yuya Nishihara <yuya@tcha.org>
parents:
8485
diff
changeset
|
910 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
911 hg serve again |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
912 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
913 $ 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
|
914 $ cat hg.pid >> $DAEMON_PIDS |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
915 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
916 hgweb highlightcss fruity |
9424
799373ff2554
highlight: fixes garbled text in non-UTF-8 environment
Yuya Nishihara <yuya@tcha.org>
parents:
8485
diff
changeset
|
917 |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
25136
diff
changeset
|
918 $ get-with-headers.py localhost:$HGPORT 'highlightcss' > out |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
919 $ head -n 4 out |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
920 200 Script output follows |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
921 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
922 /* pygments_style = fruity */ |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
923 |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
924 $ rm out |
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 errors encountered |
9424
799373ff2554
highlight: fixes garbled text in non-UTF-8 environment
Yuya Nishihara <yuya@tcha.org>
parents:
8485
diff
changeset
|
927 |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
928 $ cat errors.log |
26249
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
929 $ killdaemons.py |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
930 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
931 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
|
932 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
933 $ cat > .hg/hgrc <<EOF |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
934 > [web] |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
935 > highlightfiles = **.c |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
936 > EOF |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
937 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
938 hg serve again |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
939 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
940 $ 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
|
941 $ 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
|
942 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
943 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
|
944 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
945 $ get-with-headers.py localhost:$HGPORT 'file/tip/primes.py' | grep 'id="l11"' |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
946 <span id="l11">def primes():</span><a href="#l11"></a> |
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 errors encountered |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
949 |
3166bcc0c538
highlight: add highlightfiles config option which takes a fileset (issue3005)
Anton Shestakov <av6@dwimlabs.net>
parents:
26245
diff
changeset
|
950 $ cat errors.log |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
951 $ cd .. |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
952 $ hg init eucjp |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
953 $ cd eucjp |
22947
c63a09b6b337
tests: use $PYTHON instead of hardcoding python
Augie Fackler <raf@durin42.com>
parents:
22046
diff
changeset
|
954 $ $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
|
955 $ hg ci -Ama |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
956 adding eucjp.txt |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
957 $ hgserveget () { |
25474
8c14f87bd0ae
tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents:
25472
diff
changeset
|
958 > killdaemons.py |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
959 > echo % HGENCODING="$1" hg serve |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
960 > 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
|
961 > cat hg.pid >> $DAEMON_PIDS |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
962 > |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
963 > echo % hgweb filerevision, html |
25472
4d2b9b304ad0
tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents:
25136
diff
changeset
|
964 > 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
|
965 > | grep '<div class="parity0 source">' |
12445
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
966 > echo % errors encountered |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
967 > cat errors.log |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
968 > } |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
969 $ hgserveget euc-jp eucjp.txt |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
970 % HGENCODING=euc-jp hg serve |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
971 % hgweb filerevision, html |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
972 % errors encountered |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
973 $ hgserveget utf-8 eucjp.txt |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
974 % HGENCODING=utf-8 hg serve |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
975 % hgweb filerevision, html |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
976 % errors encountered |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
977 $ hgserveget us-ascii eucjp.txt |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
978 % HGENCODING=us-ascii hg serve |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
979 % hgweb filerevision, html |
981ce49a243f
tests: unify test-highlight
Matt Mackall <mpm@selenic.com>
parents:
10257
diff
changeset
|
980 % errors encountered |
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
16577
diff
changeset
|
981 |
26680
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
982 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
|
983 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
984 $ killdaemons.py |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
985 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
986 $ cat > .hg/hgrc << EOF |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
987 > [web] |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
988 > highlightfiles = ** |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
989 > EOF |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
990 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
991 $ cat > unknownfile << EOF |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
992 > #!/usr/bin/python |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
993 > def foo(): |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
994 > pass |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
995 > EOF |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
996 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
997 $ hg add unknownfile |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
998 $ 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
|
999 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1000 $ 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
|
1001 $ 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
|
1002 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1003 $ 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
|
1004 <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
|
1005 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1006 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
|
1007 detection mode |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1008 |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1009 $ cat > .hg/hgrc << EOF |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1010 > [web] |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1011 > highlightfiles = ** |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1012 > highlightonlymatchfilename = true |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1013 > EOF |
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 $ killdaemons.py |
7a3f6490ef97
highlight: add option to prevent content-only based fallback
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26421
diff
changeset
|
1016 $ 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
|
1017 $ 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
|
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">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
|
1020 |
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
16577
diff
changeset
|
1021 $ cd .. |