##// END OF EJS Templates
bookmarks: Fix tests...
David Soria Parra -
r7482:42cb14f2 default
parent child Browse files
Show More
@@ -1,42 +1,44
1 % initialize repository
1 % initialize repository
2 adding a
2 adding a
3 adding b
3 adding b
4 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
4 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
5 adding c
5 adding c
6 created new head
6 created new head
7 adding d
7 adding d
8 % bookmark list
8 % bookmark list
9 * two 3:2ae46b1d99a7
9 * two 3:2ae46b1d99a7
10 one 1:925d80f479bb
10 one 1:925d80f479bb
11 % rebase
11 % rebase
12 saving bundle to
12 saving bundle to
13 adding branch
13 adding branch
14 adding changesets
14 adding changesets
15 adding manifests
15 adding manifests
16 adding file changes
16 adding file changes
17 added 1 changesets with 1 changes to 1 files (-1 heads)
17 added 1 changesets with 1 changes to 1 files (-1 heads)
18 rebase completed
18 rebase completed
19 changeset: 3:9163974d1cb5
19 changeset: 3:9163974d1cb5
20 tag: tip
20 tag: tip
21 tag: two
22 tag: one
21 parent: 1:925d80f479bb
23 parent: 1:925d80f479bb
22 parent: 2:db815d6d32e6
24 parent: 2:db815d6d32e6
23 user: test
25 user: test
24 date: Thu Jan 01 00:00:00 1970 +0000
26 date: Thu Jan 01 00:00:00 1970 +0000
25 summary: 3
27 summary: 3
26
28
27 changeset: 2:db815d6d32e6
29 changeset: 2:db815d6d32e6
28 parent: 0:f7b1eb17ad24
30 parent: 0:f7b1eb17ad24
29 user: test
31 user: test
30 date: Thu Jan 01 00:00:00 1970 +0000
32 date: Thu Jan 01 00:00:00 1970 +0000
31 summary: 2
33 summary: 2
32
34
33 changeset: 1:925d80f479bb
35 changeset: 1:925d80f479bb
34 user: test
36 user: test
35 date: Thu Jan 01 00:00:00 1970 +0000
37 date: Thu Jan 01 00:00:00 1970 +0000
36 summary: 1
38 summary: 1
37
39
38 changeset: 0:f7b1eb17ad24
40 changeset: 0:f7b1eb17ad24
39 user: test
41 user: test
40 date: Thu Jan 01 00:00:00 1970 +0000
42 date: Thu Jan 01 00:00:00 1970 +0000
41 summary: 0
43 summary: 0
42
44
@@ -1,70 +1,74
1 % no bookmarks
1 % no bookmarks
2 no bookmarks set
2 no bookmarks set
3 % bookmark rev -1
3 % bookmark rev -1
4 % list bookmarks
4 % list bookmarks
5 * X -1:000000000000
5 * X -1:000000000000
6 % bookmark X moved to rev 0
6 % bookmark X moved to rev 0
7 * X 0:f7b1eb17ad24
7 * X 0:f7b1eb17ad24
8 % look up bookmark
8 % look up bookmark
9 changeset: 0:f7b1eb17ad24
9 changeset: 0:f7b1eb17ad24
10 tag: X
10 tag: tip
11 tag: tip
11 user: test
12 user: test
12 date: Thu Jan 01 00:00:00 1970 +0000
13 date: Thu Jan 01 00:00:00 1970 +0000
13 summary: 0
14 summary: 0
14
15
15 % second bookmark for rev 0
16 % second bookmark for rev 0
16 % bookmark rev -1 again
17 % bookmark rev -1 again
17 % list bookmarks
18 % list bookmarks
18 * X2 0:f7b1eb17ad24
19 * X2 0:f7b1eb17ad24
19 * X 0:f7b1eb17ad24
20 * X 0:f7b1eb17ad24
20 Y -1:000000000000
21 Y -1:000000000000
21 % bookmarks X and X2 moved to rev 1, Y at rev -1
22 % bookmarks X and X2 moved to rev 1, Y at rev -1
22 * X2 1:925d80f479bb
23 * X2 1:925d80f479bb
23 * X 1:925d80f479bb
24 * X 1:925d80f479bb
24 Y -1:000000000000
25 Y -1:000000000000
25 % bookmark rev 0 again
26 % bookmark rev 0 again
26 % bookmarks X and X2 moved to rev 2, Y at rev -1, Z at rev 0
27 % bookmarks X and X2 moved to rev 2, Y at rev -1, Z at rev 0
27 * X2 2:0316ce92851d
28 * X2 2:0316ce92851d
28 * X 2:0316ce92851d
29 * X 2:0316ce92851d
29 Z 0:f7b1eb17ad24
30 Z 0:f7b1eb17ad24
30 Y -1:000000000000
31 Y -1:000000000000
31 % rename nonexistent bookmark
32 % rename nonexistent bookmark
32 abort: a bookmark of this name does not exist
33 abort: a bookmark of this name does not exist
33 % rename to existent bookmark
34 % rename to existent bookmark
34 abort: a bookmark of the same name already exists
35 abort: a bookmark of the same name already exists
35 % force rename to existent bookmark
36 % force rename to existent bookmark
36 % list bookmarks
37 % list bookmarks
37 * X2 2:0316ce92851d
38 * X2 2:0316ce92851d
38 * Y 2:0316ce92851d
39 * Y 2:0316ce92851d
39 Z 0:f7b1eb17ad24
40 Z 0:f7b1eb17ad24
40 % rename without new name
41 % rename without new name
41 abort: new bookmark name required
42 abort: new bookmark name required
42 % delete without name
43 % delete without name
43 abort: bookmark name required
44 abort: bookmark name required
44 % delete nonexistent bookmark
45 % delete nonexistent bookmark
45 abort: a bookmark of this name does not exist
46 abort: a bookmark of this name does not exist
46 % bookmark name with spaces should be stripped
47 % bookmark name with spaces should be stripped
47 % list bookmarks
48 % list bookmarks
48 * X2 2:0316ce92851d
49 * X2 2:0316ce92851d
49 * Y 2:0316ce92851d
50 * Y 2:0316ce92851d
50 Z 0:f7b1eb17ad24
51 Z 0:f7b1eb17ad24
51 * x y 2:0316ce92851d
52 * x y 2:0316ce92851d
52 % look up stripped bookmark name
53 % look up stripped bookmark name
53 changeset: 2:0316ce92851d
54 changeset: 2:0316ce92851d
55 tag: X2
56 tag: Y
54 tag: tip
57 tag: tip
58 tag: x y
55 user: test
59 user: test
56 date: Thu Jan 01 00:00:00 1970 +0000
60 date: Thu Jan 01 00:00:00 1970 +0000
57 summary: 2
61 summary: 2
58
62
59 % reject bookmark name with newline
63 % reject bookmark name with newline
60 abort: bookmark name cannot contain newlines
64 abort: bookmark name cannot contain newlines
61 % bookmark with existing name
65 % bookmark with existing name
62 abort: a bookmark of the same name already exists
66 abort: a bookmark of the same name already exists
63 % force bookmark with existing name
67 % force bookmark with existing name
64 % list bookmarks
68 % list bookmarks
65 * X2 2:0316ce92851d
69 * X2 2:0316ce92851d
66 * Y 2:0316ce92851d
70 * Y 2:0316ce92851d
67 * Z 2:0316ce92851d
71 * Z 2:0316ce92851d
68 * x y 2:0316ce92851d
72 * x y 2:0316ce92851d
69 % revision but no bookmark name
73 % revision but no bookmark name
70 abort: bookmark name required
74 abort: bookmark name required
General Comments 0
You need to be logged in to leave comments. Login now