Show More
@@ -970,8 +970,13 b' class PullRequestModel(BaseModel):' | |||
|
970 | 970 | |
|
971 | 971 | old_hash = old_files.get(new_filename) |
|
972 | 972 | if not old_hash: |
|
973 |
# file is not present in old diff, |
|
|
974 | added_files.append(new_filename) | |
|
973 | # file is not present in old diff, we have to figure out from parsed diff | |
|
974 | # operation ADD/REMOVE | |
|
975 | operations_dict = diff_data['stats']['ops'] | |
|
976 | if diffs.DEL_FILENODE in operations_dict: | |
|
977 | removed_files.append(new_filename) | |
|
978 | else: | |
|
979 | added_files.append(new_filename) | |
|
975 | 980 | else: |
|
976 | 981 | if new_hash != old_hash: |
|
977 | 982 | modified_files.append(new_filename) |
General Comments 0
You need to be logged in to leave comments.
Login now