view tests/test-hgweb-filelog.out @ 7305:c21d236ca897

hgweb: descend empty directories in web view When a manifest has a series of directories with nothing in them but a single directory, displaying the entire chain of empty directories allows for navigation down to the first non-empty directory with a single click. Because Java links package hierarchy to directory hierarchy, and because Java conventions include at least three empty directories at the top of this hierarchy, descending down empty directories is very common in Java web tools.
author Ry4an Brase <ry4an-hg@ry4an.org>
date Mon, 03 Nov 2008 10:20:28 +0100
parents 591767e6ea7a
children d11473955d30
line wrap: on
line source

adding b
adding a
adding a
changeset:   4:52e848cdcd88
tag:         tip
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     del2 a

diff -r 01de2d66a28d -r 52e848cdcd88 a
--- a/a	Thu Jan 01 00:00:00 1970 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-b

changeset:   3:01de2d66a28d
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     second a

diff -r be3ebcc91739 -r 01de2d66a28d a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/a	Thu Jan 01 00:00:00 1970 +0000
@@ -0,0 +1,1 @@
+b

changeset:   2:be3ebcc91739
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     del a

diff -r 5ed941583260 -r be3ebcc91739 a
--- a/a	Thu Jan 01 00:00:00 1970 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-a

changeset:   1:5ed941583260
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     first a

diff -r 6563da9dcf87 -r 5ed941583260 a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/a	Thu Jan 01 00:00:00 1970 +0000
@@ -0,0 +1,1 @@
+a

changeset:   0:6563da9dcf87
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     b

diff -r 000000000000 -r 6563da9dcf87 b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/b	Thu Jan 01 00:00:00 1970 +0000
@@ -0,0 +1,1 @@
+b

% tip - two revisions
200 Script output follows

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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" />

<title>test: a history</title>
<link rel="alternate" type="application/atom+xml"
   href="/atom-log/tip/a" title="Atom feed for test:a">
<link rel="alternate" type="application/rss+xml"
   href="/rss-log/tip/a" title="RSS feed for test:a">
</head>
<body>

<div class="buttons">
<a href="/log">changelog</a>
<a href="/shortlog">shortlog</a>
<a href="/graph">graph</a>
<a href="/tags">tags</a>
<a href="/file/01de2d66a28d/a">file</a>
<a href="/annotate/01de2d66a28d/a">annotate</a>
<a type="application/rss+xml" href="/rss-log/tip/a">rss</a>
<a type="application/atom+xml" href="/atom-log/tip/a" title="Atom feed for test:a">atom</a>
</div>

<h2>a revision history</h2>

<p>navigate: <small class="navigate"><a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </small></p>

<table class="logEntry parity0">
 <tr>
  <th class="age">38 years ago:</th>
  <th class="firstline"><a href="/rev/01de2d66a28d">second a</a></th>
 </tr>
 <tr>
  <th class="revision">revision 1:</td>
  <td class="node">
   <a href="/file/01de2d66a28d/a">01de2d66a28d</a>
   <a href="/diff/01de2d66a28d/a">(diff)</a>
   <a href="/annotate/01de2d66a28d/a">(annotate)</a>
  </td>
 </tr>
 
 <tr>
  <th class="author">author:</th>
  <td class="author">&#116;&#101;&#115;&#116;</td>
 </tr>
 <tr>
  <th class="date">date:</th>
  <td class="date">Thu Jan 01 00:00:00 1970 +0000</td>
 </tr>
</table>


<table class="logEntry parity1">
 <tr>
  <th class="age">38 years ago:</th>
  <th class="firstline"><a href="/rev/5ed941583260">first a</a></th>
 </tr>
 <tr>
  <th class="revision">revision 0:</td>
  <td class="node">
   <a href="/file/5ed941583260/a">5ed941583260</a>
   <a href="/diff/5ed941583260/a">(diff)</a>
   <a href="/annotate/5ed941583260/a">(annotate)</a>
  </td>
 </tr>
 
 <tr>
  <th class="author">author:</th>
  <td class="author">&#116;&#101;&#115;&#116;</td>
 </tr>
 <tr>
  <th class="date">date:</th>
  <td class="date">Thu Jan 01 00:00:00 1970 +0000</td>
 </tr>
</table>





<div class="logo">
<a href="http://www.selenic.com/mercurial/">
<img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a>
</div>

</body>
</html>

% second version - two revisions
200 Script output follows

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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" />

<title>test: a history</title>
<link rel="alternate" type="application/atom+xml"
   href="/atom-log/tip/a" title="Atom feed for test:a">
<link rel="alternate" type="application/rss+xml"
   href="/rss-log/tip/a" title="RSS feed for test:a">
</head>
<body>

<div class="buttons">
<a href="/log">changelog</a>
<a href="/shortlog">shortlog</a>
<a href="/graph">graph</a>
<a href="/tags">tags</a>
<a href="/file/01de2d66a28d/a">file</a>
<a href="/annotate/01de2d66a28d/a">annotate</a>
<a type="application/rss+xml" href="/rss-log/tip/a">rss</a>
<a type="application/atom+xml" href="/atom-log/tip/a" title="Atom feed for test:a">atom</a>
</div>

<h2>a revision history</h2>

<p>navigate: <small class="navigate"><a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </small></p>

<table class="logEntry parity0">
 <tr>
  <th class="age">38 years ago:</th>
  <th class="firstline"><a href="/rev/01de2d66a28d">second a</a></th>
 </tr>
 <tr>
  <th class="revision">revision 1:</td>
  <td class="node">
   <a href="/file/01de2d66a28d/a">01de2d66a28d</a>
   <a href="/diff/01de2d66a28d/a">(diff)</a>
   <a href="/annotate/01de2d66a28d/a">(annotate)</a>
  </td>
 </tr>
 
 <tr>
  <th class="author">author:</th>
  <td class="author">&#116;&#101;&#115;&#116;</td>
 </tr>
 <tr>
  <th class="date">date:</th>
  <td class="date">Thu Jan 01 00:00:00 1970 +0000</td>
 </tr>
</table>


<table class="logEntry parity1">
 <tr>
  <th class="age">38 years ago:</th>
  <th class="firstline"><a href="/rev/5ed941583260">first a</a></th>
 </tr>
 <tr>
  <th class="revision">revision 0:</td>
  <td class="node">
   <a href="/file/5ed941583260/a">5ed941583260</a>
   <a href="/diff/5ed941583260/a">(diff)</a>
   <a href="/annotate/5ed941583260/a">(annotate)</a>
  </td>
 </tr>
 
 <tr>
  <th class="author">author:</th>
  <td class="author">&#116;&#101;&#115;&#116;</td>
 </tr>
 <tr>
  <th class="date">date:</th>
  <td class="date">Thu Jan 01 00:00:00 1970 +0000</td>
 </tr>
</table>





<div class="logo">
<a href="http://www.selenic.com/mercurial/">
<img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a>
</div>

</body>
</html>

% first deleted - one revision
200 Script output follows

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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" />

<title>test: a history</title>
<link rel="alternate" type="application/atom+xml"
   href="/atom-log/tip/a" title="Atom feed for test:a">
<link rel="alternate" type="application/rss+xml"
   href="/rss-log/tip/a" title="RSS feed for test:a">
</head>
<body>

<div class="buttons">
<a href="/log">changelog</a>
<a href="/shortlog">shortlog</a>
<a href="/graph">graph</a>
<a href="/tags">tags</a>
<a href="/file/5ed941583260/a">file</a>
<a href="/annotate/5ed941583260/a">annotate</a>
<a type="application/rss+xml" href="/rss-log/tip/a">rss</a>
<a type="application/atom+xml" href="/atom-log/tip/a" title="Atom feed for test:a">atom</a>
</div>

<h2>a revision history</h2>

<p>navigate: <small class="navigate"><a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </small></p>

<table class="logEntry parity0">
 <tr>
  <th class="age">38 years ago:</th>
  <th class="firstline"><a href="/rev/5ed941583260">first a</a></th>
 </tr>
 <tr>
  <th class="revision">revision 0:</td>
  <td class="node">
   <a href="/file/5ed941583260/a">5ed941583260</a>
   <a href="/diff/5ed941583260/a">(diff)</a>
   <a href="/annotate/5ed941583260/a">(annotate)</a>
  </td>
 </tr>
 
 <tr>
  <th class="author">author:</th>
  <td class="author">&#116;&#101;&#115;&#116;</td>
 </tr>
 <tr>
  <th class="date">date:</th>
  <td class="date">Thu Jan 01 00:00:00 1970 +0000</td>
 </tr>
</table>





<div class="logo">
<a href="http://www.selenic.com/mercurial/">
<img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a>
</div>

</body>
</html>

% first version - one revision
200 Script output follows

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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" />

<title>test: a history</title>
<link rel="alternate" type="application/atom+xml"
   href="/atom-log/tip/a" title="Atom feed for test:a">
<link rel="alternate" type="application/rss+xml"
   href="/rss-log/tip/a" title="RSS feed for test:a">
</head>
<body>

<div class="buttons">
<a href="/log">changelog</a>
<a href="/shortlog">shortlog</a>
<a href="/graph">graph</a>
<a href="/tags">tags</a>
<a href="/file/5ed941583260/a">file</a>
<a href="/annotate/5ed941583260/a">annotate</a>
<a type="application/rss+xml" href="/rss-log/tip/a">rss</a>
<a type="application/atom+xml" href="/atom-log/tip/a" title="Atom feed for test:a">atom</a>
</div>

<h2>a revision history</h2>

<p>navigate: <small class="navigate"><a href="/log/5ed941583260/a">(0)</a> <a href="/log/tip/a">tip</a> </small></p>

<table class="logEntry parity0">
 <tr>
  <th class="age">38 years ago:</th>
  <th class="firstline"><a href="/rev/5ed941583260">first a</a></th>
 </tr>
 <tr>
  <th class="revision">revision 0:</td>
  <td class="node">
   <a href="/file/5ed941583260/a">5ed941583260</a>
   <a href="/diff/5ed941583260/a">(diff)</a>
   <a href="/annotate/5ed941583260/a">(annotate)</a>
  </td>
 </tr>
 
 <tr>
  <th class="author">author:</th>
  <td class="author">&#116;&#101;&#115;&#116;</td>
 </tr>
 <tr>
  <th class="date">date:</th>
  <td class="date">Thu Jan 01 00:00:00 1970 +0000</td>
 </tr>
</table>





<div class="logo">
<a href="http://www.selenic.com/mercurial/">
<img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a>
</div>

</body>
</html>

% before addition - error
404 Not Found

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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" />

<title>Mercurial Error</title>
</head>
<body>

<h2>Mercurial Error</h2>

<p>
An error occurred while processing your request:
</p>
<p>
a@6563da9dcf87: not found in manifest
</p>


<div class="logo">
<a href="http://www.selenic.com/mercurial/">
<img src="/static/hglogo.png" width=75 height=90 border=0 alt="mercurial"></a>
</div>

</body>
</html>

% errors