Show More
@@ -13,7 +13,8 b' test multiple merges at once' | |||||
13 | $ bzr init -q source |
|
13 | $ bzr init -q source | |
14 | $ cd source |
|
14 | $ cd source | |
15 | $ echo content > file |
|
15 | $ echo content > file | |
16 | $ bzr add -q file |
|
16 | $ echo text > rename_me | |
|
17 | $ bzr add -q file rename_me | |||
17 | $ bzr commit -q -m 'Initial add' '--commit-time=2009-10-10 08:00:00 +0100' |
|
18 | $ bzr commit -q -m 'Initial add' '--commit-time=2009-10-10 08:00:00 +0100' | |
18 | $ cd .. |
|
19 | $ cd .. | |
19 | $ bzr branch -q source source-branch1 |
|
20 | $ bzr branch -q source source-branch1 | |
@@ -32,6 +33,8 b' test multiple merges at once' | |||||
32 | $ cd source-branch2 |
|
33 | $ cd source-branch2 | |
33 | $ echo somecontent > file-branch2 |
|
34 | $ echo somecontent > file-branch2 | |
34 | $ bzr add -q file-branch2 |
|
35 | $ bzr add -q file-branch2 | |
|
36 | $ bzr mv -q rename_me renamed | |||
|
37 | $ echo change > renamed | |||
35 | $ bzr commit -q -m 'Added brach2 file' '--commit-time=2009-10-10 08:00:03 +0100' |
|
38 | $ bzr commit -q -m 'Added brach2 file' '--commit-time=2009-10-10 08:00:03 +0100' | |
36 | $ sleep 1 |
|
39 | $ sleep 1 | |
37 | $ cd ../source |
|
40 | $ cd ../source | |
@@ -40,7 +43,8 b' test multiple merges at once' | |||||
40 | $ bzr commit -q -m 'Merged branches' '--commit-time=2009-10-10 08:00:04 +0100' |
|
43 | $ bzr commit -q -m 'Merged branches' '--commit-time=2009-10-10 08:00:04 +0100' | |
41 | $ cd .. |
|
44 | $ cd .. | |
42 |
|
45 | |||
43 | BUG: file-branch2 should not be added in rev 4 |
|
46 | BUG: file-branch2 should not be added in rev 4, and the rename_me -> renamed | |
|
47 | move should be recorded in the fixup merge. | |||
44 |
$ |
|
48 | $ hg convert --datesort --config convert.bzr.saverev=False source source-hg | |
45 | initializing destination source-hg repository |
|
49 | initializing destination source-hg repository | |
46 | scanning source... |
|
50 | scanning source... | |
@@ -51,18 +55,19 b' BUG: file-branch2 should not be added in' | |||||
51 | 2 Added parent file |
|
55 | 2 Added parent file | |
52 | 1 Added brach2 file |
|
56 | 1 Added brach2 file | |
53 | 0 Merged branches |
|
57 | 0 Merged branches | |
|
58 | warning: can't find ancestor for 'renamed' copied from 'rename_me'! | |||
54 | $ glog -R source-hg |
|
59 | $ glog -R source-hg | |
55 | o 5@source "(octopus merge fixup)" files+: [], files-: [], files: [] |
|
60 | o 5@source "(octopus merge fixup)" files+: [], files-: [], files: [renamed] | |
56 | |\ |
|
61 | |\ | |
57 |
|
|
62 | | o 4@source "Merged branches" files+: [file-branch1 file-branch2 renamed], files-: [rename_me], files: [file] | |
58 | | |\ |
|
63 | | |\ | |
59 |
|
|
64 | o---+ 3@source-branch2 "Added brach2 file" files+: [file-branch2 renamed], files-: [rename_me], files: [] | |
60 | / / |
|
65 | / / | |
61 | | o 2@source "Added parent file" files+: [file-parent], files-: [], files: [] |
|
66 | | o 2@source "Added parent file" files+: [file-parent], files-: [], files: [] | |
62 | | | |
|
67 | | | | |
63 | o | 1@source-branch1 "Added branch1 file" files+: [file-branch1], files-: [], files: [file] |
|
68 | o | 1@source-branch1 "Added branch1 file" files+: [file-branch1], files-: [], files: [file] | |
64 | |/ |
|
69 | |/ | |
65 | o 0@source "Initial add" files+: [file], files-: [], files: [] |
|
70 | o 0@source "Initial add" files+: [file rename_me], files-: [], files: [] | |
66 |
|
|
71 | ||
67 | $ manifest source-hg tip |
|
72 | $ manifest source-hg tip | |
68 | % manifest of tip |
|
73 | % manifest of tip | |
@@ -70,6 +75,7 b' BUG: file-branch2 should not be added in' | |||||
70 | 644 file-branch1 |
|
75 | 644 file-branch1 | |
71 | 644 file-branch2 |
|
76 | 644 file-branch2 | |
72 | 644 file-parent |
|
77 | 644 file-parent | |
|
78 | 644 renamed | |||
73 |
|
79 | |||
74 | $ hg convert source-hg hg2hg |
|
80 | $ hg convert source-hg hg2hg | |
75 | initializing destination hg2hg repository |
|
81 | initializing destination hg2hg repository | |
@@ -82,49 +88,107 b' BUG: file-branch2 should not be added in' | |||||
82 | 2 Added brach2 file |
|
88 | 2 Added brach2 file | |
83 | 1 Merged branches |
|
89 | 1 Merged branches | |
84 | 0 (octopus merge fixup) |
|
90 | 0 (octopus merge fixup) | |
|
91 | ||||
|
92 | BUG: The manifest entries should be the same for matching revisions, and | |||
|
93 | nothing should be outgoing | |||
|
94 | ||||
|
95 | $ hg -R source-hg manifest --debug -r tip | grep renamed | |||
|
96 | 67109fdebf6c556eb0a9d5696dd98c8420520405 644 renamed | |||
|
97 | $ hg -R hg2hg manifest --debug -r tip | grep renamed | |||
|
98 | 27c968376d7c3afd095ecb9c7697919b933448c8 644 renamed | |||
|
99 | $ hg -R source-hg manifest --debug -r 'tip^' | grep renamed | |||
|
100 | 27c968376d7c3afd095ecb9c7697919b933448c8 644 renamed | |||
|
101 | $ hg -R hg2hg manifest --debug -r 'tip^' | grep renamed | |||
|
102 | 27c968376d7c3afd095ecb9c7697919b933448c8 644 renamed | |||
|
103 | ||||
|
104 | BUG: The revisions found should be the same in both repos | |||
|
105 | ||||
|
106 | $ hg --cwd source-hg log -r 'file("renamed")' -G -Tcompact | |||
|
107 | o 5[tip]:4,3 6652429c300a 2009-10-10 08:00 +0100 foo | |||
|
108 | |\ (octopus merge fixup) | |||
|
109 | | | | |||
|
110 | | o 4:2,1 e0ae8af3503a 2009-10-10 08:00 +0100 foo | |||
|
111 | | |\ Merged branches | |||
|
112 | | ~ ~ | |||
|
113 | o 3 138bed2e14be 2009-10-10 08:00 +0100 foo | |||
|
114 | | Added brach2 file | |||
|
115 | ~ | |||
|
116 | $ hg --cwd hg2hg log -r 'file("renamed")' -G -Tcompact | |||
|
117 | o 4:2,1 e0ae8af3503a 2009-10-10 08:00 +0100 foo | |||
|
118 | |\ Merged branches | |||
|
119 | ~ ~ | |||
|
120 | o 3 138bed2e14be 2009-10-10 08:00 +0100 foo | |||
|
121 | | Added brach2 file | |||
|
122 | ~ | |||
|
123 | ||||
|
124 | BUG(?): The move seems to be recorded in rev 4, so it should probably show up | |||
|
125 | there. It's not recorded as a move in rev 5, even in source-hg. | |||
|
126 | ||||
|
127 | $ hg -R source-hg up -q tip | |||
|
128 | $ hg -R hg2hg up -q tip | |||
|
129 | $ hg --cwd source-hg log -r 'follow("renamed")' -G -Tcompact | |||
|
130 | @ 5[tip]:4,3 6652429c300a 2009-10-10 08:00 +0100 foo | |||
|
131 | |\ (octopus merge fixup) | |||
|
132 | | : | |||
|
133 | o : 3 138bed2e14be 2009-10-10 08:00 +0100 foo | |||
|
134 | :/ Added brach2 file | |||
|
135 | : | |||
|
136 | o 0 18b86f5df51b 2009-10-10 08:00 +0100 foo | |||
|
137 | Initial add | |||
|
138 | ||||
|
139 | $ hg --cwd hg2hg log -r 'follow("renamed")' -G -Tcompact | |||
|
140 | o 3 138bed2e14be 2009-10-10 08:00 +0100 foo | |||
|
141 | : Added brach2 file | |||
|
142 | : | |||
|
143 | o 0 18b86f5df51b 2009-10-10 08:00 +0100 foo | |||
|
144 | Initial add | |||
|
145 | ||||
|
146 | ||||
85 |
$ |
|
147 | $ hg -R hg2hg out source-hg -T compact | |
86 | comparing with source-hg |
|
148 | comparing with source-hg | |
87 | searching for changes |
|
149 | searching for changes | |
88 | no changes found |
|
150 | 5[tip]:4,3 3be2299ccd31 2009-10-10 08:00 +0100 foo | |
89 | [1] |
|
151 | (octopus merge fixup) | |
|
152 | ||||
90 |
|
153 | |||
91 | $ glog -R hg2hg |
|
154 | $ glog -R hg2hg | |
92 |
|
|
155 | @ 5@source "(octopus merge fixup)" files+: [], files-: [], files: [] | |
93 | |\ |
|
156 | |\ | |
94 | | o 4@source "Merged branches" files+: [file-branch1 file-branch2], files-: [], files: [file] |
|
157 | | o 4@source "Merged branches" files+: [file-branch1 file-branch2 renamed], files-: [rename_me], files: [file] | |
95 | | |\ |
|
158 | | |\ | |
96 | o---+ 3@source-branch2 "Added brach2 file" files+: [file-branch2], files-: [], files: [] |
|
159 | o---+ 3@source-branch2 "Added brach2 file" files+: [file-branch2 renamed], files-: [rename_me], files: [] | |
97 | / / |
|
160 | / / | |
98 | | o 2@source "Added parent file" files+: [file-parent], files-: [], files: [] |
|
161 | | o 2@source "Added parent file" files+: [file-parent], files-: [], files: [] | |
99 | | | |
|
162 | | | | |
100 | o | 1@source-branch1 "Added branch1 file" files+: [file-branch1], files-: [], files: [file] |
|
163 | o | 1@source-branch1 "Added branch1 file" files+: [file-branch1], files-: [], files: [file] | |
101 | |/ |
|
164 | |/ | |
102 | o 0@source "Initial add" files+: [file], files-: [], files: [] |
|
165 | o 0@source "Initial add" files+: [file rename_me], files-: [], files: [] | |
103 |
|
166 | |||
104 |
|
167 | |||
105 | $ hg -R source-hg log --debug -r tip |
|
168 | $ hg -R source-hg log --debug -r tip | |
106 | changeset: 5:6bd55e8269392769783345686faf7ff7b3b0215d |
|
169 | changeset: 5:6652429c300ab66fdeaf2e730945676a00b53231 | |
107 | branch: source |
|
170 | branch: source | |
108 | tag: tip |
|
171 | tag: tip | |
109 | phase: draft |
|
172 | phase: draft | |
110 | parent: 4:1dc38c377bb35eeea4fa955056fbe4440d54a743 |
|
173 | parent: 4:e0ae8af3503af9bbffb0b29268a02744cc61a561 | |
111 | parent: 3:4aaba1bfb426b8941bbf63f9dd52301152695164 |
|
174 | parent: 3:138bed2e14be415a2692b02e41405b2864f758b4 | |
112 | manifest: 4:daa315d56a98ba20811fdd0d9d575861f65cfa8c |
|
175 | manifest: 5:1eabd5f5d4b985784cf2c45c717ff053eca14b0d | |
113 | user: Foo Bar <foo.bar@example.com> |
|
176 | user: Foo Bar <foo.bar@example.com> | |
114 | date: Sat Oct 10 08:00:04 2009 +0100 |
|
177 | date: Sat Oct 10 08:00:04 2009 +0100 | |
|
178 | files: renamed | |||
115 | extra: branch=source |
|
179 | extra: branch=source | |
116 | description: |
|
180 | description: | |
117 | (octopus merge fixup) |
|
181 | (octopus merge fixup) | |
118 |
|
182 | |||
119 |
|
183 | |||
120 | $ hg -R hg2hg log --debug -r tip |
|
184 | $ hg -R hg2hg log --debug -r tip | |
121 | changeset: 5:6bd55e8269392769783345686faf7ff7b3b0215d |
|
185 | changeset: 5:3be2299ccd315ff9aab2b49bdb0d14e3244435e8 | |
122 | branch: source |
|
186 | branch: source | |
123 | tag: tip |
|
187 | tag: tip | |
124 | phase: draft |
|
188 | phase: draft | |
125 | parent: 4:1dc38c377bb35eeea4fa955056fbe4440d54a743 |
|
189 | parent: 4:e0ae8af3503af9bbffb0b29268a02744cc61a561 | |
126 | parent: 3:4aaba1bfb426b8941bbf63f9dd52301152695164 |
|
190 | parent: 3:138bed2e14be415a2692b02e41405b2864f758b4 | |
127 | manifest: 4:daa315d56a98ba20811fdd0d9d575861f65cfa8c |
|
191 | manifest: 4:3ece3c7f2cc6df15b3cbbf3273c69869fc7c3ab0 | |
128 | user: Foo Bar <foo.bar@example.com> |
|
192 | user: Foo Bar <foo.bar@example.com> | |
129 | date: Sat Oct 10 08:00:04 2009 +0100 |
|
193 | date: Sat Oct 10 08:00:04 2009 +0100 | |
130 | extra: branch=source |
|
194 | extra: branch=source | |
@@ -137,21 +201,25 b' BUG: file-branch2 should not be added in' | |||||
137 | 5108144f585149b29779d7c7e51d61dd22303ffe 644 file-branch1 |
|
201 | 5108144f585149b29779d7c7e51d61dd22303ffe 644 file-branch1 | |
138 | 80753c4a9ac3806858405b96b24a907b309e3616 644 file-branch2 |
|
202 | 80753c4a9ac3806858405b96b24a907b309e3616 644 file-branch2 | |
139 | 7108421418404a937c684d2479a34a24d2ce4757 644 file-parent |
|
203 | 7108421418404a937c684d2479a34a24d2ce4757 644 file-parent | |
|
204 | 67109fdebf6c556eb0a9d5696dd98c8420520405 644 renamed | |||
140 | $ hg -R source-hg manifest --debug -r 'tip^' |
|
205 | $ hg -R source-hg manifest --debug -r 'tip^' | |
141 | cdf31ed9242b209cd94697112160e2c5b37a667d 644 file |
|
206 | cdf31ed9242b209cd94697112160e2c5b37a667d 644 file | |
142 | 5108144f585149b29779d7c7e51d61dd22303ffe 644 file-branch1 |
|
207 | 5108144f585149b29779d7c7e51d61dd22303ffe 644 file-branch1 | |
143 | 80753c4a9ac3806858405b96b24a907b309e3616 644 file-branch2 |
|
208 | 80753c4a9ac3806858405b96b24a907b309e3616 644 file-branch2 | |
144 | 7108421418404a937c684d2479a34a24d2ce4757 644 file-parent |
|
209 | 7108421418404a937c684d2479a34a24d2ce4757 644 file-parent | |
|
210 | 27c968376d7c3afd095ecb9c7697919b933448c8 644 renamed | |||
145 |
|
211 | |||
146 | $ hg -R hg2hg manifest --debug -r tip |
|
212 | $ hg -R hg2hg manifest --debug -r tip | |
147 | cdf31ed9242b209cd94697112160e2c5b37a667d 644 file |
|
213 | cdf31ed9242b209cd94697112160e2c5b37a667d 644 file | |
148 | 5108144f585149b29779d7c7e51d61dd22303ffe 644 file-branch1 |
|
214 | 5108144f585149b29779d7c7e51d61dd22303ffe 644 file-branch1 | |
149 | 80753c4a9ac3806858405b96b24a907b309e3616 644 file-branch2 |
|
215 | 80753c4a9ac3806858405b96b24a907b309e3616 644 file-branch2 | |
150 | 7108421418404a937c684d2479a34a24d2ce4757 644 file-parent |
|
216 | 7108421418404a937c684d2479a34a24d2ce4757 644 file-parent | |
|
217 | 27c968376d7c3afd095ecb9c7697919b933448c8 644 renamed | |||
151 | $ hg -R hg2hg manifest --debug -r 'tip^' |
|
218 | $ hg -R hg2hg manifest --debug -r 'tip^' | |
152 | cdf31ed9242b209cd94697112160e2c5b37a667d 644 file |
|
219 | cdf31ed9242b209cd94697112160e2c5b37a667d 644 file | |
153 | 5108144f585149b29779d7c7e51d61dd22303ffe 644 file-branch1 |
|
220 | 5108144f585149b29779d7c7e51d61dd22303ffe 644 file-branch1 | |
154 | 80753c4a9ac3806858405b96b24a907b309e3616 644 file-branch2 |
|
221 | 80753c4a9ac3806858405b96b24a907b309e3616 644 file-branch2 | |
155 | 7108421418404a937c684d2479a34a24d2ce4757 644 file-parent |
|
222 | 7108421418404a937c684d2479a34a24d2ce4757 644 file-parent | |
|
223 | 27c968376d7c3afd095ecb9c7697919b933448c8 644 renamed | |||
156 |
|
224 | |||
157 | $ cd .. |
|
225 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now