Mercurial > hg
annotate tests/test-highlight.out @ 9017:c24c9ce0cdcf
color: don't highlight the summary part of the qseries command
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Sat, 27 Jun 2009 13:09:11 +0200 |
parents | 1de6e7e1bb9f |
children | 799373ff2554 |
rev | line source |
---|---|
7959
5fb6edbf0ab8
tests: guess lexer by filename for recent pygments
Christian Ebert <blacktrash@gmx.net>
parents:
7725
diff
changeset
|
1 adding isolatin.txt |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
2 adding primes.py |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
3 % hg serve |
6987
d09e813b21e3
highlight: only pygmentize for HTML mimetypes
Rocco Rutte <pdmef@gmx.net>
parents:
6907
diff
changeset
|
4 % hgweb filerevision, html |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
5 200 Script output follows |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
6 |
7725
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
8 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
9 <head> |
7725
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
10 <link rel="icon" href="/static/hgicon.png" type="image/png" /> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
11 <meta name="robots" content="index, nofollow" /> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
12 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
13 |
6485
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
14 <link rel="stylesheet" href="/highlightcss" type="text/css" /> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
15 <title>test: 3e1445510fe7 primes.py</title> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
16 </head> |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
17 <body> |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
18 |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
19 <div class="container"> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
20 <div class="menu"> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
21 <div class="logo"> |
8936
1de6e7e1bb9f
change wiki/bts URLs to point to new hostname
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8504
diff
changeset
|
22 <a href="http://mercurial.selenic.com/"> |
7725
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
23 <img src="/static/hglogo.png" alt="mercurial" /></a> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
24 </div> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
25 <ul> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
26 <li><a href="/shortlog/3e1445510fe7">log</a></li> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
27 <li><a href="/graph/3e1445510fe7">graph</a></li> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
28 <li><a href="/tags">tags</a></li> |
8353
6058d291abdf
paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
8083
diff
changeset
|
29 <li><a href="/branches">branches</a></li> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
30 </ul> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
31 <ul> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
32 <li><a href="/rev/3e1445510fe7">changeset</a></li> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
33 <li><a href="/file/3e1445510fe7/">browse</a></li> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
34 </ul> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
35 <ul> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
36 <li class="active">file</li> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
37 <li><a href="/diff/3e1445510fe7/primes.py">diff</a></li> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
38 <li><a href="/annotate/3e1445510fe7/primes.py">annotate</a></li> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
39 <li><a href="/log/3e1445510fe7/primes.py">file log</a></li> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
40 <li><a href="/raw-file/3e1445510fe7/primes.py">raw</a></li> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
41 </ul> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
42 </div> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
43 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
44 <div class="main"> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
45 <h2><a href="/">test</a></h2> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
46 <h3>view primes.py @ 0:3e1445510fe7</h3> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
47 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
48 <form class="search" action="/log"> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
49 |
7725
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
50 <p><input name="rev" id="search1" type="text" size="30" /></p> |
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
51 <div id="hint">find changesets by author, revision, |
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
52 files, or words in the commit message</div> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
53 </form> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
54 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
55 <div class="description">a</div> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
56 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
57 <table id="changesetEntry"> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
58 <tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
59 <th class="author">author</th> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
60 <td class="author">test</td> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
61 </tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
62 <tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
63 <th class="date">date</th> |
7544
c5e37dc38a52
test-hgweb-*: replace "XX years ago" by a fixed string in get-with-headers.py
Gilles Moris <gilles.moris@free.fr>
parents:
7395
diff
changeset
|
64 <td class="date">Thu Jan 01 00:00:00 1970 +0000 (many years ago)</td> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
65 </tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
66 <tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
67 <th class="author">parents</th> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
68 <td class="author"></td> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
69 </tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
70 <tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
71 <th class="author">children</th> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
72 <td class="author"></td> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
73 </tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
74 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
75 </table> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
76 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
77 <div class="overflow"> |
7395
e2048f5c7bf5
tests: fix tests broken by 03b60f2f90bf
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7347
diff
changeset
|
78 <div class="sourcefirst"> line source</div> |
8486
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
79 |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
80 <div class="parity0 source"><a href="#l1" id="l1"> 1</a> <span class="c">#!/usr/bin/env python</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
81 <div class="parity1 source"><a href="#l2" id="l2"> 2</a> </div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
82 <div class="parity0 source"><a href="#l3" id="l3"> 3</a> <span class="sd">"""Fun with generators. Corresponding Haskell implementation:</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
83 <div class="parity1 source"><a href="#l4" id="l4"> 4</a> </div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
84 <div class="parity0 source"><a href="#l5" id="l5"> 5</a> <span class="sd">primes = 2 : sieve [3, 5..]</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
85 <div class="parity1 source"><a href="#l6" id="l6"> 6</a> <span class="sd"> where sieve (p:ns) = p : sieve [n | n <- ns, mod n p /= 0]</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
86 <div class="parity0 source"><a href="#l7" id="l7"> 7</a> <span class="sd">"""</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
87 <div class="parity1 source"><a href="#l8" id="l8"> 8</a> </div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
88 <div class="parity0 source"><a href="#l9" id="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></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
89 <div class="parity1 source"><a href="#l10" id="l10"> 10</a> </div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
90 <div class="parity0 source"><a href="#l11" id="l11"> 11</a> <span class="kn">def</span> <span class="nf">primes</span><span class="p">():</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
91 <div class="parity1 source"><a href="#l12" id="l12"> 12</a> <span class="sd">"""Generate all primes."""</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
92 <div class="parity0 source"><a href="#l13" id="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></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
93 <div class="parity1 source"><a href="#l14" id="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></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
94 <div class="parity0 source"><a href="#l15" id="l15"> 15</a> <span class="c"># It is important to yield *here* in order to stop the</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
95 <div class="parity1 source"><a href="#l16" id="l16"> 16</a> <span class="c"># infinite recursion.</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
96 <div class="parity0 source"><a href="#l17" id="l17"> 17</a> <span class="kn">yield</span> <span class="n">p</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
97 <div class="parity1 source"><a href="#l18" id="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></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
98 <div class="parity0 source"><a href="#l19" id="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></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
99 <div class="parity1 source"><a href="#l20" id="l20"> 20</a> <span class="kn">yield</span> <span class="n">n</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
100 <div class="parity0 source"><a href="#l21" id="l21"> 21</a> </div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
101 <div class="parity1 source"><a href="#l22" id="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></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
102 <div class="parity0 source"><a href="#l23" id="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></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
103 <div class="parity1 source"><a href="#l24" id="l24"> 24</a> </div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
104 <div class="parity0 source"><a href="#l25" id="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></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
105 <div class="parity1 source"><a href="#l26" id="l26"> 26</a> <span class="kn">import</span> <span class="nn">sys</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
106 <div class="parity0 source"><a href="#l27" id="l27"> 27</a> <span class="kn">try</span><span class="p">:</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
107 <div class="parity1 source"><a href="#l28" id="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></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
108 <div class="parity0 source"><a href="#l29" id="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></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
109 <div class="parity1 source"><a href="#l30" id="l30"> 30</a> <span class="n">n</span> <span class="o">=</span> <span class="mi">10</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
110 <div class="parity0 source"><a href="#l31" id="l31"> 31</a> <span class="n">p</span> <span class="o">=</span> <span class="n">primes</span><span class="p">()</span></div> |
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
111 <div class="parity1 source"><a href="#l32" id="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></div> |
7395
e2048f5c7bf5
tests: fix tests broken by 03b60f2f90bf
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7347
diff
changeset
|
112 <div class="sourcelast"></div> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
113 </div> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
114 </div> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
115 </div> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
116 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
117 |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
118 |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
119 </body> |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
120 </html> |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
121 |
7120
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
122 % hgweb filerevision, html |
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
123 200 Script output follows |
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
124 |
7725
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
125 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
126 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> |
7120
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
127 <head> |
7725
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
128 <link rel="icon" href="/static/hgicon.png" type="image/png" /> |
7120
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
129 <meta name="robots" content="index, nofollow" /> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
130 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> |
7120
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
131 |
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
132 <link rel="stylesheet" href="/highlightcss" type="text/css" /> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
133 <title>test: 3e1445510fe7 isolatin.txt</title> |
7120
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
134 </head> |
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
135 <body> |
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
136 |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
137 <div class="container"> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
138 <div class="menu"> |
7120
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
139 <div class="logo"> |
8936
1de6e7e1bb9f
change wiki/bts URLs to point to new hostname
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8504
diff
changeset
|
140 <a href="http://mercurial.selenic.com/"> |
7725
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
141 <img src="/static/hglogo.png" alt="mercurial" /></a> |
7120
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
142 </div> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
143 <ul> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
144 <li><a href="/shortlog/3e1445510fe7">log</a></li> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
145 <li><a href="/graph/3e1445510fe7">graph</a></li> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
146 <li><a href="/tags">tags</a></li> |
8353
6058d291abdf
paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
8083
diff
changeset
|
147 <li><a href="/branches">branches</a></li> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
148 </ul> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
149 <ul> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
150 <li><a href="/rev/3e1445510fe7">changeset</a></li> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
151 <li><a href="/file/3e1445510fe7/">browse</a></li> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
152 </ul> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
153 <ul> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
154 <li class="active">file</li> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
155 <li><a href="/diff/3e1445510fe7/isolatin.txt">diff</a></li> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
156 <li><a href="/annotate/3e1445510fe7/isolatin.txt">annotate</a></li> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
157 <li><a href="/log/3e1445510fe7/isolatin.txt">file log</a></li> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
158 <li><a href="/raw-file/3e1445510fe7/isolatin.txt">raw</a></li> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
159 </ul> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
160 </div> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
161 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
162 <div class="main"> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
163 <h2><a href="/">test</a></h2> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
164 <h3>view isolatin.txt @ 0:3e1445510fe7</h3> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
165 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
166 <form class="search" action="/log"> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
167 |
7725
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
168 <p><input name="rev" id="search1" type="text" size="30" /></p> |
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
169 <div id="hint">find changesets by author, revision, |
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
170 files, or words in the commit message</div> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
171 </form> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
172 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
173 <div class="description">a</div> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
174 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
175 <table id="changesetEntry"> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
176 <tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
177 <th class="author">author</th> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
178 <td class="author">test</td> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
179 </tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
180 <tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
181 <th class="date">date</th> |
7544
c5e37dc38a52
test-hgweb-*: replace "XX years ago" by a fixed string in get-with-headers.py
Gilles Moris <gilles.moris@free.fr>
parents:
7395
diff
changeset
|
182 <td class="date">Thu Jan 01 00:00:00 1970 +0000 (many years ago)</td> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
183 </tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
184 <tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
185 <th class="author">parents</th> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
186 <td class="author"></td> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
187 </tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
188 <tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
189 <th class="author">children</th> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
190 <td class="author"></td> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
191 </tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
192 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
193 </table> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
194 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
195 <div class="overflow"> |
7395
e2048f5c7bf5
tests: fix tests broken by 03b60f2f90bf
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7347
diff
changeset
|
196 <div class="sourcefirst"> line source</div> |
8486
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8485
diff
changeset
|
197 |
7395
e2048f5c7bf5
tests: fix tests broken by 03b60f2f90bf
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7347
diff
changeset
|
198 <div class="parity0 source"><a href="#l1" id="l1"> 1</a> h?bsch</div> |
e2048f5c7bf5
tests: fix tests broken by 03b60f2f90bf
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7347
diff
changeset
|
199 <div class="sourcelast"></div> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
200 </div> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
201 </div> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
202 </div> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
203 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
204 |
7120
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
205 |
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
206 </body> |
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
207 </html> |
db7557359636
highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents:
7054
diff
changeset
|
208 |
6987
d09e813b21e3
highlight: only pygmentize for HTML mimetypes
Rocco Rutte <pdmef@gmx.net>
parents:
6907
diff
changeset
|
209 % hgweb fileannotate, html |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
210 200 Script output follows |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
211 |
7725
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
212 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
213 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
214 <head> |
7725
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
215 <link rel="icon" href="/static/hgicon.png" type="image/png" /> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
216 <meta name="robots" content="index, nofollow" /> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
217 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
218 |
6485
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
219 <link rel="stylesheet" href="/highlightcss" type="text/css" /> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
220 <title>test: primes.py annotate</title> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
221 </head> |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
222 <body> |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
223 |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
224 <div class="container"> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
225 <div class="menu"> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
226 <div class="logo"> |
8936
1de6e7e1bb9f
change wiki/bts URLs to point to new hostname
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
8504
diff
changeset
|
227 <a href="http://mercurial.selenic.com/"> |
7725
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
228 <img src="/static/hglogo.png" alt="mercurial" /></a> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
229 </div> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
230 <ul> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
231 <li><a href="/shortlog/3e1445510fe7">log</a></li> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
232 <li><a href="/graph/3e1445510fe7">graph</a></li> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
233 <li><a href="/tags">tags</a></li> |
8353
6058d291abdf
paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
8083
diff
changeset
|
234 <li><a href="/branches">branches</a></li> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
235 </ul> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
236 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
237 <ul> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
238 <li><a href="/rev/3e1445510fe7">changeset</a></li> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
239 <li><a href="/file/3e1445510fe7/">browse</a></li> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
240 </ul> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
241 <ul> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
242 <li><a href="/file/3e1445510fe7/primes.py">file</a></li> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
243 <li><a href="/diff/3e1445510fe7/primes.py">diff</a></li> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
244 <li class="active">annotate</li> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
245 <li><a href="/log/3e1445510fe7/primes.py">file log</a></li> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
246 <li><a href="/raw-annotate/3e1445510fe7/primes.py">raw</a></li> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
247 </ul> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
248 </div> |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
249 |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
250 <div class="main"> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
251 <h2><a href="/">test</a></h2> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
252 <h3>annotate primes.py @ 0:3e1445510fe7</h3> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
253 |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
254 <form class="search" action="/log"> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
255 |
7725
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
256 <p><input name="rev" id="search1" type="text" size="30" /></p> |
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
257 <div id="hint">find changesets by author, revision, |
6a888d491eaf
coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents:
7544
diff
changeset
|
258 files, or words in the commit message</div> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
259 </form> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
260 |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
261 <div class="description">a</div> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
262 |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
263 <table id="changesetEntry"> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
264 <tr> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
265 <th class="author">author</th> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
266 <td class="author">test</td> |
6907 | 267 </tr> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
268 <tr> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
269 <th class="date">date</th> |
7544
c5e37dc38a52
test-hgweb-*: replace "XX years ago" by a fixed string in get-with-headers.py
Gilles Moris <gilles.moris@free.fr>
parents:
7395
diff
changeset
|
270 <td class="date">Thu Jan 01 00:00:00 1970 +0000 (many years ago)</td> |
6907 | 271 </tr> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
272 <tr> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
273 <th class="author">parents</th> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
274 <td class="author"></td> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
275 </tr> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
276 <tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
277 <th class="author">children</th> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
278 <td class="author"></td> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
279 </tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
280 |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
281 </table> |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
282 |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
283 <div class="overflow"> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
284 <table class="bigtable"> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
285 <tr> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
286 <th class="annotate">rev</th> |
7395
e2048f5c7bf5
tests: fix tests broken by 03b60f2f90bf
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7347
diff
changeset
|
287 <th class="line"> line source</th> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
288 </tr> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
289 |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
290 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
291 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
292 <a href="/annotate/3e1445510fe7/primes.py#1" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
293 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
294 </td> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
295 <td class="source"><a href="#l1" id="l1"> 1</a> <span class="c">#!/usr/bin/env python</span></td> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
296 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
297 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
298 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
299 <a href="/annotate/3e1445510fe7/primes.py#2" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
300 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
301 </td> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
302 <td class="source"><a href="#l2" id="l2"> 2</a> </td> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
303 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
304 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
305 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
306 <a href="/annotate/3e1445510fe7/primes.py#3" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
307 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
308 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
309 <td class="source"><a href="#l3" id="l3"> 3</a> <span class="sd">"""Fun with generators. Corresponding Haskell implementation:</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
310 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
311 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
312 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
313 <a href="/annotate/3e1445510fe7/primes.py#4" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
314 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
315 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
316 <td class="source"><a href="#l4" id="l4"> 4</a> </td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
317 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
318 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
319 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
320 <a href="/annotate/3e1445510fe7/primes.py#5" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
321 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
322 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
323 <td class="source"><a href="#l5" id="l5"> 5</a> <span class="sd">primes = 2 : sieve [3, 5..]</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
324 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
325 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
326 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
327 <a href="/annotate/3e1445510fe7/primes.py#6" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
328 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
329 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
330 <td class="source"><a href="#l6" id="l6"> 6</a> <span class="sd"> where sieve (p:ns) = p : sieve [n | n <- ns, mod n p /= 0]</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
331 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
332 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
333 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
334 <a href="/annotate/3e1445510fe7/primes.py#7" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
335 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
336 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
337 <td class="source"><a href="#l7" id="l7"> 7</a> <span class="sd">"""</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
338 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
339 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
340 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
341 <a href="/annotate/3e1445510fe7/primes.py#8" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
342 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
343 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
344 <td class="source"><a href="#l8" id="l8"> 8</a> </td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
345 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
346 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
347 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
348 <a href="/annotate/3e1445510fe7/primes.py#9" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
349 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
350 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
351 <td class="source"><a href="#l9" id="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> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
352 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
353 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
354 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
355 <a href="/annotate/3e1445510fe7/primes.py#10" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
356 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
357 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
358 <td class="source"><a href="#l10" id="l10"> 10</a> </td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
359 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
360 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
361 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
362 <a href="/annotate/3e1445510fe7/primes.py#11" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
363 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
364 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
365 <td class="source"><a href="#l11" id="l11"> 11</a> <span class="kn">def</span> <span class="nf">primes</span><span class="p">():</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
366 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
367 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
368 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
369 <a href="/annotate/3e1445510fe7/primes.py#12" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
370 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
371 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
372 <td class="source"><a href="#l12" id="l12"> 12</a> <span class="sd">"""Generate all primes."""</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
373 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
374 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
375 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
376 <a href="/annotate/3e1445510fe7/primes.py#13" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
377 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
378 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
379 <td class="source"><a href="#l13" id="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> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
380 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
381 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
382 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
383 <a href="/annotate/3e1445510fe7/primes.py#14" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
384 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
385 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
386 <td class="source"><a href="#l14" id="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> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
387 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
388 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
389 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
390 <a href="/annotate/3e1445510fe7/primes.py#15" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
391 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
392 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
393 <td class="source"><a href="#l15" id="l15"> 15</a> <span class="c"># It is important to yield *here* in order to stop the</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
394 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
395 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
396 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
397 <a href="/annotate/3e1445510fe7/primes.py#16" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
398 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
399 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
400 <td class="source"><a href="#l16" id="l16"> 16</a> <span class="c"># infinite recursion.</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
401 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
402 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
403 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
404 <a href="/annotate/3e1445510fe7/primes.py#17" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
405 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
406 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
407 <td class="source"><a href="#l17" id="l17"> 17</a> <span class="kn">yield</span> <span class="n">p</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
408 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
409 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
410 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
411 <a href="/annotate/3e1445510fe7/primes.py#18" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
412 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
413 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
414 <td class="source"><a href="#l18" id="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="mf">0</span><span class="p">,</span> <span class="n">ns</span><span class="p">)</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
415 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
416 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
417 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
418 <a href="/annotate/3e1445510fe7/primes.py#19" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
419 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
420 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
421 <td class="source"><a href="#l19" id="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> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
422 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
423 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
424 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
425 <a href="/annotate/3e1445510fe7/primes.py#20" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
426 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
427 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
428 <td class="source"><a href="#l20" id="l20"> 20</a> <span class="kn">yield</span> <span class="n">n</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
429 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
430 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
431 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
432 <a href="/annotate/3e1445510fe7/primes.py#21" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
433 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
434 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
435 <td class="source"><a href="#l21" id="l21"> 21</a> </td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
436 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
437 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
438 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
439 <a href="/annotate/3e1445510fe7/primes.py#22" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
440 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
441 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
442 <td class="source"><a href="#l22" id="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="mf">2</span> <span class="o">==</span> <span class="mf">1</span><span class="p">,</span> <span class="n">count</span><span class="p">())</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
443 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
444 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
445 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
446 <a href="/annotate/3e1445510fe7/primes.py#23" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
447 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
448 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
449 <td class="source"><a href="#l23" id="l23"> 23</a> <span class="kn">return</span> <span class="n">chain</span><span class="p">([</span><span class="mf">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="mf">3</span><span class="p">,</span> <span class="n">odds</span><span class="p">)))</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
450 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
451 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
452 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
453 <a href="/annotate/3e1445510fe7/primes.py#24" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
454 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
455 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
456 <td class="source"><a href="#l24" id="l24"> 24</a> </td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
457 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
458 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
459 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
460 <a href="/annotate/3e1445510fe7/primes.py#25" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
461 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
462 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
463 <td class="source"><a href="#l25" id="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> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
464 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
465 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
466 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
467 <a href="/annotate/3e1445510fe7/primes.py#26" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
468 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
469 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
470 <td class="source"><a href="#l26" id="l26"> 26</a> <span class="kn">import</span> <span class="nn">sys</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
471 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
472 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
473 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
474 <a href="/annotate/3e1445510fe7/primes.py#27" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
475 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
476 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
477 <td class="source"><a href="#l27" id="l27"> 27</a> <span class="kn">try</span><span class="p">:</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
478 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
479 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
480 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
481 <a href="/annotate/3e1445510fe7/primes.py#28" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
482 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
483 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
484 <td class="source"><a href="#l28" id="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="mf">1</span><span class="p">])</span></td> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
485 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
486 <tr class="parity0"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
487 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
488 <a href="/annotate/3e1445510fe7/primes.py#29" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
489 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
490 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
491 <td class="source"><a href="#l29" id="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> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
492 </tr> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
493 <tr class="parity1"> |
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
494 <td class="annotate"> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
495 <a href="/annotate/3e1445510fe7/primes.py#30" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
496 title="3e1445510fe7: a">test@0</a> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
497 </td> |
8485
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
498 <td class="source"><a href="#l30" id="l30"> 30</a> <span class="n">n</span> <span class="o">=</span> <span class="mf">10</span></td> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
499 </tr> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
500 <tr class="parity0"> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
501 <td class="annotate"> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
502 <a href="/annotate/3e1445510fe7/primes.py#31" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
503 title="3e1445510fe7: a">test@0</a> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
504 </td> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
505 <td class="source"><a href="#l31" id="l31"> 31</a> <span class="n">p</span> <span class="o">=</span> <span class="n">primes</span><span class="p">()</span></td> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
506 </tr> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
507 <tr class="parity1"> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
508 <td class="annotate"> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
509 <a href="/annotate/3e1445510fe7/primes.py#32" |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
510 title="3e1445510fe7: a">test@0</a> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
511 </td> |
0b93eff3721d
test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents:
8447
diff
changeset
|
512 <td class="source"><a href="#l32" id="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> |
8379
10fd7fb65110
highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents:
8353
diff
changeset
|
513 </tr> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
514 </table> |
7339
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
515 </div> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
516 </div> |
d11473955d30
hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents:
7120
diff
changeset
|
517 </div> |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
518 |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
519 |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
520 |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
521 </body> |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
522 </html> |
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
523 |
6987
d09e813b21e3
highlight: only pygmentize for HTML mimetypes
Rocco Rutte <pdmef@gmx.net>
parents:
6907
diff
changeset
|
524 % hgweb fileannotate, raw |
d09e813b21e3
highlight: only pygmentize for HTML mimetypes
Rocco Rutte <pdmef@gmx.net>
parents:
6907
diff
changeset
|
525 |
d09e813b21e3
highlight: only pygmentize for HTML mimetypes
Rocco Rutte <pdmef@gmx.net>
parents:
6907
diff
changeset
|
526 % hgweb filerevision, raw |
d09e813b21e3
highlight: only pygmentize for HTML mimetypes
Rocco Rutte <pdmef@gmx.net>
parents:
6907
diff
changeset
|
527 |
6485
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
528 % hgweb highlightcss friendly |
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
529 200 Script output follows |
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
530 |
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
531 /* pygments_style = friendly */ |
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
532 |
6355
3b841c189ab7
tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff
changeset
|
533 % errors encountered |
6485
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
534 % hg serve again |
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
535 % hgweb highlightcss fruity |
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
536 200 Script output follows |
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
537 |
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
538 /* pygments_style = fruity */ |
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
539 |
938319418d8c
highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents:
6355
diff
changeset
|
540 % errors encountered |