diff --git a/mergin/local_changes.py b/mergin/local_changes.py index f0a235d..2b5ba8a 100644 --- a/mergin/local_changes.py +++ b/mergin/local_changes.py @@ -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 def get_diff(self) -> Optional[FileDiffChange]: if self.diff: diff --git a/mergin/test/test_local_changes.py b/mergin/test/test_local_changes.py index 2c3d878..4366f5d 100644 --- a/mergin/test/test_local_changes.py +++ b/mergin/test/test_local_changes.py @@ -28,6 +28,7 @@ def test_local_changes_from_dict(): "path": "base.gpkg", "size": 98304, "version": "v1", + "diffs": ["diff"], } ], } diff --git a/mergin/version.py b/mergin/version.py index 73b936c..0e95ca8 100644 --- a/mergin/version.py +++ b/mergin/version.py @@ -1,5 +1,5 @@ # The version is also stored in ../setup.py -__version__ = "0.12.1" +__version__ = "0.12.2" # There seems to be no single nice way to keep version info just in one place: # https://packaging.python.org/guides/single-sourcing-package-version/ diff --git a/setup.py b/setup.py index fc7325c..25b80b0 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="mergin-client", - version="0.12.1", + version="0.12.2", url="https://github.com/MerginMaps/python-api-client", license="MIT", author="Lutra Consulting Ltd.",