tests/test-hgweb-raw.t
author Raphaël Gomès <rgomes@octobus.net>
Tue, 02 Jul 2019 17:15:03 +0200
changeset 42609 326fdce22fb2
parent 40382 bd1ec1e36bf0
permissions -rw-r--r--
rust: switch hg-core and hg-cpython to rust 2018 edition Many interesting changes have happened in Rust since the Oxidation Plan was introduced, like the 2018 edition and procedural macros: - Opting in to the 2018 edition is a clear benefit in terms of future proofing, new (nice to have) syntactical sugar notwithstanding. It also has a new non-lexical, non-AST based borrow checker that has fewer bugs(!) and allows us to write correct code that in some cases would have been rejected by the old one. - Procedural macros allow us to use the PyO3 crate which maintainers have expressed the clear goal of compiling on stable, which would help in code maintainability compared to rust-cpython. In this patch are the following changes: - Removing most `extern crate` uses - Updating `use` clauses (`crate` keyword, nested `use`) - Removing `mod.rs` in favor of an aptly named module file Like discussed in the mailing list ( https://www.mercurial-scm.org/pipermail/mercurial-devel/2019-July/132316.html ), until Rust integration in Mercurial is considered to be out of the experimental phase, the maximum version of Rust allowed is whatever the latest version Debian packages. Differential Revision: https://phab.mercurial-scm.org/D6597
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22046
7a9cbb315d84 tests: replace exit 80 with #require
Matt Mackall <mpm@selenic.com>
parents: 18589
diff changeset
     1
#require serve
15446
c5c9ca3719f9 tests: use 'hghave serve' to guard tests that requires serve daemon management
Mads Kiilerich <mads@kiilerich.com>
parents: 15004
diff changeset
     2
12441
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
     3
Test raw style of hgweb
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
     4
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
     5
  $ hg init test
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
     6
  $ cd test
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
     7
  $ mkdir sub
16973
3d71807c3a48 tests: use a different evil name in test-hgweb-raw.t
Mads Kiilerich <mads@kiilerich.com>
parents: 16913
diff changeset
     8
  $ cat >'sub/some text%.txt' <<ENDSOME
12441
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
     9
  > This is just some random text
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    10
  > that will go inside the file and take a few lines.
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    11
  > It is very boring to read, but computers don't
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    12
  > care about things like that.
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    13
  > ENDSOME
16973
3d71807c3a48 tests: use a different evil name in test-hgweb-raw.t
Mads Kiilerich <mads@kiilerich.com>
parents: 16913
diff changeset
    14
  $ hg add 'sub/some text%.txt'
12441
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    15
  $ hg commit -d "1 0" -m "Just some text"
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    16
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    17
  $ hg serve -p $HGPORT -A access.log -E error.log -d --pid-file=hg.pid
2532
84655f721f39 Add a test for getting raw files via the web UI.
Eric Hopper <hopper@omnifarious.org>
parents:
diff changeset
    18
12441
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    19
  $ cat hg.pid >> $DAEMON_PIDS
36859
422be99519e5 hgweb: remove support for short query string based aliases (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 31008
diff changeset
    20
  $ (get-with-headers.py localhost:$HGPORT 'raw-file/bf0ff59095c9/sub/some%20text%25.txt' content-type content-length content-disposition) >getoutput.txt
16298
0eefd118f27e tests: fix shutdown race in test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 15446
diff changeset
    21
25472
4d2b9b304ad0 tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents: 22046
diff changeset
    22
  $ killdaemons.py hg.pid
16298
0eefd118f27e tests: fix shutdown race in test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 15446
diff changeset
    23
12441
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    24
  $ cat getoutput.txt
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    25
  200 Script output follows
15004
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    26
  content-type: application/binary
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    27
  content-length: 157
16973
3d71807c3a48 tests: use a different evil name in test-hgweb-raw.t
Mads Kiilerich <mads@kiilerich.com>
parents: 16913
diff changeset
    28
  content-disposition: inline; filename="some text%.txt"
15004
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    29
  
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    30
  This is just some random text
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    31
  that will go inside the file and take a few lines.
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    32
  It is very boring to read, but computers don't
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    33
  care about things like that.
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    34
  $ cat access.log error.log
36859
422be99519e5 hgweb: remove support for short query string based aliases (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 31008
diff changeset
    35
  $LOCALIP - - [$LOGDATE$] "GET /raw-file/bf0ff59095c9/sub/some%20text%25.txt HTTP/1.1" 200 - (glob)
15004
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    36
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    37
  $ rm access.log error.log
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    38
  $ hg serve -p $HGPORT -A access.log -E error.log -d --pid-file=hg.pid \
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    39
  > --config web.guessmime=True
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    40
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    41
  $ cat hg.pid >> $DAEMON_PIDS
36859
422be99519e5 hgweb: remove support for short query string based aliases (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 31008
diff changeset
    42
  $ (get-with-headers.py localhost:$HGPORT 'raw-file/bf0ff59095c9/sub/some%20text%25.txt' content-type content-length content-disposition) >getoutput.txt
25472
4d2b9b304ad0 tests: drop explicit $TESTDIR from executables
Matt Mackall <mpm@selenic.com>
parents: 22046
diff changeset
    43
  $ killdaemons.py hg.pid
16298
0eefd118f27e tests: fix shutdown race in test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 15446
diff changeset
    44
15004
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    45
  $ cat getoutput.txt
d06b9c55ddab hgweb: raw file mimetype guessing configurable, off by default (BC) (issue2923)
Matt Mackall <mpm@selenic.com>
parents: 13962
diff changeset
    46
  200 Script output follows
12441
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    47
  content-type: text/plain; charset="ascii"
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    48
  content-length: 157
16973
3d71807c3a48 tests: use a different evil name in test-hgweb-raw.t
Mads Kiilerich <mads@kiilerich.com>
parents: 16913
diff changeset
    49
  content-disposition: inline; filename="some text%.txt"
12441
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    50
  
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    51
  This is just some random text
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    52
  that will go inside the file and take a few lines.
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    53
  It is very boring to read, but computers don't
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    54
  care about things like that.
cb1e33a41d13 tests: unify test-hgweb-raw
Matt Mackall <mpm@selenic.com>
parents: 11617
diff changeset
    55
  $ cat access.log error.log
36859
422be99519e5 hgweb: remove support for short query string based aliases (BC)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 31008
diff changeset
    56
  $LOCALIP - - [$LOGDATE$] "GET /raw-file/bf0ff59095c9/sub/some%20text%25.txt HTTP/1.1" 200 - (glob)
2532
84655f721f39 Add a test for getting raw files via the web UI.
Eric Hopper <hopper@omnifarious.org>
parents:
diff changeset
    57
40382
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    58
  >>> with open('sub/binary.bin', 'wb') as fp:
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    59
  ...     fp.write(b'Binary\0file') and None
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    60
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    61
  $ hg ci -Aqm "add binary file" sub/
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    62
  $ hg serve -p $HGPORT -A access.log -E error.log -d --pid-file=hg.pid \
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    63
  > --config web.guessmime=True
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    64
  $ cat hg.pid >> $DAEMON_PIDS
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    65
  $ (get-with-headers.py localhost:$HGPORT 'annotate/tip/sub/binary.bin' content-type content-length content-disposition) >getoutput.txt
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    66
  $ cat getoutput.txt
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    67
  200 Script output follows
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    68
  content-type: text/html; charset=ascii
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    69
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    70
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    71
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    72
  <head>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    73
  <link rel="icon" href="/static/hgicon.png" type="image/png" />
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    74
  <meta name="robots" content="index, nofollow" />
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    75
  <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    76
  <script type="text/javascript" src="/static/mercurial.js"></script>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    77
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    78
  <title>$TESTTMP/test: sub/binary.bin annotate</title> (glob)
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    79
  </head>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    80
  <body>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    81
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    82
  <div class="container">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    83
  <div class="menu">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    84
  <div class="logo">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    85
  <a href="https://mercurial-scm.org/">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    86
  <img src="/static/hglogo.png" alt="mercurial" /></a>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    87
  </div>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    88
  <ul>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    89
  <li><a href="/shortlog/tip">log</a></li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    90
  <li><a href="/graph/tip">graph</a></li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    91
  <li><a href="/tags">tags</a></li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    92
  <li><a href="/bookmarks">bookmarks</a></li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    93
  <li><a href="/branches">branches</a></li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    94
  </ul>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    95
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    96
  <ul>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    97
  <li><a href="/rev/tip">changeset</a></li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    98
  <li><a href="/file/tip/sub/">browse</a></li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
    99
  </ul>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   100
  <ul>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   101
  <li><a href="/file/tip/sub/binary.bin">file</a></li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   102
  <li><a href="/file/tip/sub/binary.bin">latest</a></li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   103
  <li><a href="/diff/tip/sub/binary.bin">diff</a></li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   104
  <li><a href="/comparison/tip/sub/binary.bin">comparison</a></li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   105
  <li class="active">annotate</li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   106
  <li><a href="/log/tip/sub/binary.bin">file log</a></li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   107
  <li><a href="/raw-file/tip/sub/binary.bin">raw</a></li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   108
  </ul>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   109
  <ul>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   110
  <li><a href="/help">help</a></li>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   111
  </ul>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   112
  </div>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   113
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   114
  <div class="main">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   115
  <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   116
  <h3>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   117
   annotate sub/binary.bin @ 1:<a href="/rev/7dc31308464a">7dc31308464a</a>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   118
   <span class="phase">draft</span> <span class="branchhead">default</span> <span class="tag">tip</span> 
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   119
  </h3>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   120
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   121
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   122
  <form class="search" action="/log">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   123
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   124
  <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   125
  <div id="hint">Find changesets by keywords (author, files, the commit message), revision
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   126
  number or hash, or <a href="/help/revsets">revset expression</a>.</div>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   127
  </form>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   128
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   129
  <div class="description">add binary file</div>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   130
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   131
  <table id="changesetEntry">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   132
  <tr>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   133
   <th class="author">author</th>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   134
   <td class="author">&#116;&#101;&#115;&#116;</td>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   135
  </tr>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   136
  <tr>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   137
   <th class="date">date</th>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   138
   <td class="date age">Thu, 01 Jan 1970 00:00:00 +0000</td>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   139
  </tr>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   140
  <tr>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   141
   <th class="author">parents</th>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   142
   <td class="author"></td>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   143
  </tr>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   144
  <tr>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   145
   <th class="author">children</th>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   146
   <td class="author"></td>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   147
  </tr>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   148
  </table>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   149
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   150
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   151
  <form id="diffopts-form"
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   152
  data-ignorews="0"
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   153
  data-ignorewsamount="0"
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   154
  data-ignorewseol="0"
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   155
  data-ignoreblanklines="0">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   156
  <span>Ignore whitespace changes - </span>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   157
  <span>Everywhere:</span>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   158
  <input id="ignorews-checkbox" type="checkbox" />
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   159
  <span>Within whitespace:</span>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   160
  <input id="ignorewsamount-checkbox" type="checkbox" />
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   161
  <span>At end of lines:</span>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   162
  <input id="ignorewseol-checkbox" type="checkbox" />
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   163
  </form>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   164
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   165
  <script type="text/javascript">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   166
      renderDiffOptsForm();
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   167
  </script>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   168
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   169
  <div class="overflow">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   170
  <table class="bigtable">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   171
  <thead>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   172
  <tr>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   173
   <th class="annotate">rev</th>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   174
   <th class="line">&nbsp;&nbsp;line source</th>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   175
  </tr>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   176
  </thead>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   177
  <tbody class="stripes2 sourcelines"
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   178
         data-logurl="/log/tip/sub/binary.bin"
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   179
         data-selectabletag="TR"
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   180
         data-ishead="1">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   181
    
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   182
  <tr id="l1" class="thisrev">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   183
  <td class="annotate parity0">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   184
  <a href="/annotate/7dc31308464a/sub/binary.bin#l1">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   185
  1
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   186
  </a>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   187
  <div class="annotate-info">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   188
  <div>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   189
  <a href="/annotate/7dc31308464a/sub/binary.bin#l1">
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   190
  7dc31308464a</a>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   191
  add binary file
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   192
  </div>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   193
  <div><em>&#116;&#101;&#115;&#116;</em></div>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   194
  <div>parents: </div>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   195
  <a href="/diff/7dc31308464a/sub/binary.bin">diff</a>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   196
  <a href="/rev/7dc31308464a">changeset</a>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   197
  </div>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   198
  </td>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   199
  <td class="source followlines-btn-parent"><a href="#l1">     1</a> (binary:application/octet-stream)</td>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   200
  </tr>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   201
  </tbody>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   202
  </table>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   203
  </div>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   204
  </div>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   205
  </div>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   206
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   207
  <script type="text/javascript" src="/static/followlines.js"></script>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   208
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   209
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   210
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   211
  </body>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   212
  </html>
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   213
  
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   214
  $ (get-with-headers.py localhost:$HGPORT 'comparison/tip/sub/binary.bin' content-type content-length content-disposition) >getoutput.txt
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   215
  $ (get-with-headers.py localhost:$HGPORT 'file/tip/sub/binary.bin' content-type content-length content-disposition) >getoutput.txt
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   216
  $ (get-with-headers.py localhost:$HGPORT 'static/hgicon.png' content-type content-length content-disposition) >getoutput.txt
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   217
  $ killdaemons.py hg.pid
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   218
  $ cat access.log error.log
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   219
  $LOCALIP - - [$LOGDATE$] "GET /raw-file/bf0ff59095c9/sub/some%20text%25.txt HTTP/1.1" 200 - (glob)
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   220
  $LOCALIP - - [$LOGDATE$] "GET /annotate/tip/sub/binary.bin HTTP/1.1" 200 - (glob)
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   221
  $LOCALIP - - [$LOGDATE$] "GET /comparison/tip/sub/binary.bin HTTP/1.1" 200 - (glob)
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   222
  $LOCALIP - - [$LOGDATE$] "GET /file/tip/sub/binary.bin HTTP/1.1" 200 - (glob)
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   223
  $LOCALIP - - [$LOGDATE$] "GET /static/hgicon.png HTTP/1.1" 200 - (glob)
bd1ec1e36bf0 tests: add coverage for some untested areas of hgweb
Matt Harbison <matt_harbison@yahoo.com>
parents: 36859
diff changeset
   224
16913
f2719b387380 tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents: 16496
diff changeset
   225
  $ cd ..