Show More
@@ -1,91 +1,102 b'' | |||
|
1 | 1 | $ echo "[extensions]" >> $HGRCPATH |
|
2 | 2 | $ echo "bookmarks=" >> $HGRCPATH |
|
3 | 3 | |
|
4 | 4 | $ echo "[bookmarks]" >> $HGRCPATH |
|
5 | 5 | |
|
6 | 6 | $ hg init |
|
7 | 7 | |
|
8 | 8 | no bookmarks |
|
9 | 9 | |
|
10 | 10 | $ hg bookmarks |
|
11 | 11 | no bookmarks set |
|
12 | 12 | |
|
13 | 13 | set bookmark X |
|
14 | 14 | |
|
15 | 15 | $ hg bookmark X |
|
16 | 16 | |
|
17 | 17 | list bookmarks |
|
18 | 18 | |
|
19 | 19 | $ hg bookmark |
|
20 | 20 | * X -1:000000000000 |
|
21 | 21 | |
|
22 | 22 | list bookmarks with color |
|
23 | 23 | |
|
24 | 24 | $ hg --config extensions.color= --config color.mode=ansi \ |
|
25 | 25 | > bookmark --color=always |
|
26 | 26 | \x1b[0;32m * X -1:000000000000\x1b[0m (esc) |
|
27 | 27 | |
|
28 | 28 | update to bookmark X |
|
29 | 29 | |
|
30 | 30 | $ hg update X |
|
31 | 31 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
32 | 32 | |
|
33 | 33 | list bookmarks |
|
34 | 34 | |
|
35 | 35 | $ hg bookmarks |
|
36 | 36 | * X -1:000000000000 |
|
37 | 37 | |
|
38 | 38 | rename |
|
39 | 39 | |
|
40 | 40 | $ hg bookmark -m X Z |
|
41 | 41 | |
|
42 | 42 | list bookmarks |
|
43 | 43 | |
|
44 | 44 | $ hg bookmarks |
|
45 | 45 | * Z -1:000000000000 |
|
46 | 46 | |
|
47 | 47 | new bookmark Y |
|
48 | 48 | |
|
49 | 49 | $ hg bookmark Y |
|
50 | 50 | |
|
51 | 51 | list bookmarks |
|
52 | 52 | |
|
53 | 53 | $ hg bookmark |
|
54 | 54 | * Y -1:000000000000 |
|
55 | 55 | Z -1:000000000000 |
|
56 | 56 | |
|
57 | 57 | commit |
|
58 | 58 | |
|
59 | 59 | $ echo 'b' > b |
|
60 | 60 | $ hg add b |
|
61 | 61 | $ hg commit -m'test' |
|
62 | 62 | |
|
63 | 63 | list bookmarks |
|
64 | 64 | |
|
65 | 65 | $ hg bookmark |
|
66 | 66 | * Y 0:719295282060 |
|
67 | 67 | Z -1:000000000000 |
|
68 | 68 | |
|
69 | Verify that switching to Z updates the current bookmark: | |
|
70 | $ hg update Z | |
|
71 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
72 | $ hg bookmark | |
|
73 | Y 0:719295282060 | |
|
74 | * Z -1:000000000000 | |
|
75 | ||
|
76 | Switch back to Y for the remaining tests in this file: | |
|
77 | $ hg update Y | |
|
78 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
79 | ||
|
69 | 80 | delete bookmarks |
|
70 | 81 | |
|
71 | 82 | $ hg bookmark -d Y |
|
72 | 83 | $ hg bookmark -d Z |
|
73 | 84 | |
|
74 | 85 | list bookmarks |
|
75 | 86 | |
|
76 | 87 | $ hg bookmark |
|
77 | 88 | no bookmarks set |
|
78 | 89 | |
|
79 | 90 | update to tip |
|
80 | 91 | |
|
81 | 92 | $ hg update tip |
|
82 | 93 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
83 | 94 | |
|
84 | 95 | set bookmark Y using -r . |
|
85 | 96 | |
|
86 | 97 | $ hg bookmark -r . Y |
|
87 | 98 | |
|
88 | 99 | list bookmarks |
|
89 | 100 | |
|
90 | 101 | $ hg bookmark |
|
91 | 102 | * Y 0:719295282060 |
General Comments 0
You need to be logged in to leave comments.
Login now