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