##// END OF EJS Templates
pull-requests: handle case when removing existing files from a repository in versioning diff.
marcink -
r4129:603689e4 default
parent child Browse files
Show More
@@ -970,7 +970,12 b' class PullRequestModel(BaseModel):'
970
970
971 old_hash = old_files.get(new_filename)
971 old_hash = old_files.get(new_filename)
972 if not old_hash:
972 if not old_hash:
973 # file is not present in old diff, means it's added
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:
974 added_files.append(new_filename)
979 added_files.append(new_filename)
975 else:
980 else:
976 if new_hash != old_hash:
981 if new_hash != old_hash:
General Comments 0
You need to be logged in to leave comments. Login now