Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion atlassian/bitbucket/cloud/repositories/diffstat.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ class DiffStat(BitbucketCloudBase):
MODIFIED = "modified"
ADDED = "added"
REMOVED = "removed"
LOCAL_DELETED = "local deleted"
REMOTE_DELETED = "remote deleted"
MERGE_CONFLICT = "merge conflict"
RENAME_CONFLICT = "rename conflict"
RENAME_DELETE_CONFLICT = "rename/delete conflict"
SUBREPO_CONFLICT = "subrepo conflict"

def __init__(self, data, *args, **kwargs):
Expand Down Expand Up @@ -43,7 +47,14 @@ def new(self):
@property
def has_conflict(self):
"""True if the change causes a conflict."""
return str(self.get_data("status")) in (self.MERGE_CONFLICT, self.SUBREPO_CONFLICT)
return str(self.get_data("status")) in [
self.MERGE_CONFLICT,
self.RENAME_CONFLICT,
self.RENAME_DELETE_CONFLICT,
self.SUBREPO_CONFLICT,
self.LOCAL_DELETED,
self.REMOTE_DELETED,
]


class CommitFile(BitbucketCloudBase):
Expand Down