diff mercurial/hgweb/webcommands.py @ 13922:b8dd2e95b0ca

hgweb: sort bookmarks in the same manner as console command
author Yuya Nishihara <yuya@tcha.org>
date Sun, 10 Apr 2011 10:01:37 +0900
parents 08d49b6b8d32
children 2176c5babd53
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Sun Apr 10 06:37:20 2011 +0900
+++ b/mercurial/hgweb/webcommands.py	Sun Apr 10 10:01:37 2011 +0900
@@ -393,12 +393,11 @@
 
 def bookmarks(web, req, tmpl):
     i = web.repo._bookmarks.items()
-    i.reverse()
     parity = paritygen(web.stripecount)
 
     def entries(notip=False, limit=0, **map):
         count = 0
-        for k, n in i:
+        for k, n in sorted(i):
             if notip and k == "tip":
                 continue
             if limit > 0 and count >= limit: