##// END OF EJS Templates
tests: unify test-bookmarks-current
Martin Geisler -
r11862:cad06c8d default
parent child Browse files
Show More
@@ -1,64 +1,92 b''
1 #!/bin/sh
1 $ echo "[extensions]" >> $HGRCPATH
2 $ echo "bookmarks=" >> $HGRCPATH
2 3
3 echo "[extensions]" >> $HGRCPATH
4 echo "bookmarks=" >> $HGRCPATH
4 $ echo "[bookmarks]" >> $HGRCPATH
5 $ echo "track.current = True" >> $HGRCPATH
5 6
6 echo "[bookmarks]" >> $HGRCPATH
7 echo "track.current = True" >> $HGRCPATH
7 $ hg init
8
9 no bookmarks
8 10
9 hg init
11 $ hg bookmarks
12 no bookmarks set
13
14 set bookmark X
10 15
11 echo % no bookmarks
12 hg bookmarks
16 $ hg bookmark X
13 17
14 echo % set bookmark X
15 hg bookmark X
18 list bookmarks
19
20 $ hg bookmark
21 * X -1:000000000000
16 22
17 echo % list bookmarks
18 hg bookmark
23 list bookmarks with color
19 24
20 echo % list bookmarks with color
21 hg --config extensions.color= --config color.mode=ansi \
22 bookmark --color=always
25 $ hg --config extensions.color= --config color.mode=ansi \
26 > bookmark --color=always
27  * X -1:000000000000
28
29 update to bookmark X
30
31 $ hg update X
32 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
23 33
24 echo % update to bookmark X
25 hg update X
34 list bookmarks
35
36 $ hg bookmarks
37 * X -1:000000000000
26 38
27 echo % list bookmarks
28 hg bookmarks
39 rename
29 40
30 echo % rename
31 hg bookmark -m X Z
41 $ hg bookmark -m X Z
42
43 list bookmarks
32 44
33 echo % list bookmarks
34 hg bookmarks
45 $ hg bookmarks
46 * Z -1:000000000000
35 47
36 echo % new bookmark Y
37 hg bookmark Y
48 new bookmark Y
49
50 $ hg bookmark Y
51
52 list bookmarks
38 53
39 echo % list bookmarks
40 hg bookmark
54 $ hg bookmark
55 * Y -1:000000000000
56 Z -1:000000000000
57
58 commit
41 59
42 echo % commit
43 echo 'b' > b
44 hg add b
45 hg commit -m'test'
60 $ echo 'b' > b
61 $ hg add b
62 $ hg commit -m'test'
63
64 list bookmarks
46 65
47 echo % list bookmarks
48 hg bookmark
66 $ hg bookmark
67 * Y 0:719295282060
68 Z -1:000000000000
69
70 delete bookmarks
49 71
50 echo % delete bookmarks
51 hg bookmark -d Y
52 hg bookmark -d Z
72 $ hg bookmark -d Y
73 $ hg bookmark -d Z
74
75 list bookmarks
76
77 $ hg bookmark
78 no bookmarks set
53 79
54 echo % list bookmarks
55 hg bookmark
80 update to tip
56 81
57 echo % update to tip
58 hg update tip
82 $ hg update tip
83 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
84
85 set bookmark Y using -r .
59 86
60 echo % set bookmark Y using -r .
61 hg bookmark -r . Y
87 $ hg bookmark -r . Y
62 88
63 echo % list bookmarks
64 hg bookmark
89 list bookmarks
90
91 $ hg bookmark
92 * Y 0:719295282060
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now