comparison tests/test-bookmarks.t @ 22776:564ae7d2ec9b

bookmarks: port to generic templater
author Yuya Nishihara <yuya@tcha.org>
date Fri, 03 Oct 2014 00:43:22 +0900
parents b59c2c8c45df
children eeb5d5ab14a6
comparison
equal deleted inserted replaced
22775:b59c2c8c45df 22776:564ae7d2ec9b
2 2
3 no bookmarks 3 no bookmarks
4 4
5 $ hg bookmarks 5 $ hg bookmarks
6 no bookmarks set 6 no bookmarks set
7
8 $ hg bookmarks -Tjson
9 [
10 ]
7 11
8 bookmark rev -1 12 bookmark rev -1
9 13
10 $ hg bookmark X 14 $ hg bookmark X
11 15
56 Y -1:000000000000 60 Y -1:000000000000
57 61
58 $ echo b > b 62 $ echo b > b
59 $ hg add b 63 $ hg add b
60 $ hg commit -m 1 64 $ hg commit -m 1
65
66 $ hg bookmarks -Tjson
67 [
68 {
69 "active": false,
70 "bookmark": "X",
71 "node": "f7b1eb17ad24730a1651fccd46c43826d1bbc2ac",
72 "rev": 0
73 },
74 {
75 "active": true,
76 "bookmark": "X2",
77 "node": "925d80f479bb026b0fb3deb27503780b13f74123",
78 "rev": 1
79 },
80 {
81 "active": false,
82 "bookmark": "Y",
83 "node": "0000000000000000000000000000000000000000",
84 "rev": -1
85 }
86 ]
61 87
62 bookmarks revset 88 bookmarks revset
63 89
64 $ hg log -r 'bookmark()' 90 $ hg log -r 'bookmark()'
65 changeset: 0:f7b1eb17ad24 91 changeset: 0:f7b1eb17ad24