Mercurial > hg
changeset 13923:2176c5babd53
hgweb: remove useless notip handling from bookmarks listing
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 10 Apr 2011 10:01:39 +0900 |
parents | b8dd2e95b0ca |
children | ea726c97c1b6 |
files | mercurial/hgweb/webcommands.py |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Sun Apr 10 10:01:37 2011 +0900 +++ b/mercurial/hgweb/webcommands.py Sun Apr 10 10:01:39 2011 +0900 @@ -395,11 +395,9 @@ i = web.repo._bookmarks.items() parity = paritygen(web.stripecount) - def entries(notip=False, limit=0, **map): + def entries(limit=0, **map): count = 0 for k, n in sorted(i): - if notip and k == "tip": - continue if limit > 0 and count >= limit: continue count = count + 1 @@ -410,9 +408,8 @@ return tmpl("bookmarks", node=hex(web.repo.changelog.tip()), - entries=lambda **x: entries(False, 0, **x), - entriesnotip=lambda **x: entries(True, 0, **x), - latestentry=lambda **x: entries(True, 1, **x)) + entries=lambda **x: entries(0, **x), + latestentry=lambda **x: entries(1, **x)) def branches(web, req, tmpl): tips = (web.repo[n] for t, n in web.repo.branchtags().iteritems())