diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -393,12 +393,11 @@ def tags(web, req, tmpl): 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: diff --git a/tests/test-hgweb-commands.t b/tests/test-hgweb-commands.t --- a/tests/test-hgweb-commands.t +++ b/tests/test-hgweb-commands.t @@ -16,6 +16,7 @@ Set up the repo adding foo $ hg tag 1.0 $ hg bookmark something + $ hg bookmark -r0 anotherthing $ echo another > foo $ hg branch stable marked working directory as branch stable @@ -256,7 +257,7 @@ Logs and changes