##// END OF EJS Templates
merge: don't ignore conflicting file in remote renamed directory...
Martin von Zweigbergk -
r23475:67f1d688 default
parent child Browse files
Show More
@@ -446,8 +446,12 b' def manifestmerge(repo, wctx, p2, pa, br'
446 446 pass # we'll deal with it on m2 side
447 447 elif f in movewithdir: # directory rename, move local
448 448 f2 = movewithdir[f]
449 actions['dm'].append((f2, (f, fl1),
450 "remote directory rename - move from " + 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:
453 actions['dm'].append((f2, (f, fl1),
454 "remote directory rename - move from " + f))
451 455 elif f in copy:
452 456 f2 = copy[f]
453 457 actions['m'].append((f, (f, f2, f2, False, pa.node()),
@@ -148,8 +148,6 b' BROKEN: the local file is overwritten; i'
148 148 Remote directory rename with conflicting file added in remote target directory
149 149 and committed in local source directory.
150 150
151 BROKEN: the remote is ignored; it should be merged
152
153 151 $ hg co -qC 2
154 152 $ rm b/c
155 153 $ hg st -A
@@ -158,19 +156,28 b' BROKEN: the remote is ignored; it should'
158 156 C a/b
159 157 C a/c
160 158 $ hg merge 5
161 3 files updated, 0 files merged, 2 files removed, 0 files unresolved
162 (branch merge, don't forget to commit)
159 merging a/c and b/c to b/c
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 165 $ hg st -A
164 166 M b/a
165 167 M b/b
166 A b/c
168 M b/c
167 169 a/c
168 170 R a/a
169 171 R a/b
170 172 R a/c
171 173 ? a/d
174 ? b/c.orig
172 175 $ cat b/c
176 <<<<<<< local: ce36d17b18fb - test: 2 add a/c
173 177 baz
178 =======
179 target
180 >>>>>>> other: f1c50ca4f127 - test: new file in target directory
174 181
175 182 Second scenario with two repos:
176 183
General Comments 0
You need to be logged in to leave comments. Login now