Mercurial > hg
comparison tests/test-hgweb-json.t @ 28711:06ae7a6daad0
hgweb: sort bookmarks in revlog order of their nodes
Changes, branches and tags are already in revlog order on /summary, /branches
and /tags, let's now make bookmarks be sorted by the same principle. It's more
helpful to show more "recent" bookmarks on top. This will affect /bookmarks
page in all styles, including atom, rss and raw, and also /summary page.
Bookmarks are sorted using a (revision number, bookmark name) tuple.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 31 Mar 2016 15:22:06 +0800 |
parents | 94494031f659 |
children | c1b526f55116 |
comparison
equal
deleted
inserted
replaced
28710:ca0c0ca30c62 | 28711:06ae7a6daad0 |
---|---|
678 200 Script output follows | 678 200 Script output follows |
679 | 679 |
680 { | 680 { |
681 "bookmarks": [ | 681 "bookmarks": [ |
682 { | 682 { |
683 "bookmark": "bookmark2", | |
684 "date": [ | |
685 0.0, | |
686 0 | |
687 ], | |
688 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45" | |
689 }, | |
690 { | |
683 "bookmark": "bookmark1", | 691 "bookmark": "bookmark1", |
684 "date": [ | 692 "date": [ |
685 0.0, | 693 0.0, |
686 0 | 694 0 |
687 ], | 695 ], |
688 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5" | 696 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5" |
689 }, | |
690 { | |
691 "bookmark": "bookmark2", | |
692 "date": [ | |
693 0.0, | |
694 0 | |
695 ], | |
696 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45" | |
697 } | 697 } |
698 ], | 698 ], |
699 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7" | 699 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7" |
700 } | 700 } |
701 | 701 |