##// END OF EJS Templates
convert: follow svn module parent moves
Patrick Mezard -
r5958:59dce249 default
parent child Browse files
Show More
@@ -668,13 +668,18 b' class svn_source(converter_source):'
668 668 return None, branched
669 669
670 670 parents = []
671 # check whether this revision is the start of a branch
672 if self.module in orig_paths:
673 ent = orig_paths[self.module]
671 # check whether this revision is the start of a branch or part
672 # of a branch renaming
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 678 if ent.copyfrom_path:
675 679 branched = True
680 newpath = ent.copyfrom_path + self.module[len(path):]
676 681 # ent.copyfrom_rev may not be the actual last revision
677 previd = self.latest(ent.copyfrom_path, ent.copyfrom_rev)
682 previd = self.latest(newpath, ent.copyfrom_rev)
678 683 if previd is not None:
679 684 parents = [previd]
680 685 prevmodule, prevnum = self.revsplit(previd)[1:]
@@ -683,8 +688,6 b' class svn_source(converter_source):'
683 688 else:
684 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 691 paths = []
689 692 # filter out unrelated paths
690 693 for path, ent in orig_paths:
General Comments 0
You need to be logged in to leave comments. Login now