# HG changeset patch # User Brendan Cully # Date 1160609526 25200 # Node ID c10eacad7171e4f9f01f4a39128bd5c0a586a93e # Parent 6152c00245e50a1478e30a3ee66dda8814a4b94e gitweb: fix last change field in summary diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -538,10 +538,10 @@ class hgweb(object): 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): diff --git a/templates/gitweb/summary.tmpl b/templates/gitweb/summary.tmpl --- a/templates/gitweb/summary.tmpl +++ b/templates/gitweb/summary.tmpl @@ -21,7 +21,7 @@ summary | - +
description#desc#
owner#owner|escape#
last change#lastchange|rfc822date#
changes