mercurial/hgweb/webcommands.py
changeset 38135 5e94d07b290a
parent 38134 edacd831afab
child 38136 e4a43d261715
--- a/mercurial/hgweb/webcommands.py	Wed Apr 04 20:19:51 2018 +0900
+++ b/mercurial/hgweb/webcommands.py	Wed Apr 04 20:21:29 2018 +0900
@@ -662,11 +662,12 @@
         latestrev = i[0][1]
     else:
         latestrev = -1
+    lastdate = web.repo[latestrev].date()
 
     return web.sendtemplate(
         'bookmarks',
         node=hex(web.repo.changelog.tip()),
-        lastchange=[{'date': web.repo[latestrev].date()}],
+        lastchange=templateutil.mappinglist([{'date': lastdate}]),
         entries=templateutil.mappinggenerator(entries, args=(False,)),
         latestentry=templateutil.mappinggenerator(entries, args=(True,)))