Show More
@@ -1,33 +1,33 | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | hg init t |
|
4 | 4 | cd t |
|
5 | 5 | hg branches |
|
6 | 6 | |
|
7 | 7 | echo foo > a |
|
8 | 8 | hg add a |
|
9 | hg ci -m "initial" -d "0 0" | |
|
9 | hg ci -m "initial" -d "1000000 0" | |
|
10 | 10 | hg branch foo |
|
11 | 11 | hg branch |
|
12 | hg ci -m "add branch name" -d "0 0" | |
|
12 | hg ci -m "add branch name" -d "1000000 0" | |
|
13 | 13 | hg branch bar |
|
14 | hg ci -m "change branch name" -d "0 0" | |
|
14 | hg ci -m "change branch name" -d "1000000 0" | |
|
15 | 15 | hg branch "" |
|
16 | hg ci -m "clear branch name" -d "0 0" | |
|
16 | hg ci -m "clear branch name" -d "1000000 0" | |
|
17 | 17 | |
|
18 | 18 | hg co foo |
|
19 | 19 | hg branch |
|
20 | 20 | echo bleah > a |
|
21 | hg ci -m "modify a branch" -d "0 0" | |
|
21 | hg ci -m "modify a branch" -d "1000000 0" | |
|
22 | 22 | |
|
23 | 23 | hg merge |
|
24 | 24 | hg branch |
|
25 |
|
|
|
25 | hg ci -m "merge" -d "1000000 0" | |
|
26 | 26 | hg log |
|
27 | 27 | |
|
28 | 28 | hg branches |
|
29 | 29 | hg branches -q |
|
30 | 30 | |
|
31 | 31 | echo % test for invalid branch cache |
|
32 | 32 | hg rollback |
|
33 | hg tip | |
|
33 | hg log -r foo |
@@ -1,58 +1,58 | |||
|
1 | 1 | foo |
|
2 | 2 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
3 | 3 | foo |
|
4 | 4 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
5 | 5 | (branch merge, don't forget to commit) |
|
6 | 6 | foo |
|
7 |
changeset: 5: |
|
|
7 | changeset: 5:5f8fb06e083e | |
|
8 | 8 | branch: foo |
|
9 | 9 | tag: tip |
|
10 |
parent: 4: |
|
|
11 | parent: 3:9d567d0b51f9 | |
|
10 | parent: 4:4909a3732169 | |
|
11 | parent: 3:bf1bc2f45e83 | |
|
12 | 12 | user: test |
|
13 |
date: |
|
|
13 | date: Mon Jan 12 13:46:40 1970 +0000 | |
|
14 | 14 | summary: merge |
|
15 | 15 | |
|
16 |
changeset: 4: |
|
|
16 | changeset: 4:4909a3732169 | |
|
17 | 17 | branch: foo |
|
18 |
parent: 1: |
|
|
18 | parent: 1:b699b1cec9c2 | |
|
19 | 19 | user: test |
|
20 |
date: |
|
|
20 | date: Mon Jan 12 13:46:40 1970 +0000 | |
|
21 | 21 | summary: modify a branch |
|
22 | 22 | |
|
23 | changeset: 3:9d567d0b51f9 | |
|
23 | changeset: 3:bf1bc2f45e83 | |
|
24 | 24 | user: test |
|
25 |
date: |
|
|
25 | date: Mon Jan 12 13:46:40 1970 +0000 | |
|
26 | 26 | summary: clear branch name |
|
27 | 27 | |
|
28 |
changeset: 2: |
|
|
28 | changeset: 2:67ec16bde7f1 | |
|
29 | 29 | branch: bar |
|
30 | 30 | user: test |
|
31 |
date: |
|
|
31 | date: Mon Jan 12 13:46:40 1970 +0000 | |
|
32 | 32 | summary: change branch name |
|
33 | 33 | |
|
34 |
changeset: 1: |
|
|
34 | changeset: 1:b699b1cec9c2 | |
|
35 | 35 | branch: foo |
|
36 | 36 | user: test |
|
37 |
date: |
|
|
37 | date: Mon Jan 12 13:46:40 1970 +0000 | |
|
38 | 38 | summary: add branch name |
|
39 | 39 | |
|
40 |
changeset: 0: |
|
|
40 | changeset: 0:be8523e69bf8 | |
|
41 | 41 | user: test |
|
42 |
date: |
|
|
42 | date: Mon Jan 12 13:46:40 1970 +0000 | |
|
43 | 43 | summary: initial |
|
44 | 44 | |
|
45 |
foo 5: |
|
|
46 |
bar 2: |
|
|
45 | foo 5:5f8fb06e083e | |
|
46 | bar 2:67ec16bde7f1 | |
|
47 | 47 | foo |
|
48 | 48 | bar |
|
49 | 49 | % test for invalid branch cache |
|
50 | 50 | rolling back last transaction |
|
51 |
changeset: 4: |
|
|
51 | changeset: 4:4909a3732169 | |
|
52 | 52 | branch: foo |
|
53 | 53 | tag: tip |
|
54 |
parent: 1: |
|
|
54 | parent: 1:b699b1cec9c2 | |
|
55 | 55 | user: test |
|
56 |
date: |
|
|
56 | date: Mon Jan 12 13:46:40 1970 +0000 | |
|
57 | 57 | summary: modify a branch |
|
58 | 58 |
General Comments 0
You need to be logged in to leave comments.
Login now