tests/test-highlight.out
author Matt Mackall <mpm@selenic.com>
Mon, 18 May 2009 17:36:24 -0500
changeset 8503 90f86a5330bb
parent 8486 835b1ee111f4
child 8504 e35d844f5afc
permissions -rw-r--r--
commit: tidy up mergestate slightly
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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">
3b841c189ab7 tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
    22
<a href="http://www.selenic.com/mercurial/">
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">&#116;&#101;&#115;&#116;</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">&quot;&quot;&quot;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 &lt;- 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">&quot;&quot;&quot;</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">&quot;&quot;&quot;Generate all primes.&quot;&quot;&quot;</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">&lt;</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">&quot;__main__&quot;</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">&quot;The first </span><span class="si">%d</span><span class="s"> primes: </span><span class="si">%s</span><span class="s">&quot;</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">
db7557359636 highlight: convert text to local before passing to pygmentize (issue1341)
Christian Ebert <blacktrash@gmx.net>
parents: 7054
diff changeset
   140
<a href="http://www.selenic.com/mercurial/">
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">&#116;&#101;&#115;&#116;</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">
d11473955d30 hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents: 7120
diff changeset
   227
<a href="http://www.selenic.com/mercurial/">
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">&#116;&#101;&#115;&#116;</td>
6907
6dcbe191a9b5 Fix up tests
Matt Mackall <mpm@selenic.com>
parents: 6695
diff changeset
   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
6dcbe191a9b5 Fix up tests
Matt Mackall <mpm@selenic.com>
parents: 6695
diff changeset
   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
3b841c189ab7 tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
   283
<br/>
3b841c189ab7 tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
   284
7339
d11473955d30 hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents: 7120
diff changeset
   285
<div class="overflow">
d11473955d30 hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents: 7120
diff changeset
   286
<table class="bigtable">
d11473955d30 hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents: 7120
diff changeset
   287
<tr>
d11473955d30 hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents: 7120
diff changeset
   288
 <th class="annotate">rev</th>
7395
e2048f5c7bf5 tests: fix tests broken by 03b60f2f90bf
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7347
diff changeset
   289
 <th class="line">&nbsp;&nbsp;line source</th>
7339
d11473955d30 hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents: 7120
diff changeset
   290
</tr>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   291
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   292
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   293
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   294
<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
   295
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   296
</td>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   297
<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
   298
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   299
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   300
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   301
<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
   302
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   303
</td>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   304
<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
   305
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   306
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   307
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   308
<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
   309
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   310
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   311
<td class="source"><a href="#l3" id="l3">     3</a> <span class="sd">&quot;&quot;&quot;Fun with generators. Corresponding Haskell implementation:</span></td>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   312
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   313
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   314
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   315
<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
   316
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   317
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   318
<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
   319
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   320
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   321
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   322
<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
   323
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   324
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   325
<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
   326
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   327
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   328
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   329
<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
   330
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   331
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   332
<td class="source"><a href="#l6" id="l6">     6</a> <span class="sd">    where sieve (p:ns) = p : sieve [n | n &lt;- ns, mod n p /= 0]</span></td>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   333
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   334
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   335
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   336
<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
   337
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   338
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   339
<td class="source"><a href="#l7" id="l7">     7</a> <span class="sd">&quot;&quot;&quot;</span></td>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   340
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   341
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   342
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   343
<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
   344
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   345
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   346
<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
   347
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   348
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   349
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   350
<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
   351
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   352
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   353
<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
   354
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   355
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   356
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   357
<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
   358
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   359
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   360
<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
   361
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   362
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   363
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   364
<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
   365
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   366
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   367
<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
   368
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   369
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   370
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   371
<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
   372
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   373
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   374
<td class="source"><a href="#l12" id="l12">    12</a>     <span class="sd">&quot;&quot;&quot;Generate all primes.&quot;&quot;&quot;</span></td>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   375
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   376
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   377
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   378
<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
   379
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   380
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   381
<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
   382
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   383
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   384
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   385
<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
   386
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   387
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   388
<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
   389
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   390
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   391
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   392
<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
   393
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   394
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   395
<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
   396
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   397
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   398
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   399
<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
   400
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   401
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   402
<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
   403
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   404
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   405
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   406
<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
   407
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   408
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   409
<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
   410
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   411
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   412
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   413
<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
   414
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   415
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   416
<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
   417
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   418
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   419
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   420
<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
   421
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   422
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   423
<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
   424
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   425
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   426
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   427
<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
   428
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   429
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   430
<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
   431
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   432
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   433
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   434
<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
   435
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   436
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   437
<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
   438
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   439
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   440
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   441
<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
   442
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   443
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   444
<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
   445
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   446
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   447
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   448
<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
   449
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   450
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   451
<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">&lt;</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
   452
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   453
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   454
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   455
<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
   456
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   457
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   458
<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
   459
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   460
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   461
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   462
<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
   463
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   464
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   465
<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">&quot;__main__&quot;</span><span class="p">:</span></td>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   466
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   467
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   468
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   469
<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
   470
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   471
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   472
<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
   473
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   474
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   475
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   476
<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
   477
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   478
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   479
<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
   480
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   481
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   482
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   483
<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
   484
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   485
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   486
<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
   487
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   488
<tr class="parity0">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   489
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   490
<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
   491
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   492
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   493
<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
   494
</tr>
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   495
<tr class="parity1">
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   496
<td class="annotate">
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   497
<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
   498
title="3e1445510fe7: a">test@0</a>
8379
10fd7fb65110 highlight: updated changed test output
Martin Geisler <mg@lazybytes.net>
parents: 8353
diff changeset
   499
</td>
8485
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   500
<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
   501
</tr>
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   502
<tr class="parity0">
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   503
<td class="annotate">
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   504
<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
   505
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
   506
</td>
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   507
<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
   508
</tr>
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   509
<tr class="parity1">
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   510
<td class="annotate">
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   511
<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
   512
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
   513
</td>
0b93eff3721d test-highlight: decouple test from get-with-headers.py
Martin Geisler <mg@lazybytes.net>
parents: 8447
diff changeset
   514
<td class="source"><a href="#l32" id="l32">    32</a>     <span class="kn">print</span> <span class="s">&quot;The first </span><span class="si">%d</span><span class="s"> primes: </span><span class="si">%s</span><span class="s">&quot;</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
   515
</tr>
6355
3b841c189ab7 tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
   516
</table>
7339
d11473955d30 hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents: 7120
diff changeset
   517
</div>
d11473955d30 hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents: 7120
diff changeset
   518
</div>
d11473955d30 hgweb: update tests for paper style
Matt Mackall <mpm@selenic.com>
parents: 7120
diff changeset
   519
</div>
6355
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
3b841c189ab7 tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
   522
3b841c189ab7 tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
   523
</body>
3b841c189ab7 tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
   524
</html>
3b841c189ab7 tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
   525
6987
d09e813b21e3 highlight: only pygmentize for HTML mimetypes
Rocco Rutte <pdmef@gmx.net>
parents: 6907
diff changeset
   526
% hgweb fileannotate, raw
d09e813b21e3 highlight: only pygmentize for HTML mimetypes
Rocco Rutte <pdmef@gmx.net>
parents: 6907
diff changeset
   527
d09e813b21e3 highlight: only pygmentize for HTML mimetypes
Rocco Rutte <pdmef@gmx.net>
parents: 6907
diff changeset
   528
% hgweb filerevision, raw
d09e813b21e3 highlight: only pygmentize for HTML mimetypes
Rocco Rutte <pdmef@gmx.net>
parents: 6907
diff changeset
   529
6485
938319418d8c highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents: 6355
diff changeset
   530
% hgweb highlightcss friendly
938319418d8c highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents: 6355
diff changeset
   531
200 Script output follows
938319418d8c highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents: 6355
diff changeset
   532
938319418d8c highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents: 6355
diff changeset
   533
/* pygments_style = friendly */
938319418d8c highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents: 6355
diff changeset
   534
6355
3b841c189ab7 tests: add highlight extension tests
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
diff changeset
   535
% errors encountered
6485
938319418d8c highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents: 6355
diff changeset
   536
% hg serve again
938319418d8c highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents: 6355
diff changeset
   537
% hgweb highlightcss fruity
938319418d8c highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents: 6355
diff changeset
   538
200 Script output follows
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
/* pygments_style = fruity */
938319418d8c highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents: 6355
diff changeset
   541
938319418d8c highlight: Generate pygments style sheet dynamically
Isaac Jurado <diptongo@gmail.com>
parents: 6355
diff changeset
   542
% errors encountered