##// 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 $ hg init
7 echo "track.current = True" >> $HGRCPATH
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
16 $ hg bookmark X
12 hg bookmarks
13
17
14 echo % set bookmark X
18 list bookmarks
15 hg bookmark X
19
20 $ hg bookmark
21 * X -1:000000000000
16
22
17 echo % list bookmarks
23 list bookmarks with color
18 hg bookmark
19
24
20 echo % list bookmarks with color
25 $ hg --config extensions.color= --config color.mode=ansi \
21 hg --config extensions.color= --config color.mode=ansi \
26 > bookmark --color=always
22 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
34 list bookmarks
25 hg update X
35
36 $ hg bookmarks
37 * X -1:000000000000
26
38
27 echo % list bookmarks
39 rename
28 hg bookmarks
29
40
30 echo % rename
41 $ hg bookmark -m X Z
31 hg bookmark -m X Z
42
43 list bookmarks
32
44
33 echo % list bookmarks
45 $ hg bookmarks
34 hg bookmarks
46 * Z -1:000000000000
35
47
36 echo % new bookmark Y
48 new bookmark Y
37 hg bookmark Y
49
50 $ hg bookmark Y
51
52 list bookmarks
38
53
39 echo % list bookmarks
54 $ hg bookmark
40 hg bookmark
55 * Y -1:000000000000
56 Z -1:000000000000
57
58 commit
41
59
42 echo % commit
60 $ echo 'b' > b
43 echo 'b' > b
61 $ hg add b
44 hg add b
62 $ hg commit -m'test'
45 hg commit -m'test'
63
64 list bookmarks
46
65
47 echo % list bookmarks
66 $ hg bookmark
48 hg bookmark
67 * Y 0:719295282060
68 Z -1:000000000000
69
70 delete bookmarks
49
71
50 echo % delete bookmarks
72 $ hg bookmark -d Y
51 hg bookmark -d Y
73 $ hg bookmark -d Z
52 hg bookmark -d Z
74
75 list bookmarks
76
77 $ hg bookmark
78 no bookmarks set
53
79
54 echo % list bookmarks
80 update to tip
55 hg bookmark
56
81
57 echo % update to tip
82 $ hg update tip
58 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 .
87 $ hg bookmark -r . Y
61 hg bookmark -r . Y
62
88
63 echo % list bookmarks
89 list bookmarks
64 hg bookmark
90
91 $ hg bookmark
92 * Y 0:719295282060
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now