Show More
@@ -1,34 +1,48 | |||
|
1 | 1 | #!/bin/sh -e |
|
2 | 2 | |
|
3 | 3 | umask 027 |
|
4 | 4 | mkdir test1 |
|
5 | 5 | cd test1 |
|
6 | 6 | |
|
7 | 7 | hg init |
|
8 | 8 | touch a b |
|
9 | 9 | hg add a b |
|
10 | 10 | hg ci -m "added a b" -d "1000000 0" |
|
11 | 11 | |
|
12 | 12 | cd .. |
|
13 | hg clone test1 test3 | |
|
13 | 14 | mkdir test2 |
|
14 | 15 | cd test2 |
|
15 | 16 | |
|
16 | 17 | hg init |
|
17 | 18 | hg pull ../test1 |
|
18 | 19 | hg co |
|
19 | 20 | chmod +x a |
|
20 | 21 | hg ci -m "chmod +x a" -d "1000000 0" |
|
21 | 22 | |
|
22 | 23 | cd ../test1 |
|
23 | 24 | echo 123 >>a |
|
24 | 25 | hg ci -m "a updated" -d "1000000 0" |
|
25 | 26 | |
|
26 | 27 | hg pull ../test2 |
|
27 | 28 | hg heads |
|
28 | 29 | hg history |
|
29 | 30 | |
|
30 | 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 | 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 | 2 | pulling from ../test1 |
|
2 | 3 | requesting all changes |
|
3 | 4 | adding changesets |
|
4 | 5 | adding manifests |
|
5 | 6 | adding file changes |
|
6 | 7 | added 1 changesets with 2 changes to 2 files |
|
7 | 8 | (run 'hg update' to get a working copy) |
|
8 | 9 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
9 | 10 | pulling from ../test2 |
|
10 | 11 | searching for changes |
|
11 | 12 | adding changesets |
|
12 | 13 | adding manifests |
|
13 | 14 | adding file changes |
|
14 | 15 | added 1 changesets with 1 changes to 1 files (+1 heads) |
|
15 | 16 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
16 | 17 | changeset: 2:b833d578451e |
|
17 | 18 | tag: tip |
|
18 | 19 | parent: 0:4536b1c2ca69 |
|
19 | 20 | user: test |
|
20 | 21 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
21 | 22 | summary: chmod +x a |
|
22 | 23 | |
|
23 | 24 | changeset: 1:a187cb361a5a |
|
24 | 25 | user: test |
|
25 | 26 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
26 | 27 | summary: a updated |
|
27 | 28 | |
|
28 | 29 | changeset: 2:b833d578451e |
|
29 | 30 | tag: tip |
|
30 | 31 | parent: 0:4536b1c2ca69 |
|
31 | 32 | user: test |
|
32 | 33 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
33 | 34 | summary: chmod +x a |
|
34 | 35 | |
|
35 | 36 | changeset: 1:a187cb361a5a |
|
36 | 37 | user: test |
|
37 | 38 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
38 | 39 | summary: a updated |
|
39 | 40 | |
|
40 | 41 | changeset: 0:4536b1c2ca69 |
|
41 | 42 | user: test |
|
42 | 43 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
43 | 44 | summary: added a b |
|
44 | 45 | |
|
45 | 46 | resolving manifests |
|
46 | 47 | merging a |
|
47 | 48 | resolving a |
|
48 | 49 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
49 | 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 | 91 | -rwxr-x--- |
|
51 | 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