[PATCH] templates: rename `Last change' column in hgwebdir repository list

Dan Villiom Podlaski Christiansen danchr at gmail.com
Sun Jan 24 13:53:33 CST 2010


# HG changeset patch
# User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
# Date 1264362713 -3600
# Node ID 3223312439ec7eada70e2768d8ebc4898fb74ecf
# Parent  273abc01eda444750adf3108dfc3f7499cca4fc9
templates: rename `Last change' column in hgwebdir repository list.

This patch changes column headers in the templates that previously
said `Last change' to `Last modified'. Neither code nor functionality
are changed other than that.

For some time now, I have been annoyed by the fact the `Last change'
column didn't list the age of the youngest changeset in the
repository, or at least tip. It just occurred to me that this is
because the wording is slightly misleading; what the column in fact
lists is when the repository was last *modified*, that is, when
changesets was last added or removed from it.

The word `change' can be understood as referring to the changeset
itself. Using `changed' would be ever so slightly less
amigous. However, the standard nomenclature in this case is
`modification date' and `Last modified', which is incidentally entirely
unambigous. Hence, `Last modified' is the wording used.

diff --git a/mercurial/templates/gitweb/index.tmpl b/mercurial/templates/gitweb/index.tmpl
--- a/mercurial/templates/gitweb/index.tmpl
+++ b/mercurial/templates/gitweb/index.tmpl
@@ -13,7 +13,7 @@
         <td><a href="?sort={sort_name}">Name</a></td>
         <td><a href="?sort={sort_description}">Description</a></td>
         <td><a href="?sort={sort_contact}">Contact</a></td>
-        <td><a href="?sort={sort_lastchange}">Last change</a></td>
+        <td><a href="?sort={sort_lastchange}">Last modified</a></td>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
     </tr>
diff --git a/mercurial/templates/monoblue/index.tmpl b/mercurial/templates/monoblue/index.tmpl
--- a/mercurial/templates/monoblue/index.tmpl
+++ b/mercurial/templates/monoblue/index.tmpl
@@ -15,7 +15,7 @@
             <td><a href="?sort={sort_name}">Name</a></td>
             <td><a href="?sort={sort_description}">Description</a></td>
             <td><a href="?sort={sort_contact}">Contact</a></td>
-            <td><a href="?sort={sort_lastchange}">Last change</a></td>
+            <td><a href="?sort={sort_lastchange}">Last modified</a></td>
             <td>&nbsp;</td>
             <td>&nbsp;</td>
         </tr>
diff --git a/mercurial/templates/paper/index.tmpl b/mercurial/templates/paper/index.tmpl
--- a/mercurial/templates/paper/index.tmpl
+++ b/mercurial/templates/paper/index.tmpl
@@ -16,7 +16,7 @@
         <th><a href="?sort={sort_name}">Name</a></th>
         <th><a href="?sort={sort_description}">Description</a></th>
         <th><a href="?sort={sort_contact}">Contact</a></th>
-        <th><a href="?sort={sort_lastchange}">Last change</a></th>
+        <th><a href="?sort={sort_lastchange}">Last modified</a></th>
         <th>&nbsp;</th>
     </tr>
     {entries%indexentry}
diff --git a/mercurial/templates/spartan/index.tmpl b/mercurial/templates/spartan/index.tmpl
--- a/mercurial/templates/spartan/index.tmpl
+++ b/mercurial/templates/spartan/index.tmpl
@@ -10,7 +10,7 @@
         <td><a href="?sort={sort_name}">Name</a></td>
         <td><a href="?sort={sort_description}">Description</a></td>
         <td><a href="?sort={sort_contact}">Contact</a></td>
-        <td><a href="?sort={sort_lastchange}">Last change</a></td>
+        <td><a href="?sort={sort_lastchange}">Last modified</a></td>
         <td>&nbsp;</td>
     </tr>
     {entries%indexentry}
diff --git a/tests/test-hgwebdir.out b/tests/test-hgwebdir.out
--- a/tests/test-hgwebdir.out
+++ b/tests/test-hgwebdir.out
@@ -67,7 +67,7 @@ 200 Script output follows
         <th><a href="?sort=name">Name</a></th>
         <th><a href="?sort=description">Description</a></th>
         <th><a href="?sort=contact">Contact</a></th>
-        <th><a href="?sort=lastchange">Last change</a></th>
+        <th><a href="?sort=lastchange">Last modified</a></th>
         <th>&nbsp;</th>
     </tr>
     
@@ -203,7 +203,7 @@ 200 Script output follows
         <th><a href="?sort=name">Name</a></th>
         <th><a href="?sort=description">Description</a></th>
         <th><a href="?sort=contact">Contact</a></th>
-        <th><a href="?sort=lastchange">Last change</a></th>
+        <th><a href="?sort=lastchange">Last modified</a></th>
         <th>&nbsp;</th>
     </tr>
     


More information about the Mercurial-devel mailing list