Mercurial > hg
comparison tests/test-bookmarks-strip.t @ 11864:b2a06ef53b7b
tests: unify test-bookmarks-strip
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sat, 14 Aug 2010 03:00:22 +0200 |
parents | tests/test-bookmarks-strip@2313dc4d9817 |
children | 863567a1364f |
comparison
equal
deleted
inserted
replaced
11863:86ec95b1d37b | 11864:b2a06ef53b7b |
---|---|
1 $ . $TESTDIR/helpers.sh | |
2 $ echo "[extensions]" >> $HGRCPATH | |
3 $ echo "bookmarks=" >> $HGRCPATH | |
4 $ echo "mq=" >> $HGRCPATH | |
5 | |
6 $ hg init | |
7 | |
8 $ echo qqq>qqq.txt | |
9 | |
10 add file | |
11 | |
12 $ hg add | |
13 adding qqq.txt | |
14 | |
15 commit first revision | |
16 | |
17 $ hg ci -m 1 -u user -d "1 0" | |
18 | |
19 set bookmark | |
20 | |
21 $ hg book test | |
22 | |
23 $ echo www>>qqq.txt | |
24 | |
25 commit second revision | |
26 | |
27 $ hg ci -m 2 -u usr -d "1 0" | |
28 | |
29 set bookmark | |
30 | |
31 $ hg book test2 | |
32 | |
33 update to -2 | |
34 | |
35 $ hg update -r -2 | |
36 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
37 | |
38 $ echo eee>>qqq.txt | |
39 | |
40 commit new head | |
41 | |
42 $ hg ci -m 3 -u user -d "1 0" | |
43 created new head | |
44 | |
45 bookmarks updated? | |
46 | |
47 $ hg book | |
48 test 1:16b24da7e457 | |
49 test2 1:16b24da7e457 | |
50 | |
51 strip to revision 1 | |
52 | |
53 $ hg strip 1 | hidebackup | |
54 saved backup bundle to | |
55 | |
56 list bookmarks | |
57 | |
58 $ hg book | |
59 * test 1:9f1b7e78eff8 | |
60 * test2 1:9f1b7e78eff8 | |
61 |