changeset 3355:c10eacad7171

gitweb: fix last change field in summary
author Brendan Cully <brendan@kublai.com>
date Wed, 11 Oct 2006 16:32:06 -0700
parents 6152c00245e5
children fddb0ab6d307
files mercurial/hgweb/hgweb_mod.py templates/gitweb/summary.tmpl
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Wed Oct 11 16:20:35 2006 -0700
+++ b/mercurial/hgweb/hgweb_mod.py	Wed Oct 11 16:32:06 2006 -0700
@@ -538,10 +538,10 @@
                  owner = (self.repo.ui.config("ui", "username") or # preferred
                           self.repo.ui.config("web", "contact") or # deprecated
                           self.repo.ui.config("web", "author", "unknown")), # also
-                 lastchange = (0, 0), # FIXME
+                 lastchange = cl.read(cl.tip())[2],
                  tags = tagentries,
                  shortlog = changelist,
-                 node = hex(self.repo.changelog.tip()),
+                 node = hex(cl.tip()),
                  archives=self.archivelist("tip"))
 
     def filediff(self, fctx):
--- a/templates/gitweb/summary.tmpl	Wed Oct 11 16:20:35 2006 -0700
+++ b/templates/gitweb/summary.tmpl	Wed Oct 11 16:32:06 2006 -0700
@@ -21,7 +21,7 @@
 <table cellspacing="0">
 <tr><td>description</td><td>#desc#</td></tr>
 <tr><td>owner</td><td>#owner|escape#</td></tr>
-<!-- <tr><td>last change</td><td>#lastchange|rfc822date#</td></tr> -->
+<tr><td>last change</td><td>#lastchange|rfc822date#</td></tr>
 </table>
 
 <div><a  class="title" href="{url}log{getentries}">changes</a></div>