mirror of https://github.com/borgbase/vorta
e3451ed49e
Borg v1.2.4 added new change types called `mtime` and `ctime` for the modification and the creation time of a file. Our diff json parser doesn't support these changes yet. The plain text parser doesn't need to be updated since it is only used for earlier versions of borg. This also extends the tooltip in the diff view to show changes in `ctime` or `mtime` in a localised manner. * src/vorta/views/diff_result.py (ChangeType): Add `CTIME` and `MTIME` linking to `MODIFIED`. * src/vorta/views/diff_result.py (DiffData): Add fields `ctime_change` and `mtime_change`. * src/vorta/views/diff_result.py (parse_diff_json): Parse the new change types. * src/vorta/views/diff_result.py (DiffTree.data): Add time changes to tooltip in a human readable format. * tests/test_diff.py : Update test data to include new change types. Add additional test cases for unittesting the new change types. |
||
---|---|---|
.. | ||
borg_json_output | ||
network_manager | ||
profile_exports | ||
__init__.py | ||
conftest.py | ||
test_archives.py | ||
test_borg.py | ||
test_create.py | ||
test_diff.py | ||
test_extract.py | ||
test_import_export.py | ||
test_lock.py | ||
test_misc.py | ||
test_notifications.py | ||
test_profile.py | ||
test_repo.py | ||
test_schedule.py | ||
test_scheduler.py | ||
test_source.py | ||
test_treemodel.py | ||
test_utils.py |