Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions mergin/local_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class FileChange:
history: Optional[dict] = None
# some functions (MerginProject.compare_file_sets) are adding location dict to the change from project info
location: Optional[str] = None
# list of diff filenames associated with this change
diffs: Optional[List[str]] = None
Comment thread
MarcelGeo marked this conversation as resolved.

def get_diff(self) -> Optional[FileDiffChange]:
if self.diff:
Expand Down
1 change: 1 addition & 0 deletions mergin/test/test_local_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def test_local_changes_from_dict():
"path": "base.gpkg",
"size": 98304,
"version": "v1",
"diffs": ["diff"],
}
Comment thread
MarcelGeo marked this conversation as resolved.
],
}
Expand Down
Loading