hgweb: remove useless notip handling from bookmarks listing
authorYuya Nishihara <yuya@tcha.org>
Sun, 10 Apr 2011 10:01:39 +0900
changeset 13923 2176c5babd53
parent 13922 b8dd2e95b0ca
child 13924 ea726c97c1b6
hgweb: remove useless notip handling from bookmarks listing
mercurial/hgweb/webcommands.py
--- 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())