gitweb: fix last change field in summary
authorBrendan Cully <brendan@kublai.com>
Wed, 11 Oct 2006 16:32:06 -0700
changeset 3355 c10eacad7171
parent 3354 6152c00245e5
child 3356 fddb0ab6d307
gitweb: fix last change field in summary
mercurial/hgweb/hgweb_mod.py
templates/gitweb/summary.tmpl
--- 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>