##// END OF EJS Templates
hgweb: generate last change date for an empty atom-bookmarks feed (issue5022)...
av6 -
r28712:80e92247 default
parent child Browse files
Show More
@@ -620,8 +620,14 b' def bookmarks(web, req, tmpl):'
620 620 "date": web.repo[n].date(),
621 621 "node": hex(n)}
622 622
623 if i:
624 latestrev = i[0][1]
625 else:
626 latestrev = -1
627
623 628 return tmpl("bookmarks",
624 629 node=hex(web.repo.changelog.tip()),
630 lastchange=[{"date": web.repo[latestrev].date()}],
625 631 entries=lambda **x: entries(latestonly=False, **x),
626 632 latestentry=lambda **x: entries(latestonly=True, **x))
627 633
@@ -5,7 +5,7 b''
5 5 <title>{repo|escape}: bookmarks</title>
6 6 <summary>{repo|escape} bookmark history</summary>
7 7 <author><name>Mercurial SCM</name></author>
8 {latestentry%feedupdated}
8 {lastchange%feedupdated}
9 9
10 10 {entries%bookmarkentry}
11 11 </feed>
@@ -472,7 +472,7 b' Some tests for hgweb in an empty reposit'
472 472 <title>test: bookmarks</title>
473 473 <summary>test bookmark history</summary>
474 474 <author><name>Mercurial SCM</name></author>
475
475 <updated>1970-01-01T00:00:00+00:00</updated>
476 476
477 477
478 478 </feed>
General Comments 0
You need to be logged in to leave comments. Login now