Show More
@@ -1,33 +1,34 b'' | |||
|
1 |
#!/bin/sh |
|
|
1 | #!/bin/sh -ex | |
|
2 | 2 | |
|
3 | umask 027 | |
|
3 | 4 | mkdir test1 |
|
4 | 5 | cd test1 |
|
5 | 6 | |
|
6 | 7 | hg init |
|
7 | 8 | touch a b |
|
8 | 9 | hg add a b |
|
9 | 10 | hg ci -t "added a b" -u test -d "0 0" |
|
10 | 11 | |
|
11 | 12 | cd .. |
|
12 | 13 | mkdir test2 |
|
13 | 14 | cd test2 |
|
14 | 15 | |
|
15 | 16 | hg init |
|
16 | 17 | hg pull ../test1 |
|
17 | 18 | hg co |
|
18 | 19 | chmod +x a |
|
19 | 20 | hg ci -t "chmod +x a" -u test -d "0 0" |
|
20 | 21 | |
|
21 | 22 | cd ../test1 |
|
22 | 23 | echo 123 >>a |
|
23 | 24 | hg ci -t "a updated" -u test -d "0 0" |
|
24 | 25 | |
|
25 | 26 | hg pull ../test2 |
|
26 | 27 | hg heads |
|
27 | 28 | hg history |
|
28 | 29 | |
|
29 | 30 | hg -dv co -m |
|
30 | 31 | |
|
31 | 32 | ls -l ../test[12]/a > foo |
|
32 | 33 | cut -b 0-10 < foo |
|
33 | 34 |
@@ -1,51 +1,75 b'' | |||
|
1 | + umask 027 | |
|
2 | + mkdir test1 | |
|
3 | + cd test1 | |
|
4 | + hg init | |
|
5 | + touch a b | |
|
6 | + hg add a b | |
|
7 | + hg ci -t 'added a b' -u test -d '0 0' | |
|
8 | + cd .. | |
|
9 | + mkdir test2 | |
|
10 | + cd test2 | |
|
11 | + hg init | |
|
12 | + hg pull ../test1 | |
|
1 | 13 | pulling from ../test1 |
|
2 | 14 | requesting all changes |
|
3 | 15 | adding changesets |
|
4 | 16 | adding manifests |
|
5 | 17 | adding file revisions |
|
6 | 18 | modified 2 files, added 1 changesets and 2 new revisions |
|
7 | 19 | (run 'hg update' to get a working copy) |
|
20 | + hg co | |
|
21 | + chmod +x a | |
|
22 | + hg ci -t 'chmod +x a' -u test -d '0 0' | |
|
23 | + cd ../test1 | |
|
24 | + echo 123 | |
|
25 | + hg ci -t 'a updated' -u test -d '0 0' | |
|
26 | + hg pull ../test2 | |
|
8 | 27 | pulling from ../test2 |
|
9 | 28 | searching for changes |
|
10 | 29 | adding changesets |
|
11 | 30 | adding manifests |
|
12 | 31 | adding file revisions |
|
13 | 32 | modified 1 files, added 1 changesets and 1 new revisions |
|
14 | 33 | (run 'hg update' to get a working copy) |
|
34 | + hg heads | |
|
15 | 35 | changeset: 2:3ef54330565526bebf37a0d9bf540c283fd133a1 |
|
16 | 36 | tag: tip |
|
17 | 37 | parent: 0:22a449e20da501ca558394c083ca470e9c81b9f7 |
|
18 | 38 | user: test |
|
19 | 39 | date: Thu Jan 1 00:00:00 1970 |
|
20 | 40 | summary: chmod +x a |
|
21 | 41 | |
|
22 | 42 | changeset: 1:c6ecefc45368ed556d965f1c1086c6561a8b2ac5 |
|
23 | 43 | user: test |
|
24 | 44 | date: Thu Jan 1 00:00:00 1970 |
|
25 | 45 | summary: a updated |
|
26 | 46 | |
|
47 | + hg history | |
|
27 | 48 | changeset: 2:3ef54330565526bebf37a0d9bf540c283fd133a1 |
|
28 | 49 | tag: tip |
|
29 | 50 | parent: 0:22a449e20da501ca558394c083ca470e9c81b9f7 |
|
30 | 51 | user: test |
|
31 | 52 | date: Thu Jan 1 00:00:00 1970 |
|
32 | 53 | summary: chmod +x a |
|
33 | 54 | |
|
34 | 55 | changeset: 1:c6ecefc45368ed556d965f1c1086c6561a8b2ac5 |
|
35 | 56 | user: test |
|
36 | 57 | date: Thu Jan 1 00:00:00 1970 |
|
37 | 58 | summary: a updated |
|
38 | 59 | |
|
39 | 60 | changeset: 0:22a449e20da501ca558394c083ca470e9c81b9f7 |
|
40 | 61 | user: test |
|
41 | 62 | date: Thu Jan 1 00:00:00 1970 |
|
42 | 63 | summary: added a b |
|
43 | 64 | |
|
65 | + hg -dv co -m | |
|
44 | 66 | resolving manifests |
|
45 | 67 | ancestor f328b97f7c11 local e7f06daf1cdb remote 629f0b785e0e |
|
46 | 68 | a versions differ, resolve |
|
47 | 69 | merging a |
|
48 | 70 | resolving a |
|
49 | 71 | file a: other 37c42bd6cc03 ancestor b80de5d13875 |
|
50 | -rwxr-xr-x | |
|
51 | -rwxr-xr-x | |
|
72 | + ls -l ../test1/a ../test2/a | |
|
73 | + cut -b 0-10 | |
|
74 | -rwxr-x--- | |
|
75 | -rwxr-x--- |
General Comments 0
You need to be logged in to leave comments.
Login now