Show More
@@ -1,34 +1,48 | |||||
1 | #!/bin/sh -e |
|
1 | #!/bin/sh -e | |
2 |
|
2 | |||
3 | umask 027 |
|
3 | umask 027 | |
4 | mkdir test1 |
|
4 | mkdir test1 | |
5 | cd test1 |
|
5 | cd test1 | |
6 |
|
6 | |||
7 | hg init |
|
7 | hg init | |
8 | touch a b |
|
8 | touch a b | |
9 | hg add a b |
|
9 | hg add a b | |
10 | hg ci -m "added a b" -d "1000000 0" |
|
10 | hg ci -m "added a b" -d "1000000 0" | |
11 |
|
11 | |||
12 | cd .. |
|
12 | cd .. | |
|
13 | hg clone test1 test3 | |||
13 | mkdir test2 |
|
14 | mkdir test2 | |
14 | cd test2 |
|
15 | cd test2 | |
15 |
|
16 | |||
16 | hg init |
|
17 | hg init | |
17 | hg pull ../test1 |
|
18 | hg pull ../test1 | |
18 | hg co |
|
19 | hg co | |
19 | chmod +x a |
|
20 | chmod +x a | |
20 | hg ci -m "chmod +x a" -d "1000000 0" |
|
21 | hg ci -m "chmod +x a" -d "1000000 0" | |
21 |
|
22 | |||
22 | cd ../test1 |
|
23 | cd ../test1 | |
23 | echo 123 >>a |
|
24 | echo 123 >>a | |
24 | hg ci -m "a updated" -d "1000000 0" |
|
25 | hg ci -m "a updated" -d "1000000 0" | |
25 |
|
26 | |||
26 | hg pull ../test2 |
|
27 | hg pull ../test2 | |
27 | hg heads |
|
28 | hg heads | |
28 | hg history |
|
29 | hg history | |
29 |
|
30 | |||
30 | hg -v merge |
|
31 | hg -v merge | |
31 |
|
32 | |||
32 | ls -l ../test[12]/a > foo |
|
33 | cd ../test3 | |
|
34 | echo 123 >>b | |||
|
35 | hg ci -m "b updated" -d "1000000 0" | |||
|
36 | ||||
|
37 | hg pull ../test2 | |||
|
38 | hg heads | |||
|
39 | hg history | |||
|
40 | ||||
|
41 | hg -v merge | |||
|
42 | ||||
|
43 | ls -l ../test[123]/a > foo | |||
33 | cut -b 1-10 < foo |
|
44 | cut -b 1-10 < foo | |
34 |
|
45 | |||
|
46 | hg debugindex .hg/data/a.i | |||
|
47 | hg debugindex ../test2/.hg/data/a.i | |||
|
48 | hg debugindex ../test1/.hg/data/a.i |
@@ -1,51 +1,103 | |||||
|
1 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
1 | pulling from ../test1 |
|
2 | pulling from ../test1 | |
2 | requesting all changes |
|
3 | requesting all changes | |
3 | adding changesets |
|
4 | adding changesets | |
4 | adding manifests |
|
5 | adding manifests | |
5 | adding file changes |
|
6 | adding file changes | |
6 | added 1 changesets with 2 changes to 2 files |
|
7 | added 1 changesets with 2 changes to 2 files | |
7 | (run 'hg update' to get a working copy) |
|
8 | (run 'hg update' to get a working copy) | |
8 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
9 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
9 | pulling from ../test2 |
|
10 | pulling from ../test2 | |
10 | searching for changes |
|
11 | searching for changes | |
11 | adding changesets |
|
12 | adding changesets | |
12 | adding manifests |
|
13 | adding manifests | |
13 | adding file changes |
|
14 | adding file changes | |
14 | added 1 changesets with 1 changes to 1 files (+1 heads) |
|
15 | added 1 changesets with 1 changes to 1 files (+1 heads) | |
15 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
16 | (run 'hg heads' to see heads, 'hg merge' to merge) | |
16 | changeset: 2:b833d578451e |
|
17 | changeset: 2:b833d578451e | |
17 | tag: tip |
|
18 | tag: tip | |
18 | parent: 0:4536b1c2ca69 |
|
19 | parent: 0:4536b1c2ca69 | |
19 | user: test |
|
20 | user: test | |
20 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
21 | date: Mon Jan 12 13:46:40 1970 +0000 | |
21 | summary: chmod +x a |
|
22 | summary: chmod +x a | |
22 |
|
23 | |||
23 | changeset: 1:a187cb361a5a |
|
24 | changeset: 1:a187cb361a5a | |
24 | user: test |
|
25 | user: test | |
25 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
26 | date: Mon Jan 12 13:46:40 1970 +0000 | |
26 | summary: a updated |
|
27 | summary: a updated | |
27 |
|
28 | |||
28 | changeset: 2:b833d578451e |
|
29 | changeset: 2:b833d578451e | |
29 | tag: tip |
|
30 | tag: tip | |
30 | parent: 0:4536b1c2ca69 |
|
31 | parent: 0:4536b1c2ca69 | |
31 | user: test |
|
32 | user: test | |
32 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
33 | date: Mon Jan 12 13:46:40 1970 +0000 | |
33 | summary: chmod +x a |
|
34 | summary: chmod +x a | |
34 |
|
35 | |||
35 | changeset: 1:a187cb361a5a |
|
36 | changeset: 1:a187cb361a5a | |
36 | user: test |
|
37 | user: test | |
37 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
38 | date: Mon Jan 12 13:46:40 1970 +0000 | |
38 | summary: a updated |
|
39 | summary: a updated | |
39 |
|
40 | |||
40 | changeset: 0:4536b1c2ca69 |
|
41 | changeset: 0:4536b1c2ca69 | |
41 | user: test |
|
42 | user: test | |
42 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
43 | date: Mon Jan 12 13:46:40 1970 +0000 | |
43 | summary: added a b |
|
44 | summary: added a b | |
44 |
|
45 | |||
45 | resolving manifests |
|
46 | resolving manifests | |
46 | merging a |
|
47 | merging a | |
47 | resolving a |
|
48 | resolving a | |
48 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
49 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
49 | (branch merge, don't forget to commit) |
|
50 | (branch merge, don't forget to commit) | |
|
51 | pulling from ../test2 | |||
|
52 | searching for changes | |||
|
53 | adding changesets | |||
|
54 | adding manifests | |||
|
55 | adding file changes | |||
|
56 | added 1 changesets with 1 changes to 1 files (+1 heads) | |||
|
57 | (run 'hg heads' to see heads, 'hg merge' to merge) | |||
|
58 | changeset: 2:b833d578451e | |||
|
59 | tag: tip | |||
|
60 | parent: 0:4536b1c2ca69 | |||
|
61 | user: test | |||
|
62 | date: Mon Jan 12 13:46:40 1970 +0000 | |||
|
63 | summary: chmod +x a | |||
|
64 | ||||
|
65 | changeset: 1:d54568174d8e | |||
|
66 | user: test | |||
|
67 | date: Mon Jan 12 13:46:40 1970 +0000 | |||
|
68 | summary: b updated | |||
|
69 | ||||
|
70 | changeset: 2:b833d578451e | |||
|
71 | tag: tip | |||
|
72 | parent: 0:4536b1c2ca69 | |||
|
73 | user: test | |||
|
74 | date: Mon Jan 12 13:46:40 1970 +0000 | |||
|
75 | summary: chmod +x a | |||
|
76 | ||||
|
77 | changeset: 1:d54568174d8e | |||
|
78 | user: test | |||
|
79 | date: Mon Jan 12 13:46:40 1970 +0000 | |||
|
80 | summary: b updated | |||
|
81 | ||||
|
82 | changeset: 0:4536b1c2ca69 | |||
|
83 | user: test | |||
|
84 | date: Mon Jan 12 13:46:40 1970 +0000 | |||
|
85 | summary: added a b | |||
|
86 | ||||
|
87 | resolving manifests | |||
|
88 | getting a | |||
|
89 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
90 | (branch merge, don't forget to commit) | |||
50 | -rwxr-x--- |
|
91 | -rwxr-x--- | |
51 | -rwxr-x--- |
|
92 | -rwxr-x--- | |
|
93 | -rwxr-x--- | |||
|
94 | rev offset length base linkrev nodeid p1 p2 | |||
|
95 | 0 0 0 0 0 b80de5d13875 000000000000 000000000000 | |||
|
96 | 1 0 0 0 2 37c42bd6cc03 b80de5d13875 000000000000 | |||
|
97 | rev offset length base linkrev nodeid p1 p2 | |||
|
98 | 0 0 0 0 0 b80de5d13875 000000000000 000000000000 | |||
|
99 | 1 0 0 0 1 37c42bd6cc03 b80de5d13875 000000000000 | |||
|
100 | rev offset length base linkrev nodeid p1 p2 | |||
|
101 | 0 0 0 0 0 b80de5d13875 000000000000 000000000000 | |||
|
102 | 1 0 5 1 1 7fe919cc0336 b80de5d13875 000000000000 | |||
|
103 | 2 5 0 2 2 37c42bd6cc03 b80de5d13875 000000000000 |
General Comments 0
You need to be logged in to leave comments.
Login now