Show More
@@ -1,49 +1,87 | |||||
1 | #!/bin/sh |
|
1 | a test for issue586 | |
2 | # a test for issue586 |
|
|||
3 |
|
2 | |||
4 | hg init a |
|
3 | $ hg init a | |
5 | cd a |
|
4 | $ cd a | |
6 | echo a > a |
|
5 | $ echo a > a | |
7 | hg ci -Ama |
|
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 |
|
15 | $ hg pull -f ../a | |
10 | cd ../b |
|
16 | pulling from ../a | |
11 | echo b > b |
|
17 | searching for changes | |
12 | hg ci -Amb |
|
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 |
|
30 | $ hg st -A | |
15 | hg merge |
|
31 | C b | |
16 | hg rm -f a |
|
32 | $ cd .. | |
17 | hg ci -Amc |
|
33 | ||
|
34 | a test for issue 1433, related to issue586 | |||
18 |
|
35 | |||
19 | hg st -A |
|
36 | create test repos | |
20 | cd .. |
|
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 |
|
43 | $ hg init repob | |
23 | echo % create test repos |
|
44 | $ touch repob/b | |
24 | hg init repoa |
|
45 | $ hg -R repob ci -Am addb | |
25 | touch repoa/a |
|
46 | adding b | |
26 | hg -R repoa ci -Am adda |
|
|||
27 |
|
||||
28 | hg init repob |
|
|||
29 | touch repob/b |
|
|||
30 | hg -R repob ci -Am addb |
|
|||
31 |
|
47 | |||
32 | hg init repoc |
|
48 | $ hg init repoc | |
33 | cd repoc |
|
49 | $ cd repoc | |
34 | hg pull ../repoa |
|
50 | $ hg pull ../repoa | |
35 | hg update |
|
51 | pulling from ../repoa | |
36 | mkdir tst |
|
52 | requesting all changes | |
37 | hg mv * tst |
|
53 | adding changesets | |
38 | hg ci -m "import a in tst" |
|
54 | adding manifests | |
39 | hg pull -f ../repob |
|
55 | adding file changes | |
40 | echo % merge both repos |
|
56 | added 1 changesets with 1 changes to 1 files | |
41 | hg merge |
|
57 | (run 'hg update' to get a working copy) | |
42 | mkdir src |
|
58 | $ hg update | |
43 | echo % move b content |
|
59 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
44 | hg mv b src |
|
60 | $ mkdir tst | |
45 | hg ci -m "import b in src" |
|
61 | $ hg mv * tst | |
46 | hg manifest |
|
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 |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now