Show More
@@ -1,49 +1,87 | |||
|
1 | #!/bin/sh | |
|
2 | # a test for issue586 | |
|
1 | a test for issue586 | |
|
3 | 2 | |
|
4 | hg init a | |
|
5 | cd a | |
|
6 | echo a > a | |
|
7 | hg ci -Ama | |
|
3 | $ hg init a | |
|
4 | $ cd a | |
|
5 | $ echo a > a | |
|
6 | $ hg ci -Ama | |
|
7 | adding a | |
|
8 | ||
|
9 | $ hg init ../b | |
|
10 | $ cd ../b | |
|
11 | $ echo b > b | |
|
12 | $ hg ci -Amb | |
|
13 | adding b | |
|
8 | 14 | |
|
9 | hg init ../b | |
|
10 | cd ../b | |
|
11 | echo b > b | |
|
12 | hg ci -Amb | |
|
15 | $ hg pull -f ../a | |
|
16 | pulling from ../a | |
|
17 | searching for changes | |
|
18 | warning: repository is unrelated | |
|
19 | adding changesets | |
|
20 | adding manifests | |
|
21 | adding file changes | |
|
22 | added 1 changesets with 1 changes to 1 files (+1 heads) | |
|
23 | (run 'hg heads' to see heads, 'hg merge' to merge) | |
|
24 | $ hg merge | |
|
25 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
26 | (branch merge, don't forget to commit) | |
|
27 | $ hg rm -f a | |
|
28 | $ hg ci -Amc | |
|
13 | 29 | |
|
14 | hg pull -f ../a | |
|
15 | hg merge | |
|
16 | hg rm -f a | |
|
17 | hg ci -Amc | |
|
30 | $ hg st -A | |
|
31 | C b | |
|
32 | $ cd .. | |
|
33 | ||
|
34 | a test for issue 1433, related to issue586 | |
|
18 | 35 | |
|
19 | hg st -A | |
|
20 | cd .. | |
|
36 | create test repos | |
|
37 | ||
|
38 | $ hg init repoa | |
|
39 | $ touch repoa/a | |
|
40 | $ hg -R repoa ci -Am adda | |
|
41 | adding a | |
|
21 | 42 | |
|
22 | # a test for issue 1433, related to issue586 | |
|
23 | echo % create test repos | |
|
24 | hg init repoa | |
|
25 | touch repoa/a | |
|
26 | hg -R repoa ci -Am adda | |
|
27 | ||
|
28 | hg init repob | |
|
29 | touch repob/b | |
|
30 | hg -R repob ci -Am addb | |
|
43 | $ hg init repob | |
|
44 | $ touch repob/b | |
|
45 | $ hg -R repob ci -Am addb | |
|
46 | adding b | |
|
31 | 47 | |
|
32 | hg init repoc | |
|
33 | cd repoc | |
|
34 | hg pull ../repoa | |
|
35 | hg update | |
|
36 | mkdir tst | |
|
37 | hg mv * tst | |
|
38 | hg ci -m "import a in tst" | |
|
39 | hg pull -f ../repob | |
|
40 | echo % merge both repos | |
|
41 | hg merge | |
|
42 | mkdir src | |
|
43 | echo % move b content | |
|
44 | hg mv b src | |
|
45 | hg ci -m "import b in src" | |
|
46 | hg manifest | |
|
48 | $ hg init repoc | |
|
49 | $ cd repoc | |
|
50 | $ hg pull ../repoa | |
|
51 | pulling from ../repoa | |
|
52 | requesting all changes | |
|
53 | adding changesets | |
|
54 | adding manifests | |
|
55 | adding file changes | |
|
56 | added 1 changesets with 1 changes to 1 files | |
|
57 | (run 'hg update' to get a working copy) | |
|
58 | $ hg update | |
|
59 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
60 | $ mkdir tst | |
|
61 | $ hg mv * tst | |
|
62 | $ hg ci -m "import a in tst" | |
|
63 | $ hg pull -f ../repob | |
|
64 | pulling from ../repob | |
|
65 | searching for changes | |
|
66 | warning: repository is unrelated | |
|
67 | adding changesets | |
|
68 | adding manifests | |
|
69 | adding file changes | |
|
70 | added 1 changesets with 1 changes to 1 files (+1 heads) | |
|
71 | (run 'hg heads' to see heads, 'hg merge' to merge) | |
|
47 | 72 | |
|
73 | merge both repos | |
|
48 | 74 | |
|
75 | $ hg merge | |
|
76 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
77 | (branch merge, don't forget to commit) | |
|
78 | $ mkdir src | |
|
49 | 79 | |
|
80 | move b content | |
|
81 | ||
|
82 | $ hg mv b src | |
|
83 | $ hg ci -m "import b in src" | |
|
84 | $ hg manifest | |
|
85 | src/b | |
|
86 | tst/a | |
|
87 |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now