Show More
@@ -657,6 +657,12 b' def _fullcopytracing(repo, c1, c2, base)' | |||||
657 |
|
657 | |||
658 | repo.ui.debug(b" checking for directory renames\n") |
|
658 | repo.ui.debug(b" checking for directory renames\n") | |
659 |
|
659 | |||
|
660 | dirmove, movewithdir = _dir_renames(repo, c1, c2, copy, fullcopy, u1, u2) | |||
|
661 | ||||
|
662 | return copy, movewithdir, diverge, renamedelete, dirmove | |||
|
663 | ||||
|
664 | ||||
|
665 | def _dir_renames(repo, c1, c2, copy, fullcopy, u1, u2): | |||
660 | # generate a directory move map |
|
666 | # generate a directory move map | |
661 | d1, d2 = c1.dirs(), c2.dirs() |
|
667 | d1, d2 = c1.dirs(), c2.dirs() | |
662 | invalid = set() |
|
668 | invalid = set() | |
@@ -688,7 +694,7 b' def _fullcopytracing(repo, c1, c2, base)' | |||||
688 | del d1, d2, invalid |
|
694 | del d1, d2, invalid | |
689 |
|
695 | |||
690 | if not dirmove: |
|
696 | if not dirmove: | |
691 | return copy, {}, diverge, renamedelete, {} |
|
697 | return {}, {} | |
692 |
|
698 | |||
693 | dirmove = {k + b"/": v + b"/" for k, v in pycompat.iteritems(dirmove)} |
|
699 | dirmove = {k + b"/": v + b"/" for k, v in pycompat.iteritems(dirmove)} | |
694 |
|
700 | |||
@@ -713,7 +719,7 b' def _fullcopytracing(repo, c1, c2, base)' | |||||
713 | ) |
|
719 | ) | |
714 | break |
|
720 | break | |
715 |
|
721 | |||
716 | return copy, movewithdir, diverge, renamedelete, dirmove |
|
722 | return dirmove, movewithdir | |
717 |
|
723 | |||
718 |
|
724 | |||
719 | def _heuristicscopytracing(repo, c1, c2, base): |
|
725 | def _heuristicscopytracing(repo, c1, c2, base): |
General Comments 0
You need to be logged in to leave comments.
Login now