Show More
@@ -195,7 +195,9 b' def submerge(repo, wctx, mctx, actx, ove' | |||
|
195 | 195 | r = "%s:%s:%s" % r |
|
196 | 196 | repo.ui.debug(" subrepo %s: %s %s\n" % (s, msg, r)) |
|
197 | 197 | |
|
198 | promptssrc = filemerge.partextras(labels) | |
|
198 | 199 | for s, l in sorted(s1.iteritems()): |
|
200 | prompts = None | |
|
199 | 201 | a = sa.get(s, nullstate) |
|
200 | 202 | ld = l # local state with possible dirty flag for compares |
|
201 | 203 | if wctx.sub(s).dirty(): |
@@ -203,9 +205,9 b' def submerge(repo, wctx, mctx, actx, ove' | |||
|
203 | 205 | if wctx == actx: # overwrite |
|
204 | 206 | a = ld |
|
205 | 207 | |
|
208 | prompts = promptssrc.copy() | |
|
209 | prompts['s'] = s | |
|
206 | 210 | if s in s2: |
|
207 | prompts = filemerge.partextras(labels) | |
|
208 | prompts['s'] = s | |
|
209 | 211 | r = s2[s] |
|
210 | 212 | if ld == r or r == a: # no change or local is newer |
|
211 | 213 | sm[s] = l |
@@ -268,6 +270,7 b' def submerge(repo, wctx, mctx, actx, ove' | |||
|
268 | 270 | wctx.sub(s).remove() |
|
269 | 271 | |
|
270 | 272 | for s, r in sorted(s2.items()): |
|
273 | prompts = None | |
|
271 | 274 | if s in s1: |
|
272 | 275 | continue |
|
273 | 276 | elif s not in sa: |
@@ -275,6 +278,8 b' def submerge(repo, wctx, mctx, actx, ove' | |||
|
275 | 278 | mctx.sub(s).get(r) |
|
276 | 279 | sm[s] = r |
|
277 | 280 | elif r != sa[s]: |
|
281 | prompts = promptssrc.copy() | |
|
282 | prompts['s'] = s | |
|
278 | 283 | if repo.ui.promptchoice( |
|
279 | 284 | _(' remote%(o)s changed subrepository %(s)s' |
|
280 | 285 | ' which local%(l)s removed\n' |
@@ -349,7 +349,7 b' 11: remove subrepo t' | |||
|
349 | 349 | local removed, remote changed, keep changed |
|
350 | 350 | |
|
351 | 351 | $ hg merge 6 |
|
352 |
remote [merge rev] changed subrepository |
|
|
352 | remote [merge rev] changed subrepository t which local [working copy] removed | |
|
353 | 353 | use (c)hanged version or (d)elete? c |
|
354 | 354 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
355 | 355 | (branch merge, don't forget to commit) |
@@ -380,7 +380,7 b' local removed, remote changed, keep remo' | |||
|
380 | 380 | $ hg merge --config ui.interactive=true 6 <<EOF |
|
381 | 381 | > d |
|
382 | 382 | > EOF |
|
383 |
remote [merge rev] changed subrepository |
|
|
383 | remote [merge rev] changed subrepository t which local [working copy] removed | |
|
384 | 384 | use (c)hanged version or (d)elete? d |
|
385 | 385 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
386 | 386 | (branch merge, don't forget to commit) |
@@ -404,7 +404,7 b' local changed, remote removed, keep chan' | |||
|
404 | 404 | $ hg co -C 6 |
|
405 | 405 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
406 | 406 | $ hg merge 11 |
|
407 |
local [working copy] changed subrepository |
|
|
407 | local [working copy] changed subrepository t which remote [merge rev] removed | |
|
408 | 408 | use (c)hanged version or (d)elete? c |
|
409 | 409 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
410 | 410 | (branch merge, don't forget to commit) |
@@ -436,7 +436,7 b' local changed, remote removed, keep remo' | |||
|
436 | 436 | $ hg merge --config ui.interactive=true 11 <<EOF |
|
437 | 437 | > d |
|
438 | 438 | > EOF |
|
439 |
local [working copy] changed subrepository |
|
|
439 | local [working copy] changed subrepository t which remote [merge rev] removed | |
|
440 | 440 | use (c)hanged version or (d)elete? d |
|
441 | 441 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
442 | 442 | (branch merge, don't forget to commit) |
General Comments 0
You need to be logged in to leave comments.
Login now