git @ Cat's Eye Technologies klaus / 012a3a4
Handle type changes in history (folder -> file, file -> symlink etc) Jonas Haag 13 years ago
1 changed file(s) with 8 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6464 def _path_changed_between(self, path, commit1, commit2):
6565 path, filename = os.path.split(path)
6666 try:
67 blob1 = self.get_tree(commit1, path)[filename]
67 blob1 = self.get_tree(commit1, path)
68 if not isinstance(blob1, dulwich.objects.Tree):
69 return True
70 blob1 = blob1[filename]
6871 except KeyError:
6972 blob1 = None
7073 try:
71 blob2 = self.get_tree(commit2, path)[filename]
74 blob2 = self.get_tree(commit2, path)
75 if not isinstance(blob2, dulwich.objects.Tree):
76 return True
77 blob2 = blob2[filename]
7278 except KeyError:
7379 blob2 = None
7480 if blob1 is None and blob2 is None: