Show More
@@ -827,7 +827,10 b' def calculateupdates(repo, wctx, mctx, a' | |||||
827 |
|
827 | |||
828 | # Prompt and create actions. TODO: Move this towards resolve phase. |
|
828 | # Prompt and create actions. TODO: Move this towards resolve phase. | |
829 | for f, args, msg in actions['cd']: |
|
829 | for f, args, msg in actions['cd']: | |
830 | if repo.ui.promptchoice( |
|
830 | if f in ancestors[0] and not wctx[f].cmp(ancestors[0][f]): | |
|
831 | # local did change but ended up with same content | |||
|
832 | actions['r'].append((f, None, "prompt same")) | |||
|
833 | elif repo.ui.promptchoice( | |||
831 | _("local changed %s which remote deleted\n" |
|
834 | _("local changed %s which remote deleted\n" | |
832 | "use (c)hanged version or (d)elete?" |
|
835 | "use (c)hanged version or (d)elete?" | |
833 | "$$ &Changed $$ &Delete") % f, 0): |
|
836 | "$$ &Changed $$ &Delete") % f, 0): | |
@@ -838,7 +841,10 b' def calculateupdates(repo, wctx, mctx, a' | |||||
838 |
|
841 | |||
839 | for f, args, msg in actions['dc']: |
|
842 | for f, args, msg in actions['dc']: | |
840 | flags, = args |
|
843 | flags, = args | |
841 | if repo.ui.promptchoice( |
|
844 | if f in ancestors[0] and not mctx[f].cmp(ancestors[0][f]): | |
|
845 | # remote did change but ended up with same content | |||
|
846 | pass # don't get = keep local deleted | |||
|
847 | elif repo.ui.promptchoice( | |||
842 | _("remote changed %s which local deleted\n" |
|
848 | _("remote changed %s which local deleted\n" | |
843 | "use (c)hanged version or leave (d)eleted?" |
|
849 | "use (c)hanged version or leave (d)eleted?" | |
844 | "$$ &Changed $$ &Deleted") % f, 0) == 0: |
|
850 | "$$ &Changed $$ &Deleted") % f, 0) == 0: |
@@ -262,8 +262,6 b' Ancestor: normal Parent: normal-same P' | |||||
262 |
|
262 | |||
263 | $ hg up -Cqr normal-same |
|
263 | $ hg up -Cqr normal-same | |
264 | $ hg merge -r large |
|
264 | $ hg merge -r large | |
265 | local changed f which remote deleted |
|
|||
266 | use (c)hanged version or (d)elete? c |
|
|||
267 | getting changed largefiles |
|
265 | getting changed largefiles | |
268 | 1 largefiles updated, 0 removed |
|
266 | 1 largefiles updated, 0 removed | |
269 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
267 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
@@ -275,11 +273,9 b' swap' | |||||
275 |
|
273 | |||
276 | $ hg up -Cqr large |
|
274 | $ hg up -Cqr large | |
277 | $ hg merge -r normal-same |
|
275 | $ hg merge -r normal-same | |
278 | remote changed f which local deleted |
|
|||
279 | use (c)hanged version or leave (d)eleted? c |
|
|||
280 | getting changed largefiles |
|
276 | getting changed largefiles | |
281 |
|
|
277 | 0 largefiles updated, 0 removed | |
282 |
1 files updated, 0 files merged, |
|
278 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
283 | (branch merge, don't forget to commit) |
|
279 | (branch merge, don't forget to commit) | |
284 | $ cat f |
|
280 | $ cat f | |
285 | large |
|
281 | large | |
@@ -387,8 +383,6 b' Ancestor: large Parent: large-same P' | |||||
387 |
|
383 | |||
388 | $ hg up -Cqr large-same |
|
384 | $ hg up -Cqr large-same | |
389 | $ hg merge -r normal |
|
385 | $ hg merge -r normal | |
390 | local changed .hglf/f which remote deleted |
|
|||
391 | use (c)hanged version or (d)elete? c |
|
|||
392 | getting changed largefiles |
|
386 | getting changed largefiles | |
393 | 0 largefiles updated, 0 removed |
|
387 | 0 largefiles updated, 0 removed | |
394 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
388 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
@@ -400,11 +394,7 b' swap' | |||||
400 |
|
394 | |||
401 | $ hg up -Cqr normal |
|
395 | $ hg up -Cqr normal | |
402 | $ hg merge -r large-same |
|
396 | $ hg merge -r large-same | |
403 | remote changed .hglf/f which local deleted |
|
397 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
404 | use (c)hanged version or leave (d)eleted? c |
|
|||
405 | getting changed largefiles |
|
|||
406 | 0 largefiles updated, 0 removed |
|
|||
407 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
|||
408 | (branch merge, don't forget to commit) |
|
398 | (branch merge, don't forget to commit) | |
409 | $ cat f |
|
399 | $ cat f | |
410 | normal |
|
400 | normal |
General Comments 0
You need to be logged in to leave comments.
Login now