Show More
@@ -0,0 +1,35 b'' | |||||
|
1 | #!/bin/sh +ex | |||
|
2 | ||||
|
3 | mkdir test1 | |||
|
4 | cd test1 | |||
|
5 | ||||
|
6 | hg init | |||
|
7 | touch a b | |||
|
8 | hg add a b | |||
|
9 | hg ci -t "added a b" -u test -d "0 0" | |||
|
10 | ||||
|
11 | cd .. | |||
|
12 | mkdir test2 | |||
|
13 | cd test2 | |||
|
14 | ||||
|
15 | hg init | |||
|
16 | hg merge ../test1 | |||
|
17 | hg co | |||
|
18 | chmod +x a | |||
|
19 | hg ci -t "chmod +x a" -u test -d "0 0" | |||
|
20 | ||||
|
21 | cd ../test1 | |||
|
22 | echo 123 >>a | |||
|
23 | hg ci -t "a updated" -u test -d "0 0" | |||
|
24 | ||||
|
25 | ls -l ../test[12]/a | |||
|
26 | ||||
|
27 | hg merge ../test2 | |||
|
28 | hg heads | |||
|
29 | hg history | |||
|
30 | ||||
|
31 | hg -dv co -m | |||
|
32 | ||||
|
33 | ls -l ../test[12]/a > foo | |||
|
34 | cut -b 0-10 < foo | |||
|
35 |
@@ -0,0 +1,53 b'' | |||||
|
1 | pulling from ../test1 | |||
|
2 | requesting all changes | |||
|
3 | adding changesets | |||
|
4 | adding manifests | |||
|
5 | adding file revisions | |||
|
6 | modified 2 files, added 1 changesets and 2 new revisions | |||
|
7 | (run 'hg update' to get a working copy) | |||
|
8 | -rw-r--r-- 1 oxymoron oxymoron 4 Jun 22 03:04 ../test1/a | |||
|
9 | -rwxr-xr-x 1 oxymoron oxymoron 0 Jun 22 03:04 ../test2/a | |||
|
10 | pulling from ../test2 | |||
|
11 | searching for changes | |||
|
12 | adding changesets | |||
|
13 | adding manifests | |||
|
14 | adding file revisions | |||
|
15 | modified 1 files, added 1 changesets and 1 new revisions | |||
|
16 | (run 'hg update' to get a working copy) | |||
|
17 | changeset: 2:3ef54330565526bebf37a0d9bf540c283fd133a1 | |||
|
18 | tag: tip | |||
|
19 | parent: 0:22a449e20da501ca558394c083ca470e9c81b9f7 | |||
|
20 | user: test | |||
|
21 | date: Thu Jan 1 00:00:00 1970 | |||
|
22 | summary: chmod +x a | |||
|
23 | ||||
|
24 | changeset: 1:c6ecefc45368ed556d965f1c1086c6561a8b2ac5 | |||
|
25 | user: test | |||
|
26 | date: Thu Jan 1 00:00:00 1970 | |||
|
27 | summary: a updated | |||
|
28 | ||||
|
29 | changeset: 2:3ef54330565526bebf37a0d9bf540c283fd133a1 | |||
|
30 | tag: tip | |||
|
31 | parent: 0:22a449e20da501ca558394c083ca470e9c81b9f7 | |||
|
32 | user: test | |||
|
33 | date: Thu Jan 1 00:00:00 1970 | |||
|
34 | summary: chmod +x a | |||
|
35 | ||||
|
36 | changeset: 1:c6ecefc45368ed556d965f1c1086c6561a8b2ac5 | |||
|
37 | user: test | |||
|
38 | date: Thu Jan 1 00:00:00 1970 | |||
|
39 | summary: a updated | |||
|
40 | ||||
|
41 | changeset: 0:22a449e20da501ca558394c083ca470e9c81b9f7 | |||
|
42 | user: test | |||
|
43 | date: Thu Jan 1 00:00:00 1970 | |||
|
44 | summary: added a b | |||
|
45 | ||||
|
46 | resolving manifests | |||
|
47 | ancestor f328b97f7c11 local e7f06daf1cdb remote 629f0b785e0e | |||
|
48 | a versions differ, resolve | |||
|
49 | merging a | |||
|
50 | resolving a | |||
|
51 | file a: other 37c42bd6cc03 ancestor b80de5d13875 | |||
|
52 | -rwxr-xr-x | |||
|
53 | -rwxr-xr-x |
@@ -1007,7 +1007,7 b' class localrepository:' | |||||
1007 | m2 = self.manifest.read(m2n) |
|
1007 | m2 = self.manifest.read(m2n) | |
1008 | mf2 = self.manifest.readflags(m2n) |
|
1008 | mf2 = self.manifest.readflags(m2n) | |
1009 | ma = self.manifest.read(man) |
|
1009 | ma = self.manifest.read(man) | |
1010 |
mfa = self.manifest.readflags(m |
|
1010 | mfa = self.manifest.readflags(man) | |
1011 |
|
1011 | |||
1012 | (c, a, d, u) = self.diffdir(self.root) |
|
1012 | (c, a, d, u) = self.diffdir(self.root) | |
1013 |
|
1013 |
General Comments 0
You need to be logged in to leave comments.
Login now