Show More
@@ -440,15 +440,7 b' def overridecalculateupdates(origfn, rep' | |||
|
440 | 440 | usermsg = _('remote turned local normal file %s into a largefile\n' |
|
441 | 441 | 'use (l)argefile or keep (n)ormal file?' |
|
442 | 442 | '$$ &Largefile $$ &Normal file') % lfile |
|
443 |
if ( |
|
|
444 | pas and lfile in pas[0] and | |
|
445 | not pas[0][lfile].cmp(p1[lfile]) or | |
|
446 | # if remote has unchanged largefile, pick local normal file | |
|
447 | not (pas and standin in pas[0] and | |
|
448 | not pas[0][standin].cmp(p2[standin])) and | |
|
449 | # else, prompt | |
|
450 | repo.ui.promptchoice(usermsg, 0) == 0 | |
|
451 | ): # pick remote largefile | |
|
443 | if repo.ui.promptchoice(usermsg, 0) == 0: # pick remote largefile | |
|
452 | 444 | actions['r'].append((lfile, None, 'replaced by standin')) |
|
453 | 445 | newglist.append((standin, (p2.flags(standin),), msg)) |
|
454 | 446 | else: # keep local normal file |
@@ -461,15 +453,7 b' def overridecalculateupdates(origfn, rep' | |||
|
461 | 453 | usermsg = _('remote turned local largefile %s into a normal file\n' |
|
462 | 454 | 'keep (l)argefile or use (n)ormal file?' |
|
463 | 455 | '$$ &Largefile $$ &Normal file') % lfile |
|
464 | if (# if remote has unchanged normal file, pick local largefile | |
|
465 | pas and f in pas[0] and | |
|
466 | not pas[0][f].cmp(p2[f]) or | |
|
467 | # if local has unchanged largefile, pick remote normal file | |
|
468 | not (pas and standin in pas[0] and | |
|
469 | not pas[0][standin].cmp(p1[standin])) and | |
|
470 | # else, prompt | |
|
471 | repo.ui.promptchoice(usermsg, 0) == 0 | |
|
472 | ): # keep local largefile | |
|
456 | if repo.ui.promptchoice(usermsg, 0) == 0: # keep local largefile | |
|
473 | 457 | if branchmerge: |
|
474 | 458 | # largefile can be restored from standin safely |
|
475 | 459 | actions['r'].append((lfile, None, 'replaced by standin')) |
General Comments 0
You need to be logged in to leave comments.
Login now