Patchwork [1,of,2] tests: actualize the comment in test-hgweb-descend-empties.t

login
register
mail settings
Submitter Anton Shestakov
Date May 29, 2015, 6:22 p.m.
Message ID <6e84d51e38e9c8eef3d5.1432923769@neuro>
Download mbox | patch
Permalink /patch/9384/
State Accepted
Headers show

Comments

Anton Shestakov - May 29, 2015, 6:22 p.m.
# HG changeset patch
# User Anton Shestakov <engored@ya.ru>
# Date 1432922239 -28800
#      Sat May 30 01:57:19 2015 +0800
# Node ID 6e84d51e38e9c8eef3d55b5d2780bde18e646b98
# Parent  a4acf019dd5b72e91a1b1321d80d298033be8111
tests: actualize the comment in test-hgweb-descend-empties.t

The comment came together with the whole test file and the feature (descend
empty dirs in hgweb) in c21d236ca897, but for some reason wasn't exactly
accurate.

Namely, there isn't e1 directory in the test at all, it obviously should say
d1; and b1 didn't terminate at level 3, but does now.

Patch

diff --git a/tests/test-hgweb-descend-empties.t b/tests/test-hgweb-descend-empties.t
--- a/tests/test-hgweb-descend-empties.t
+++ b/tests/test-hgweb-descend-empties.t
@@ -3,7 +3,7 @@ 
 Test chains of near empty directories, terminating 3 different ways:
 - a1: file at level 4 (deepest)
 - b1: two dirs at level 3
-- e1: file at level 2
+- d1: file at level 2
 
 Set up the repo
 
@@ -11,17 +11,17 @@  Set up the repo
   $ cd test
   $ mkdir -p a1/a2/a3/a4
   $ mkdir -p b1/b2/b3/b4
-  $ mkdir -p b1/b2/c3/c4
+  $ mkdir -p b1/b2/b3/c4
   $ mkdir -p d1/d2/d3/d4
   $ echo foo > a1/a2/a3/a4/foo
   $ echo foo > b1/b2/b3/b4/foo
-  $ echo foo > b1/b2/c3/c4/foo
+  $ echo foo > b1/b2/b3/c4/foo
   $ 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
-  adding b1/b2/c3/c4/foo
+  adding b1/b2/b3/c4/foo
   adding d1/d2/d3/d4/foo
   adding d1/d2/foo
   $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
@@ -40,7 +40,7 @@  manifest with descending
   <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
   <script type="text/javascript" src="/static/mercurial.js"></script>
   
-  <title>test: 9087c84a0f5d /</title>
+  <title>test: c9f45f7a1659 /</title>
   </head>
   <body>
   
@@ -51,14 +51,14 @@  manifest with descending
   <img src="/static/hglogo.png" alt="mercurial" /></a>
   </div>
   <ul>
-  <li><a href="/shortlog/9087c84a0f5d">log</a></li>
-  <li><a href="/graph/9087c84a0f5d">graph</a></li>
+  <li><a href="/shortlog/c9f45f7a1659">log</a></li>
+  <li><a href="/graph/c9f45f7a1659">graph</a></li>
   <li><a href="/tags">tags</a></li>
   <li><a href="/bookmarks">bookmarks</a></li>
   <li><a href="/branches">branches</a></li>
   </ul>
   <ul>
-  <li><a href="/rev/9087c84a0f5d">changeset</a></li>
+  <li><a href="/rev/c9f45f7a1659">changeset</a></li>
   <li class="active">browse</li>
   </ul>
   <ul>
@@ -71,7 +71,7 @@  manifest with descending
   
   <div class="main">
   <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
-  <h3>directory / @ 0:9087c84a0f5d <span class="tag">tip</span> </h3>
+  <h3>directory / @ 0:c9f45f7a1659 <span class="tag">tip</span> </h3>
   
   <form class="search" action="/log">
   
@@ -90,17 +90,17 @@  manifest with descending
   </thead>
   <tbody class="stripes2">
   <tr class="fileline">
-    <td class="name"><a href="/file/9087c84a0f5d/">[up]</a></td>
+    <td class="name"><a href="/file/c9f45f7a1659/">[up]</a></td>
     <td class="size"></td>
     <td class="permissions">drwxr-xr-x</td>
   </tr>
   
   <tr class="fileline">
   <td class="name">
-  <a href="/file/9087c84a0f5d/a1">
+  <a href="/file/c9f45f7a1659/a1">
   <img src="/static/coal-folder.png" alt="dir."/> a1/
   </a>
-  <a href="/file/9087c84a0f5d/a1/a2/a3/a4">
+  <a href="/file/c9f45f7a1659/a1/a2/a3/a4">
   a2/a3/a4
   </a>
   </td>
@@ -109,11 +109,11 @@  manifest with descending
   </tr>
   <tr class="fileline">
   <td class="name">
-  <a href="/file/9087c84a0f5d/b1">
+  <a href="/file/c9f45f7a1659/b1">
   <img src="/static/coal-folder.png" alt="dir."/> b1/
   </a>
-  <a href="/file/9087c84a0f5d/b1/b2">
-  b2
+  <a href="/file/c9f45f7a1659/b1/b2/b3">
+  b2/b3
   </a>
   </td>
   <td class="size"></td>
@@ -121,10 +121,10 @@  manifest with descending
   </tr>
   <tr class="fileline">
   <td class="name">
-  <a href="/file/9087c84a0f5d/d1">
+  <a href="/file/c9f45f7a1659/d1">
   <img src="/static/coal-folder.png" alt="dir."/> d1/
   </a>
-  <a href="/file/9087c84a0f5d/d1/d2">
+  <a href="/file/c9f45f7a1659/d1/d2">
   d2
   </a>
   </td>