# HG changeset patch # User Yuya Nishihara # Date 1302397297 -32400 # Node ID b8dd2e95b0ca0041bfaca2ff09b40aa4aed071ce # Parent 4788923a2b33ae7b437365d238b5bd7be8508dea hgweb: sort bookmarks in the same manner as console command diff -r 4788923a2b33 -r b8dd2e95b0ca mercurial/hgweb/webcommands.py --- 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: diff -r 4788923a2b33 -r b8dd2e95b0ca tests/test-hgweb-commands.t --- a/tests/test-hgweb-commands.t Sun Apr 10 06:37:20 2011 +0900 +++ b/tests/test-hgweb-commands.t Sun Apr 10 10:01:37 2011 +0900 @@ -16,6 +16,7 @@ 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 @@ 1970-01-01 test - base1.0 + base1.0 anotherthing @@ -317,7 +318,7 @@

test

-

changeset 0:2ef0ac749a14 1.0

+

changeset 0:2ef0ac749a14 1.0 anotherthing