tests/test-bookmarks.t
changeset 22776 564ae7d2ec9b
parent 22775 b59c2c8c45df
child 23978 eeb5d5ab14a6
--- a/tests/test-bookmarks.t	Fri Oct 03 00:36:36 2014 +0900
+++ b/tests/test-bookmarks.t	Fri Oct 03 00:43:22 2014 +0900
@@ -5,6 +5,10 @@
   $ hg bookmarks
   no bookmarks set
 
+  $ hg bookmarks -Tjson
+  [
+  ]
+
 bookmark rev -1
 
   $ hg bookmark X
@@ -59,6 +63,28 @@
   $ hg add b
   $ hg commit -m 1
 
+  $ hg bookmarks -Tjson
+  [
+   {
+    "active": false,
+    "bookmark": "X",
+    "node": "f7b1eb17ad24730a1651fccd46c43826d1bbc2ac",
+    "rev": 0
+   },
+   {
+    "active": true,
+    "bookmark": "X2",
+    "node": "925d80f479bb026b0fb3deb27503780b13f74123",
+    "rev": 1
+   },
+   {
+    "active": false,
+    "bookmark": "Y",
+    "node": "0000000000000000000000000000000000000000",
+    "rev": -1
+   }
+  ]
+
 bookmarks revset
 
   $ hg log -r 'bookmark()'