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