Show More
@@ -435,15 +435,13 b' def overridecalculateupdates(origfn, rep' | |||
|
435 | 435 | |
|
436 | 436 | # Convert to dictionary with filename as key and action as value. |
|
437 | 437 | lfiles = set() |
|
438 |
actionbyfile = |
|
|
439 |
for |
|
|
440 | for f, args, msg in l: | |
|
441 | actionbyfile[f] = m, args, msg | |
|
442 | splitstandin = f and lfutil.splitstandin(f) | |
|
443 |
|
|
|
444 |
|
|
|
445 | elif lfutil.standin(f) in p1: | |
|
446 | lfiles.add(f) | |
|
438 | actionbyfile = actions | |
|
439 | for f in actionbyfile: | |
|
440 | splitstandin = f and lfutil.splitstandin(f) | |
|
441 | if splitstandin in p1: | |
|
442 | lfiles.add(splitstandin) | |
|
443 | elif lfutil.standin(f) in p1: | |
|
444 | lfiles.add(f) | |
|
447 | 445 | |
|
448 | 446 | for lfile in lfiles: |
|
449 | 447 | standin = lfutil.standin(lfile) |
@@ -489,14 +487,7 b' def overridecalculateupdates(origfn, rep' | |||
|
489 | 487 | actionbyfile[lfile] = ('g', largs, 'replaces standin') |
|
490 | 488 | actionbyfile[standin] = ('r', None, 'replaced by non-standin') |
|
491 | 489 | |
|
492 | # Convert back to dictionary-of-lists format | |
|
493 | for l in actions.itervalues(): | |
|
494 | l[:] = [] | |
|
495 | actions['lfmr'] = [] | |
|
496 | for f, (m, args, msg) in actionbyfile.iteritems(): | |
|
497 | actions[m].append((f, args, msg)) | |
|
498 | ||
|
499 | return actions, diverge, renamedelete | |
|
490 | return actionbyfile, diverge, renamedelete | |
|
500 | 491 | |
|
501 | 492 | def mergerecordupdates(orig, repo, actions, branchmerge): |
|
502 | 493 | if 'lfmr' in actions: |
@@ -621,12 +621,6 b' def calculateupdates(repo, wctx, mctx, a' | |||
|
621 | 621 | fractions = _forgetremoved(wctx, mctx, branchmerge) |
|
622 | 622 | actions.update(fractions) |
|
623 | 623 | |
|
624 | # Convert to dictionary-of-lists format | |
|
625 | actionbyfile = actions | |
|
626 | actions = dict((m, []) for m in 'a f g cd dc r dm dg m e k'.split()) | |
|
627 | for f, (m, args, msg) in actionbyfile.iteritems(): | |
|
628 | actions[m].append((f, args, msg)) | |
|
629 | ||
|
630 | 624 | return actions, diverge, renamedelete |
|
631 | 625 | |
|
632 | 626 | def batchremove(repo, actions): |
@@ -1069,9 +1063,15 b' def update(repo, node, branchmerge, forc' | |||
|
1069 | 1063 | followcopies = True |
|
1070 | 1064 | |
|
1071 | 1065 | ### calculate phase |
|
1072 |
action |
|
|
1066 | actionbyfile, diverge, renamedelete = calculateupdates( | |
|
1073 | 1067 | repo, wc, p2, pas, branchmerge, force, partial, mergeancestor, |
|
1074 | 1068 | followcopies) |
|
1069 | # Convert to dictionary-of-lists format | |
|
1070 | actions = dict((m, []) for m in 'a f g cd dc r dm dg m e k'.split()) | |
|
1071 | for f, (m, args, msg) in actionbyfile.iteritems(): | |
|
1072 | if m not in actions: | |
|
1073 | actions[m] = [] | |
|
1074 | actions[m].append((f, args, msg)) | |
|
1075 | 1075 | |
|
1076 | 1076 | if not util.checkcase(repo.path): |
|
1077 | 1077 | # check collision between files only in p2 for clean update |
General Comments 0
You need to be logged in to leave comments.
Login now