Show More
@@ -478,15 +478,19 b' def _merge_copies_dict(minor, major, isa' | |||
|
478 | 478 | |
|
479 | 479 | def _compare_values(changes, isancestor, dest, minor, major): |
|
480 | 480 | """compare two value within a _merge_copies_dict loop iteration""" |
|
481 |
major_tt = major |
|
|
482 |
minor_tt = minor |
|
|
481 | major_tt, major_value = major | |
|
482 | minor_tt, minor_value = minor | |
|
483 | 483 | |
|
484 | if major[1] == minor[1]: | |
|
484 | # evacuate some simple case first: | |
|
485 | if major_tt == minor_tt: | |
|
486 | # if it comes from the same revision it must be the same value | |
|
487 | assert major_value == minor_value | |
|
485 | 488 | return PICK_EITHER |
|
486 | # content from "major" wins, unless it is older | |
|
487 | # than the branch point or there is a merge | |
|
488 | if major_tt == minor_tt: | |
|
489 | return PICK_MAJOR | |
|
489 | elif major[1] == minor[1]: | |
|
490 | return PICK_EITHER | |
|
491 | ||
|
492 | # actual merging needed: content from "major" wins, unless it is older than | |
|
493 | # the branch point or there is a merge | |
|
490 | 494 | elif changes is not None and major[1] is None and dest in changes.salvaged: |
|
491 | 495 | return PICK_MINOR |
|
492 | 496 | elif changes is not None and minor[1] is None and dest in changes.salvaged: |
General Comments 0
You need to be logged in to leave comments.
Login now