tests/test-hgweb-commands.t
changeset 13922 b8dd2e95b0ca
parent 13921 4788923a2b33
child 13924 ea726c97c1b6
equal deleted inserted replaced
13921:4788923a2b33 13922:b8dd2e95b0ca
    14   $ hg ci -Ambase
    14   $ hg ci -Ambase
    15   adding da/foo
    15   adding da/foo
    16   adding foo
    16   adding foo
    17   $ hg tag 1.0
    17   $ hg tag 1.0
    18   $ hg bookmark something
    18   $ hg bookmark something
       
    19   $ hg bookmark -r0 anotherthing
    19   $ echo another > foo
    20   $ echo another > foo
    20   $ hg branch stable
    21   $ hg branch stable
    21   marked working directory as branch stable
    22   marked working directory as branch stable
    22   $ hg ci -Ambranch
    23   $ hg ci -Ambranch
    23   $ hg serve --config server.uncompressed=False -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
    24   $ hg serve --config server.uncompressed=False -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
   254     <td class="description"><a href="/rev/a4f92ed23982">Added tag 1.0 for changeset 2ef0ac749a14</a><span class="branchhead">default</span> </td>
   255     <td class="description"><a href="/rev/a4f92ed23982">Added tag 1.0 for changeset 2ef0ac749a14</a><span class="branchhead">default</span> </td>
   255    </tr>
   256    </tr>
   256    <tr class="parity0">
   257    <tr class="parity0">
   257     <td class="age">1970-01-01</td>
   258     <td class="age">1970-01-01</td>
   258     <td class="author">test</td>
   259     <td class="author">test</td>
   259     <td class="description"><a href="/rev/2ef0ac749a14">base</a><span class="tag">1.0</span> </td>
   260     <td class="description"><a href="/rev/2ef0ac749a14">base</a><span class="tag">1.0</span> <span class="tag">anotherthing</span> </td>
   260    </tr>
   261    </tr>
   261   
   262   
   262   </table>
   263   </table>
   263   
   264   
   264   <div class="navigate">
   265   <div class="navigate">
   315   </div>
   316   </div>
   316   
   317   
   317   <div class="main">
   318   <div class="main">
   318   
   319   
   319   <h2><a href="/">test</a></h2>
   320   <h2><a href="/">test</a></h2>
   320   <h3>changeset 0:2ef0ac749a14  <span class="tag">1.0</span>  </h3>
   321   <h3>changeset 0:2ef0ac749a14  <span class="tag">1.0</span>  <span class="tag">anotherthing</span> </h3>
   321   
   322   
   322   <form class="search" action="/log">
   323   <form class="search" action="/log">
   323   
   324   
   324   <p><input name="rev" id="search1" type="text" size="30" /></p>
   325   <p><input name="rev" id="search1" type="text" size="30" /></p>
   325   <div id="hint">find changesets by author, revision,
   326   <div id="hint">find changesets by author, revision,
   441     <th class="description">description</th>
   442     <th class="description">description</th>
   442    </tr>
   443    </tr>
   443    <tr class="parity0">
   444    <tr class="parity0">
   444     <td class="age">1970-01-01</td>
   445     <td class="age">1970-01-01</td>
   445     <td class="author">test</td>
   446     <td class="author">test</td>
   446     <td class="description"><a href="/rev/2ef0ac749a14">base</a><span class="tag">1.0</span> </td>
   447     <td class="description"><a href="/rev/2ef0ac749a14">base</a><span class="tag">1.0</span> <span class="tag">anotherthing</span> </td>
   447    </tr>
   448    </tr>
   448   
   449   
   449   </table>
   450   </table>
   450   
   451   
   451   <div class="navigate">
   452   <div class="navigate">
   604   stable	1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe	open
   605   stable	1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe	open
   605   default	a4f92ed23982be056b9852de5dfe873eaac7f0de	inactive
   606   default	a4f92ed23982be056b9852de5dfe873eaac7f0de	inactive
   606   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/raw-bookmarks'
   607   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/raw-bookmarks'
   607   200 Script output follows
   608   200 Script output follows
   608   
   609   
       
   610   anotherthing	2ef0ac749a14e4f57a5a822464a0902c6f7f448f
   609   something	1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
   611   something	1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe
   610   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/summary/?style=gitweb'
   612   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/summary/?style=gitweb'
   611   200 Script output follows
   613   200 Script output follows
   612   
   614   
   613   <?xml version="1.0" encoding="ascii"?>
   615   <?xml version="1.0" encoding="ascii"?>
   693   <td class="age"><i>1970-01-01</i></td>
   695   <td class="age"><i>1970-01-01</i></td>
   694   <td><i>test</i></td>
   696   <td><i>test</i></td>
   695   <td>
   697   <td>
   696   <a class="list" href="/rev/2ef0ac749a14?style=gitweb">
   698   <a class="list" href="/rev/2ef0ac749a14?style=gitweb">
   697   <b>base</b>
   699   <b>base</b>
   698   <span class="logtags"><span class="tagtag" title="1.0">1.0</span> </span>
   700   <span class="logtags"><span class="tagtag" title="1.0">1.0</span> <span class="bookmarktag" title="anotherthing">anotherthing</span> </span>
   699   </a>
   701   </a>
   700   </td>
   702   </td>
   701   <td class="link" nowrap>
   703   <td class="link" nowrap>
   702   <a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> |
   704   <a href="/rev/2ef0ac749a14?style=gitweb">changeset</a> |
   703   <a href="/file/2ef0ac749a14?style=gitweb">files</a>
   705   <a href="/file/2ef0ac749a14?style=gitweb">files</a>
   819   
   821   
   820   <script type="text/javascript" src="/static/graph.js"></script>
   822   <script type="text/javascript" src="/static/graph.js"></script>
   821   <script>
   823   <script>
   822   <!-- hide script content
   824   <!-- hide script content
   823   
   825   
   824   var data = [["1d22e65f027e", [0, 1], [[0, 0, 1]], "branch", "test", "1970-01-01", ["stable", true], ["tip"], ["something"]], ["a4f92ed23982", [0, 1], [[0, 0, 1]], "Added tag 1.0 for changeset 2ef0ac749a14", "test", "1970-01-01", ["default", true], [], []], ["2ef0ac749a14", [0, 1], [], "base", "test", "1970-01-01", ["default", false], ["1.0"], []]];
   826   var data = [["1d22e65f027e", [0, 1], [[0, 0, 1]], "branch", "test", "1970-01-01", ["stable", true], ["tip"], ["something"]], ["a4f92ed23982", [0, 1], [[0, 0, 1]], "Added tag 1.0 for changeset 2ef0ac749a14", "test", "1970-01-01", ["default", true], [], []], ["2ef0ac749a14", [0, 1], [], "base", "test", "1970-01-01", ["default", false], ["1.0"], ["anotherthing"]]];
   825   var graph = new Graph();
   827   var graph = new Graph();
   826   graph.scale(39);
   828   graph.scale(39);
   827   
   829   
   828   graph.edge = function(x0, y0, x1, y1, color) {
   830   graph.edge = function(x0, y0, x1, y1, color) {
   829   	
   831   	
  1084 
  1086 
  1085 Graph json escape of multibyte character
  1087 Graph json escape of multibyte character
  1086 
  1088 
  1087   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/graph/' \
  1089   $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/graph/' \
  1088   >     | grep '^var data ='
  1090   >     | grep '^var data ='
  1089   var data = [["40b4d6888e92", [0, 1], [[0, 0, 1]], "\u80fd", "test", "1970-01-01", ["stable", true], ["tip"], ["something"]], ["1d22e65f027e", [0, 1], [[0, 0, 1]], "branch", "test", "1970-01-01", ["stable", false], [], []], ["a4f92ed23982", [0, 1], [[0, 0, 1]], "Added tag 1.0 for changeset 2ef0ac749a14", "test", "1970-01-01", ["default", true], [], []], ["2ef0ac749a14", [0, 1], [], "base", "test", "1970-01-01", ["default", false], ["1.0"], []]];
  1091   var data = [["40b4d6888e92", [0, 1], [[0, 0, 1]], "\u80fd", "test", "1970-01-01", ["stable", true], ["tip"], ["something"]], ["1d22e65f027e", [0, 1], [[0, 0, 1]], "branch", "test", "1970-01-01", ["stable", false], [], []], ["a4f92ed23982", [0, 1], [[0, 0, 1]], "Added tag 1.0 for changeset 2ef0ac749a14", "test", "1970-01-01", ["default", true], [], []], ["2ef0ac749a14", [0, 1], [], "base", "test", "1970-01-01", ["default", false], ["1.0"], ["anotherthing"]]];
  1090 
  1092 
  1091 ERRORS ENCOUNTERED
  1093 ERRORS ENCOUNTERED
  1092 
  1094 
  1093   $ cat errors.log
  1095   $ cat errors.log