Show More
@@ -446,6 +446,10 b' def manifestmerge(repo, wctx, p2, pa, br' | |||||
446 | pass # we'll deal with it on m2 side |
|
446 | pass # we'll deal with it on m2 side | |
447 | elif f in movewithdir: # directory rename, move local |
|
447 | elif f in movewithdir: # directory rename, move local | |
448 | f2 = movewithdir[f] |
|
448 | f2 = movewithdir[f] | |
|
449 | if f2 in m2: | |||
|
450 | actions['m'].append((f2, (f, f2, None, True, pa.node()), | |||
|
451 | "remote directory rename, both created")) | |||
|
452 | else: | |||
449 | actions['dm'].append((f2, (f, fl1), |
|
453 | actions['dm'].append((f2, (f, fl1), | |
450 | "remote directory rename - move from " + f)) |
|
454 | "remote directory rename - move from " + f)) | |
451 | elif f in copy: |
|
455 | elif f in copy: |
@@ -148,8 +148,6 b' BROKEN: the local file is overwritten; i' | |||||
148 | Remote directory rename with conflicting file added in remote target directory |
|
148 | Remote directory rename with conflicting file added in remote target directory | |
149 | and committed in local source directory. |
|
149 | and committed in local source directory. | |
150 |
|
150 | |||
151 | BROKEN: the remote is ignored; it should be merged |
|
|||
152 |
|
||||
153 | $ hg co -qC 2 |
|
151 | $ hg co -qC 2 | |
154 | $ rm b/c |
|
152 | $ rm b/c | |
155 | $ hg st -A |
|
153 | $ hg st -A | |
@@ -158,19 +156,28 b' BROKEN: the remote is ignored; it should' | |||||
158 | C a/b |
|
156 | C a/b | |
159 | C a/c |
|
157 | C a/c | |
160 | $ hg merge 5 |
|
158 | $ hg merge 5 | |
161 | 3 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
159 | merging a/c and b/c to b/c | |
162 | (branch merge, don't forget to commit) |
|
160 | warning: conflicts during merge. | |
|
161 | merging b/c incomplete! (edit conflicts, then use 'hg resolve --mark') | |||
|
162 | 2 files updated, 0 files merged, 2 files removed, 1 files unresolved | |||
|
163 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |||
|
164 | [1] | |||
163 | $ hg st -A |
|
165 | $ hg st -A | |
164 | M b/a |
|
166 | M b/a | |
165 | M b/b |
|
167 | M b/b | |
166 |
|
|
168 | M b/c | |
167 | a/c |
|
169 | a/c | |
168 | R a/a |
|
170 | R a/a | |
169 | R a/b |
|
171 | R a/b | |
170 | R a/c |
|
172 | R a/c | |
171 | ? a/d |
|
173 | ? a/d | |
|
174 | ? b/c.orig | |||
172 | $ cat b/c |
|
175 | $ cat b/c | |
|
176 | <<<<<<< local: ce36d17b18fb - test: 2 add a/c | |||
173 | baz |
|
177 | baz | |
|
178 | ======= | |||
|
179 | target | |||
|
180 | >>>>>>> other: f1c50ca4f127 - test: new file in target directory | |||
174 |
|
181 | |||
175 | Second scenario with two repos: |
|
182 | Second scenario with two repos: | |
176 |
|
183 |
General Comments 0
You need to be logged in to leave comments.
Login now