##// END OF EJS Templates
tests: unify test-bookmarks-strip
Martin Geisler -
r11864:b2a06ef5 default
parent child Browse files
Show More
@@ -1,45 +1,61 b''
1 #!/bin/sh
1 $ . $TESTDIR/helpers.sh
2 $ echo "[extensions]" >> $HGRCPATH
3 $ echo "bookmarks=" >> $HGRCPATH
4 $ echo "mq=" >> $HGRCPATH
5
6 $ hg init
2
7
3 . $TESTDIR/helpers.sh
8 $ echo qqq>qqq.txt
4 echo "[extensions]" >> $HGRCPATH
5 echo "bookmarks=" >> $HGRCPATH
6 echo "mq=" >> $HGRCPATH
7
9
8 hg init
10 add file
9
11
10 echo qqq>qqq.txt
12 $ hg add
13 adding qqq.txt
11
14
12 echo % add file
15 commit first revision
13 hg add
16
17 $ hg ci -m 1 -u user -d "1 0"
18
19 set bookmark
20
21 $ hg book test
14
22
15 echo % commit first revision
23 $ echo www>>qqq.txt
16 hg ci -m 1 -u user -d "1 0"
24
25 commit second revision
17
26
18 echo % set bookmark
27 $ hg ci -m 2 -u usr -d "1 0"
19 hg book test
20
28
21 echo www>>qqq.txt
29 set bookmark
22
30
23 echo % commit second revision
31 $ hg book test2
24 hg ci -m 2 -u usr -d "1 0"
32
33 update to -2
34
35 $ hg update -r -2
36 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
25
37
26 echo % set bookmark
38 $ echo eee>>qqq.txt
27 hg book test2
39
40 commit new head
28
41
29 echo % update to -2
42 $ hg ci -m 3 -u user -d "1 0"
30 hg update -r -2
43 created new head
31
44
32 echo eee>>qqq.txt
45 bookmarks updated?
33
46
34 echo % commit new head
47 $ hg book
35 hg ci -m 3 -u user -d "1 0"
48 test 1:16b24da7e457
49 test2 1:16b24da7e457
36
50
37 echo % bookmarks updated?
51 strip to revision 1
38 hg book
39
52
40 echo % strip to revision 1
53 $ hg strip 1 | hidebackup
41 hg strip 1 | hidebackup
54 saved backup bundle to
55
56 list bookmarks
42
57
43 echo % list bookmarks
58 $ hg book
44 hg book
59 * test 1:9f1b7e78eff8
60 * test2 1:9f1b7e78eff8
45
61
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