##// END OF EJS Templates
wireprotov2: implement commands as a generator of objects...
wireprotov2: implement commands as a generator of objects Previously, wire protocol version 2 inherited version 1's model of having separate types to represent the results of different wire protocol commands. As I implemented more powerful commands in future commits, I found I was using a common pattern of returning a special type to hold a generator. This meant the command function required a closure to do most of the work. That made logic flow more difficult to follow. I also noticed that many commands were effectively a sequence of objects to be CBOR encoded. I think it makes sense to define version 2 commands as generators. This way, commands can simply emit the data structures they wish to send to the client. This eliminates the need for a closure in command functions and removes encoding from the bodies of commands. As part of this commit, the handling of response objects has been moved into the serverreactor class. This puts the reactor in the driver's seat with regards to CBOR encoding and error handling. Having error handling in the function that emits frames is particularly important because exceptions in that function can lead to things getting in a bad state: I'm fairly certain that uncaught exceptions in the frame generator were causing deadlocks. I also introduced a dedicated error type for explicit error reporting in command handlers. This will be used in subsequent commits. There's still a bit of work to be done here, especially around formalizing the error handling "protocol." I've added yet another TODO to track this so we don't forget. Test output changed because we're using generators and no longer know we are at the end of the data until we hit the end of the generator. This means we can't emit the end-of-stream flag until we've exhausted the generator. Hence the introduction of 0-sized end-of-stream frames. Differential Revision: https://phab.mercurial-scm.org/D4472

File last commit:

r38204:273ce823 default
r39595:07b58266 default
Show More
test-hgweb-descend-empties.t
556 lines | 15.2 KiB | text/troff | Tads3Lexer
/ tests / test-hgweb-descend-empties.t
Matt Mackall
tests: replace exit 80 with #require
r22046 #require serve
Mads Kiilerich
tests: use 'hghave serve' to guard tests that requires serve daemon management
r15446
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 Test chains of near empty directories, terminating 3 different ways:
- a1: file at level 4 (deepest)
- b1: two dirs at level 3
Anton Shestakov
tests: actualize the comment in test-hgweb-descend-empties.t...
r25345 - d1: file at level 2
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434
Set up the repo
$ hg init test
$ cd test
$ mkdir -p a1/a2/a3/a4
$ mkdir -p b1/b2/b3/b4
Anton Shestakov
tests: actualize the comment in test-hgweb-descend-empties.t...
r25345 $ mkdir -p b1/b2/b3/c4
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 $ mkdir -p d1/d2/d3/d4
$ echo foo > a1/a2/a3/a4/foo
$ echo foo > b1/b2/b3/b4/foo
Anton Shestakov
tests: actualize the comment in test-hgweb-descend-empties.t...
r25345 $ echo foo > b1/b2/b3/c4/foo
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 $ echo foo > d1/d2/d3/d4/foo
$ echo foo > d1/d2/foo
$ hg ci -Ama
adding a1/a2/a3/a4/foo
adding b1/b2/b3/b4/foo
Anton Shestakov
tests: actualize the comment in test-hgweb-descend-empties.t...
r25345 adding b1/b2/b3/c4/foo
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 adding d1/d2/d3/d4/foo
adding d1/d2/foo
$ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
$ cat hg.pid >> $DAEMON_PIDS
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 manifest with descending (paper)
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434
Jun Wu
tests: use LOCALIP...
r31008 $ get-with-headers.py $LOCALIP:$HGPORT 'file'
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
<head>
<link rel="icon" href="/static/hgicon.png" type="image/png" />
<meta name="robots" content="index, nofollow" />
<link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
Benoit Allard
web: Made elapsed time calculation dynamic (javascript)....
r14046 <script type="text/javascript" src="/static/mercurial.js"></script>
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434
Anton Shestakov
tests: actualize the comment in test-hgweb-descend-empties.t...
r25345 <title>test: c9f45f7a1659 /</title>
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 </head>
<body>
<div class="container">
<div class="menu">
<div class="logo">
Matt Mackall
urls: bulk-change primary website URLs
r26421 <a href="https://mercurial-scm.org/">
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 <img src="/static/hglogo.png" alt="mercurial" /></a>
</div>
<ul>
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <li><a href="/shortlog/tip">log</a></li>
<li><a href="/graph/tip">graph</a></li>
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 <li><a href="/tags">tags</a></li>
Alexander Solovyov
hgweb: add separate page with bookmarks listing
r13597 <li><a href="/bookmarks">bookmarks</a></li>
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 <li><a href="/branches">branches</a></li>
</ul>
<ul>
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <li><a href="/rev/tip">changeset</a></li>
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 <li class="active">browse</li>
</ul>
<ul>
</ul>
Augie Fackler
web: add a help view for getting hg help output
r12666 <ul>
<li><a href="/help">help</a></li>
</ul>
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 </div>
<div class="main">
Bryan O'Sullivan
tests: update hgweb tests to include breadcrumbs
r18264 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
av6
hgweb: link to revision by node hash in paper & coal...
r25617 <h3>
directory / @ 0:<a href="/rev/c9f45f7a1659">c9f45f7a1659</a>
av6
hgweb: show commit phase if it's not public...
r35064 <span class="phase">draft</span> <span class="branchhead">default</span> <span class="tag">tip</span>
av6
hgweb: link to revision by node hash in paper & coal...
r25617 </h3>
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434
Gregory Szorc
hgweb: consolidate search form for paper...
r32758
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 <form class="search" action="/log">
Gregory Szorc
hgweb: consolidate search form for paper...
r32758 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
Alexander Plavin
paper: edit search hint to include new feature description
r19796 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
number or hash, or <a href="/help/revsets">revset expression</a>.</div>
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 </form>
<table class="bigtable">
Anton Shestakov
hgweb: replace implicit <tbody> with explicit <thead> where appropriate...
r24054 <thead>
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 <tr>
<th class="name">name</th>
<th class="size">size</th>
<th class="permissions">permissions</th>
</tr>
Anton Shestakov
hgweb: replace implicit <tbody> with explicit <thead> where appropriate...
r24054 </thead>
Alexander Plavin
hgweb: make stripes in directory view with CSS
r19447 <tbody class="stripes2">
av6
paper: don't show '[up]' in file view when in root directory already
r38201
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434
Alexander Plavin
hgweb: make stripes in directory view with CSS
r19447 <tr class="fileline">
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 <td class="name">
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <a href="/file/tip/a1">
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 <img src="/static/coal-folder.png" alt="dir."/> a1/
</a>
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <a href="/file/tip/a1/a2/a3/a4">
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 a2/a3/a4
</a>
</td>
<td class="size"></td>
<td class="permissions">drwxr-xr-x</td>
</tr>
Alexander Plavin
hgweb: make stripes in directory view with CSS
r19447 <tr class="fileline">
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 <td class="name">
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <a href="/file/tip/b1">
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 <img src="/static/coal-folder.png" alt="dir."/> b1/
</a>
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <a href="/file/tip/b1/b2/b3">
Anton Shestakov
tests: actualize the comment in test-hgweb-descend-empties.t...
r25345 b2/b3
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 </a>
</td>
<td class="size"></td>
<td class="permissions">drwxr-xr-x</td>
</tr>
Alexander Plavin
hgweb: make stripes in directory view with CSS
r19447 <tr class="fileline">
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 <td class="name">
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <a href="/file/tip/d1">
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 <img src="/static/coal-folder.png" alt="dir."/> d1/
</a>
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <a href="/file/tip/d1/d2">
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 d2
</a>
</td>
<td class="size"></td>
<td class="permissions">drwxr-xr-x</td>
</tr>
Alexander Plavin
hgweb: make stripes in directory view with CSS
r19447 </tbody>
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 </table>
</div>
</div>
</body>
</html>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 manifest with descending (coal)
Jun Wu
tests: use LOCALIP...
r31008 $ get-with-headers.py $LOCALIP:$HGPORT 'file?style=coal'
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
<head>
<link rel="icon" href="/static/hgicon.png" type="image/png" />
<meta name="robots" content="index, nofollow" />
av6
coal: reuse style-paper.css and use a separate css file for visual tweaks...
r26284 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
<link rel="stylesheet" href="/static/style-extra-coal.css" type="text/css" />
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <script type="text/javascript" src="/static/mercurial.js"></script>
<title>test: c9f45f7a1659 /</title>
</head>
<body>
<div class="container">
<div class="menu">
<div class="logo">
Matt Mackall
urls: bulk-change primary website URLs
r26421 <a href="https://mercurial-scm.org/">
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <img src="/static/hglogo.png" alt="mercurial" /></a>
</div>
<ul>
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <li><a href="/shortlog/tip?style=coal">log</a></li>
<li><a href="/graph/tip?style=coal">graph</a></li>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <li><a href="/tags?style=coal">tags</a></li>
<li><a href="/bookmarks?style=coal">bookmarks</a></li>
<li><a href="/branches?style=coal">branches</a></li>
</ul>
<ul>
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <li><a href="/rev/tip?style=coal">changeset</a></li>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <li class="active">browse</li>
</ul>
<ul>
</ul>
<ul>
<li><a href="/help?style=coal">help</a></li>
</ul>
</div>
<div class="main">
<h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
av6
hgweb: link to revision by node hash in paper & coal...
r25617 <h3>
directory / @ 0:<a href="/rev/c9f45f7a1659?style=coal">c9f45f7a1659</a>
av6
hgweb: show commit phase if it's not public...
r35064 <span class="phase">draft</span> <span class="branchhead">default</span> <span class="tag">tip</span>
av6
hgweb: link to revision by node hash in paper & coal...
r25617 </h3>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346
Gregory Szorc
hgweb: consolidate search form for paper...
r32758
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <form class="search" action="/log">
<input type="hidden" name="style" value="coal" />
Gregory Szorc
hgweb: consolidate search form for paper...
r32758 <p><input name="rev" id="search1" type="text" size="30" value="" /></p>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
number or hash, or <a href="/help/revsets">revset expression</a>.</div>
</form>
<table class="bigtable">
<thead>
<tr>
<th class="name">name</th>
<th class="size">size</th>
<th class="permissions">permissions</th>
</tr>
</thead>
<tbody class="stripes2">
av6
paper: don't show '[up]' in file view when in root directory already
r38201
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346
av6
hgweb: use css for stripey background in coal...
r25664 <tr class="fileline">
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <td class="name">
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <a href="/file/tip/a1?style=coal">
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <img src="/static/coal-folder.png" alt="dir."/> a1/
</a>
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <a href="/file/tip/a1/a2/a3/a4?style=coal">
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 a2/a3/a4
</a>
</td>
<td class="size"></td>
<td class="permissions">drwxr-xr-x</td>
</tr>
av6
hgweb: use css for stripey background in coal...
r25664 <tr class="fileline">
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <td class="name">
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <a href="/file/tip/b1?style=coal">
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <img src="/static/coal-folder.png" alt="dir."/> b1/
</a>
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <a href="/file/tip/b1/b2/b3?style=coal">
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 b2/b3
</a>
</td>
<td class="size"></td>
<td class="permissions">drwxr-xr-x</td>
</tr>
av6
hgweb: use css for stripey background in coal...
r25664 <tr class="fileline">
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <td class="name">
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <a href="/file/tip/d1?style=coal">
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <img src="/static/coal-folder.png" alt="dir."/> d1/
</a>
av6
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)...
r25606 <a href="/file/tip/d1/d2?style=coal">
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 d2
</a>
</td>
<td class="size"></td>
<td class="permissions">drwxr-xr-x</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>
manifest with descending (monoblue)
Jun Wu
tests: use LOCALIP...
r31008 $ get-with-headers.py $LOCALIP:$HGPORT 'file?style=monoblue'
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="icon" href="/static/hgicon.png" type="image/png" />
<meta name="robots" content="index, nofollow"/>
<link rel="stylesheet" href="/static/style-monoblue.css" type="text/css" />
<script type="text/javascript" src="/static/mercurial.js"></script>
<title>test: files</title>
<link rel="alternate" type="application/atom+xml" href="/atom-log" title="Atom feed for test"/>
<link rel="alternate" type="application/rss+xml" href="/rss-log" title="RSS feed for test"/>
</head>
<body>
<div id="container">
<div class="page-header">
<h1 class="breadcrumb"><a href="/">Mercurial</a> / files</h1>
Gregory Szorc
hgweb: consolidate search form for monoblue...
r32759
<form action="/log">
<input type="hidden" name="style" value="monoblue" />
<dl class="search">
<dt><label>Search: </label></dt>
<dd><input type="text" name="rev" value="" /></dd>
</dl>
</form>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346
<ul class="page-nav">
<li><a href="/summary?style=monoblue">summary</a></li>
<li><a href="/shortlog?style=monoblue">shortlog</a></li>
<li><a href="/changelog?style=monoblue">changelog</a></li>
av6
hgweb: don't dereference symbolic revision in monoblue style...
r25604 <li><a href="/graph/tip?style=monoblue">graph</a></li>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <li><a href="/tags?style=monoblue">tags</a></li>
<li><a href="/bookmarks?style=monoblue">bookmarks</a></li>
<li><a href="/branches?style=monoblue">branches</a></li>
<li class="current">files</li>
<li><a href="/help?style=monoblue">help</a></li>
</ul>
</div>
<ul class="submenu">
av6
hgweb: don't dereference symbolic revision in monoblue style...
r25604 <li><a href="/rev/tip?style=monoblue">changeset</a></li>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346
</ul>
<h2 class="no-link no-border">files</h2>
av6
hgweb: show commit phase if it's not public...
r35064 <p class="files">/ <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="default">default</span> <span class="tagtag" title="tip">tip</span> </span></p>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346
<table>
av6
monoblue: don't show '[up]' in file view when in root directory already
r38203
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346
<tr class="parity1">
<td>drwxr-xr-x</td>
<td></td>
<td></td>
<td>
av6
hgweb: don't dereference symbolic revision in monoblue style...
r25604 <a href="/file/tip/a1?style=monoblue">a1</a>
<a href="/file/tip/a1/a2/a3/a4?style=monoblue">a2/a3/a4</a>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 </td>
av6
hgweb: don't dereference symbolic revision in monoblue style...
r25604 <td><a href="/file/tip/a1?style=monoblue">files</a></td>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 </tr>
<tr class="parity0">
<td>drwxr-xr-x</td>
<td></td>
<td></td>
<td>
av6
hgweb: don't dereference symbolic revision in monoblue style...
r25604 <a href="/file/tip/b1?style=monoblue">b1</a>
<a href="/file/tip/b1/b2/b3?style=monoblue">b2/b3</a>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 </td>
av6
hgweb: don't dereference symbolic revision in monoblue style...
r25604 <td><a href="/file/tip/b1?style=monoblue">files</a></td>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 </tr>
<tr class="parity1">
<td>drwxr-xr-x</td>
<td></td>
<td></td>
<td>
av6
hgweb: don't dereference symbolic revision in monoblue style...
r25604 <a href="/file/tip/d1?style=monoblue">d1</a>
<a href="/file/tip/d1/d2?style=monoblue">d2</a>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 </td>
av6
hgweb: don't dereference symbolic revision in monoblue style...
r25604 <td><a href="/file/tip/d1?style=monoblue">files</a></td>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 </tr>
</table>
<div class="page-footer">
<p>Mercurial Repository: test</p>
<ul class="rss-logo">
<li><a href="/rss-log">RSS</a></li>
<li><a href="/atom-log">Atom</a></li>
</ul>
</div>
<div id="powered-by">
Matt Mackall
urls: bulk-change primary website URLs
r26421 <p><a href="https://mercurial-scm.org/" title="Mercurial"><img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a></p>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 </div>
</div>
</body>
</html>
manifest with descending (gitweb)
Jun Wu
tests: use LOCALIP...
r31008 $ get-with-headers.py $LOCALIP:$HGPORT 'file?style=gitweb'
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 200 Script output follows
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<link rel="icon" href="/static/hgicon.png" type="image/png" />
<meta name="robots" content="index, nofollow"/>
<link rel="stylesheet" href="/static/style-gitweb.css" type="text/css" />
<script type="text/javascript" src="/static/mercurial.js"></script>
<title>test: files</title>
<link rel="alternate" type="application/atom+xml"
href="/atom-log" title="Atom feed for test"/>
<link rel="alternate" type="application/rss+xml"
href="/rss-log" title="RSS feed for test"/>
</head>
<body>
<div class="page_header">
Matt Mackall
urls: bulk-change primary website URLs
r26421 <a href="https://mercurial-scm.org/" title="Mercurial" style="float: right;">Mercurial</a>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <a href="/">Mercurial</a> / files
</div>
<div class="page_nav">
Gregory Szorc
hgweb: refresh styling of gitweb's search form...
r32762 <div>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <a href="/summary?style=gitweb">summary</a> |
<a href="/shortlog?style=gitweb">shortlog</a> |
<a href="/log?style=gitweb">changelog</a> |
<a href="/graph?style=gitweb">graph</a> |
<a href="/tags?style=gitweb">tags</a> |
<a href="/bookmarks?style=gitweb">bookmarks</a> |
<a href="/branches?style=gitweb">branches</a> |
files |
av6
hgweb: don't dereference symbolic revision in gitweb style...
r25605 <a href="/rev/tip?style=gitweb">changeset</a> |
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <a href="/help?style=gitweb">help</a>
Gregory Szorc
hgweb: refresh styling of gitweb's search form...
r32762 </div>
<div class="search">
<form id="searchform" action="/log">
<input type="hidden" name="style" value="gitweb" />
<input name="rev" type="text" value="" size="40" />
<div id="hint">Find changesets by keywords (author, files, the commit message), revision
number or hash, or <a href="/help/revsets">revset expression</a>.</div>
</form>
</div>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 </div>
av6
hgweb: show commit phase if it's not public...
r35064 <div class="title">/ <span class="logtags"><span class="phasetag" title="draft">draft</span> <span class="branchtag" title="default">default</span> <span class="tagtag" title="tip">tip</span> </span></div>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <table cellspacing="0">
av6
gitweb: don't show '[up]' in file view when in root directory already
r38202
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346
<tr class="parity1">
<td style="font-family:monospace">drwxr-xr-x</td>
<td style="font-family:monospace"></td>
<td style="font-family:monospace"></td>
<td>
av6
hgweb: don't dereference symbolic revision in gitweb style...
r25605 <a href="/file/tip/a1?style=gitweb">a1</a>
<a href="/file/tip/a1/a2/a3/a4?style=gitweb">a2/a3/a4</a>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 </td>
<td class="link">
av6
hgweb: don't dereference symbolic revision in gitweb style...
r25605 <a href="/file/tip/a1?style=gitweb">files</a>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 </td>
</tr>
<tr class="parity0">
<td style="font-family:monospace">drwxr-xr-x</td>
<td style="font-family:monospace"></td>
<td style="font-family:monospace"></td>
<td>
av6
hgweb: don't dereference symbolic revision in gitweb style...
r25605 <a href="/file/tip/b1?style=gitweb">b1</a>
<a href="/file/tip/b1/b2/b3?style=gitweb">b2/b3</a>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 </td>
<td class="link">
av6
hgweb: don't dereference symbolic revision in gitweb style...
r25605 <a href="/file/tip/b1?style=gitweb">files</a>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 </td>
</tr>
<tr class="parity1">
<td style="font-family:monospace">drwxr-xr-x</td>
<td style="font-family:monospace"></td>
<td style="font-family:monospace"></td>
<td>
av6
hgweb: don't dereference symbolic revision in gitweb style...
r25605 <a href="/file/tip/d1?style=gitweb">d1</a>
<a href="/file/tip/d1/d2?style=gitweb">d2</a>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 </td>
<td class="link">
av6
hgweb: don't dereference symbolic revision in gitweb style...
r25605 <a href="/file/tip/d1?style=gitweb">files</a>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 </td>
</tr>
</table>
<div class="page_footer">
<div class="page_footer_text">test</div>
<div class="rss_logo">
<a href="/rss-log">RSS</a>
<a href="/atom-log">Atom</a>
</div>
<br />
</div>
</body>
</html>
manifest with descending (spartan)
Jun Wu
tests: use LOCALIP...
r31008 $ get-with-headers.py $LOCALIP:$HGPORT 'file?style=spartan'
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="icon" href="/static/hgicon.png" type="image/png">
<meta name="robots" content="index, nofollow" />
<link rel="stylesheet" href="/static/style.css" type="text/css" />
<script type="text/javascript" src="/static/mercurial.js"></script>
<title>test: files for changeset c9f45f7a1659</title>
</head>
<body>
<div class="buttons">
av6
hgweb: don't dereference symbolic revision in spartan style...
r25603 <a href="/log/tip?style=spartan">changelog</a>
<a href="/shortlog/tip?style=spartan">shortlog</a>
av6
spartan: don't drop current revision in log/graph links...
r25794 <a href="/graph/tip?style=spartan">graph</a>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <a href="/tags?style=spartan">tags</a>
<a href="/branches?style=spartan">branches</a>
av6
hgweb: don't dereference symbolic revision in spartan style...
r25603 <a href="/rev/tip?style=spartan">changeset</a>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346
<a href="/help?style=spartan">help</a>
</div>
<h2><a href="/">Mercurial</a> / files for changeset <a href="/rev/c9f45f7a1659">c9f45f7a1659</a>: /</h2>
<table cellpadding="0" cellspacing="0">
av6
spartan: don't show '[up]' in file view when in root directory already
r38204
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346
<tr class="parity1">
av6
spartan: add missing closing tags...
r38200 <td><tt>drwxr-xr-x</tt>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <td>
av6
hgweb: don't dereference symbolic revision in spartan style...
r25603 <a href="/file/tip/a1?style=spartan">a1/</a>
<a href="/file/tip/a1/a2/a3/a4?style=spartan">
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 a2/a3/a4
</a>
av6
spartan: add missing closing tags...
r38200 </td>
</tr>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <tr class="parity0">
av6
spartan: add missing closing tags...
r38200 <td><tt>drwxr-xr-x</tt>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <td>
av6
hgweb: don't dereference symbolic revision in spartan style...
r25603 <a href="/file/tip/b1?style=spartan">b1/</a>
<a href="/file/tip/b1/b2/b3?style=spartan">
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 b2/b3
</a>
av6
spartan: add missing closing tags...
r38200 </td>
</tr>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <tr class="parity1">
av6
spartan: add missing closing tags...
r38200 <td><tt>drwxr-xr-x</tt>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <td>
av6
hgweb: don't dereference symbolic revision in spartan style...
r25603 <a href="/file/tip/d1?style=spartan">d1/</a>
<a href="/file/tip/d1/d2?style=spartan">
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 d2
</a>
av6
spartan: add missing closing tags...
r38200 </td>
</tr>
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346
</table>
<div class="logo">
Matt Mackall
urls: bulk-change primary website URLs
r26421 <a href="https://mercurial-scm.org/">
Anton Shestakov
tests: descending empty dirs works in all hgweb styles, test them too...
r25346 <img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a>
</div>
</body>
</html>
Matt Mackall
tests: unify test-hgweb-descend-empties
r12434 $ cat errors.log
Mads Kiilerich
tests: add missing trailing 'cd ..'...
r16913
$ cd ..