--- 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())