diff 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
line wrap: on
line diff
--- a/tests/test-hgweb-json.t	Thu Mar 31 14:23:27 2016 +0800
+++ b/tests/test-hgweb-json.t	Thu Mar 31 15:22:06 2016 +0800
@@ -680,20 +680,20 @@
   {
     "bookmarks": [
       {
+        "bookmark": "bookmark2",
+        "date": [
+          0.0,
+          0
+        ],
+        "node": "ceed296fe500c3fac9541e31dad860cb49c89e45"
+      },
+      {
         "bookmark": "bookmark1",
         "date": [
           0.0,
           0
         ],
         "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5"
-      },
-      {
-        "bookmark": "bookmark2",
-        "date": [
-          0.0,
-          0
-        ],
-        "node": "ceed296fe500c3fac9541e31dad860cb49c89e45"
       }
     ],
     "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7"