##// END OF EJS Templates
largefiles: remove redundant checks for false modify/delete conflicts...
Martin von Zweigbergk -
r23483:3805f4b0 default
parent child Browse files
Show More
@@ -440,15 +440,7 b' def overridecalculateupdates(origfn, rep'
440 usermsg = _('remote turned local normal file %s into a largefile\n'
440 usermsg = _('remote turned local normal file %s into a largefile\n'
441 'use (l)argefile or keep (n)ormal file?'
441 'use (l)argefile or keep (n)ormal file?'
442 '$$ &Largefile $$ &Normal file') % lfile
442 '$$ &Largefile $$ &Normal file') % lfile
443 if (# local has unchanged normal file, pick remote largefile
443 if repo.ui.promptchoice(usermsg, 0) == 0: # pick remote largefile
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
452 actions['r'].append((lfile, None, 'replaced by standin'))
444 actions['r'].append((lfile, None, 'replaced by standin'))
453 newglist.append((standin, (p2.flags(standin),), msg))
445 newglist.append((standin, (p2.flags(standin),), msg))
454 else: # keep local normal file
446 else: # keep local normal file
@@ -461,15 +453,7 b' def overridecalculateupdates(origfn, rep'
461 usermsg = _('remote turned local largefile %s into a normal file\n'
453 usermsg = _('remote turned local largefile %s into a normal file\n'
462 'keep (l)argefile or use (n)ormal file?'
454 'keep (l)argefile or use (n)ormal file?'
463 '$$ &Largefile $$ &Normal file') % lfile
455 '$$ &Largefile $$ &Normal file') % lfile
464 if (# if remote has unchanged normal file, pick local largefile
456 if repo.ui.promptchoice(usermsg, 0) == 0: # keep 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
473 if branchmerge:
457 if branchmerge:
474 # largefile can be restored from standin safely
458 # largefile can be restored from standin safely
475 actions['r'].append((lfile, None, 'replaced by standin'))
459 actions['r'].append((lfile, None, 'replaced by standin'))
General Comments 0
You need to be logged in to leave comments. Login now