changeset 28712 | 80e922479891 |
parent 28711 | 06ae7a6daad0 |
child 29216 | ead25aa27a43 |
--- a/mercurial/hgweb/webcommands.py Thu Mar 31 15:22:06 2016 +0800 +++ b/mercurial/hgweb/webcommands.py Thu Mar 31 15:37:21 2016 +0800 @@ -620,8 +620,14 @@ "date": web.repo[n].date(), "node": hex(n)} + if i: + latestrev = i[0][1] + else: + latestrev = -1 + return tmpl("bookmarks", node=hex(web.repo.changelog.tip()), + lastchange=[{"date": web.repo[latestrev].date()}], entries=lambda **x: entries(latestonly=False, **x), latestentry=lambda **x: entries(latestonly=True, **x))