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 1970-01-01 test - base1.0 + base1.0 anotherthing @@ -317,7 +318,7 @@ Logs and changes

test

-

changeset 0:2ef0ac749a14 1.0

+

changeset 0:2ef0ac749a14 1.0 anotherthing