Show More
@@ -481,6 +481,9 b' def overridecalculateupdates(origfn, rep' | |||
|
481 | 481 | (lm, largs, lmsg) = actions.get(lfile, (None, None, None)) |
|
482 | 482 | (sm, sargs, smsg) = actions.get(standin, (None, None, None)) |
|
483 | 483 | if sm in ('g', 'dc') and lm != 'r': |
|
484 | if sm == 'dc': | |
|
485 | f1, f2, fa, move, anc = sargs | |
|
486 | sargs = (p2[f2].flags(),) | |
|
484 | 487 | # Case 1: normal file in the working copy, largefile in |
|
485 | 488 | # the second parent |
|
486 | 489 | usermsg = _('remote turned local normal file %s into a largefile\n' |
@@ -496,6 +499,9 b' def overridecalculateupdates(origfn, rep' | |||
|
496 | 499 | else: |
|
497 | 500 | actions[standin] = ('r', None, 'replaced by non-standin') |
|
498 | 501 | elif lm in ('g', 'dc') and sm != 'r': |
|
502 | if lm == 'dc': | |
|
503 | f1, f2, fa, move, anc = largs | |
|
504 | largs = (p2[f2].flags(),) | |
|
499 | 505 | # Case 2: largefile in the working copy, normal file in |
|
500 | 506 | # the second parent |
|
501 | 507 | usermsg = _('remote turned local largefile %s into a normal file\n' |
@@ -623,7 +623,8 b' def manifestmerge(repo, wctx, p2, pa, br' | |||
|
623 | 623 | if acceptremote: |
|
624 | 624 | actions[f] = ('r', None, "remote delete") |
|
625 | 625 | else: |
|
626 |
actions[f] = ('cd', None, |
|
|
626 | actions[f] = ('cd', (f, None, f, False, pa.node()), | |
|
627 | "prompt changed/deleted") | |
|
627 | 628 | elif n1[20:] == 'a': |
|
628 | 629 | # This extra 'a' is added by working copy manifest to mark |
|
629 | 630 | # the file as locally added. We should forget it instead of |
@@ -673,7 +674,8 b' def manifestmerge(repo, wctx, p2, pa, br' | |||
|
673 | 674 | if acceptremote: |
|
674 | 675 | actions[f] = ('c', (fl2,), "remote recreating") |
|
675 | 676 | else: |
|
676 |
actions[f] = ('dc', ( |
|
|
677 | actions[f] = ('dc', (None, f, f, False, pa.node()), | |
|
678 | "prompt deleted/changed") | |
|
677 | 679 | |
|
678 | 680 | return actions, diverge, renamedelete |
|
679 | 681 | |
@@ -1264,7 +1266,8 b' def update(repo, node, branchmerge, forc' | |||
|
1264 | 1266 | actions['a'].append((f, None, "prompt keep")) |
|
1265 | 1267 | |
|
1266 | 1268 | for f, args, msg in sorted(actions['dc']): |
|
1267 |
f |
|
|
1269 | f1, f2, fa, move, anc = args | |
|
1270 | flags = p2[f2].flags() | |
|
1268 | 1271 | if repo.ui.promptchoice( |
|
1269 | 1272 | _("remote changed %s which local deleted\n" |
|
1270 | 1273 | "use (c)hanged version or leave (d)eleted?" |
General Comments 0
You need to be logged in to leave comments.
Login now