Show More
@@ -668,13 +668,18 b' class svn_source(converter_source):' | |||||
668 | return None, branched |
|
668 | return None, branched | |
669 |
|
669 | |||
670 | parents = [] |
|
670 | parents = [] | |
671 | # check whether this revision is the start of a branch |
|
671 | # check whether this revision is the start of a branch or part | |
672 | if self.module in orig_paths: |
|
672 | # of a branch renaming | |
673 |
|
|
673 | orig_paths = orig_paths.items() | |
|
674 | orig_paths.sort() | |||
|
675 | root_paths = [(p,e) for p,e in orig_paths if self.module.startswith(p)] | |||
|
676 | if root_paths: | |||
|
677 | path, ent = root_paths[-1] | |||
674 | if ent.copyfrom_path: |
|
678 | if ent.copyfrom_path: | |
675 | branched = True |
|
679 | branched = True | |
|
680 | newpath = ent.copyfrom_path + self.module[len(path):] | |||
676 | # ent.copyfrom_rev may not be the actual last revision |
|
681 | # ent.copyfrom_rev may not be the actual last revision | |
677 |
previd = self.latest( |
|
682 | previd = self.latest(newpath, ent.copyfrom_rev) | |
678 | if previd is not None: |
|
683 | if previd is not None: | |
679 | parents = [previd] |
|
684 | parents = [previd] | |
680 | prevmodule, prevnum = self.revsplit(previd)[1:] |
|
685 | prevmodule, prevnum = self.revsplit(previd)[1:] | |
@@ -683,8 +688,6 b' class svn_source(converter_source):' | |||||
683 | else: |
|
688 | else: | |
684 | self.ui.debug("No copyfrom path, don't know what to do.\n") |
|
689 | self.ui.debug("No copyfrom path, don't know what to do.\n") | |
685 |
|
690 | |||
686 | orig_paths = orig_paths.items() |
|
|||
687 | orig_paths.sort() |
|
|||
688 | paths = [] |
|
691 | paths = [] | |
689 | # filter out unrelated paths |
|
692 | # filter out unrelated paths | |
690 | for path, ent in orig_paths: |
|
693 | for path, ent in orig_paths: |
General Comments 0
You need to be logged in to leave comments.
Login now