tag: output the original ID and new snapshotID (#5144)

* tag: output the original ID and new snapshotID

tag: print changed snapshot information immediately

* print changed snapshot immediately after it has been saved
* add message type to the changedSnapshot
* add a summary type which will share the JSON output of the numer of changed snapshots
* updated verbosity of the changed snapshot in text mode to only work when verbosity > 2
* also use the terminal status printer for a standard handling for stdout messages
This commit is contained in:
Srigovind Nayak
2025-01-14 23:27:47 +05:30
committed by GitHub
parent e6f9cfb8c8
commit 115ecb3c92
4 changed files with 82 additions and 13 deletions

View File

@@ -722,6 +722,30 @@ The stats command returns a single JSON object.
| ``compression_space_saving`` | Overall space saving due to compression |
+------------------------------+-----------------------------------------------------+
tag
---
The ``tag`` command uses the JSON lines format with the following message types.
Changed
^^^^^^^
+--------------------------+-------------------------------------------+
| ``message_type`` | Always "changed" |
+--------------------------+-------------------------------------------+
| ``old_snapshot_id`` | ID of the snapshot before the change |
+--------------------------+-------------------------------------------+
| ``new_snapshot_id`` | ID of the snapshot after the change |
+--------------------------+-------------------------------------------+
Summary
^^^^^^^
+-----------------------------+-------------------------------------------+
| ``message_type`` | Always "summary" |
+-----------------------------+-------------------------------------------+
| ``changed_snapshot_count`` | Total number of changed snapshots |
+-----------------------------+-------------------------------------------+
version
-------