Ver código fonte

fix ProgressIndicator msgids, fixes #4935

add some to code, fix docs.
Thomas Waldmann 5 anos atrás
pai
commit
358ba5e591
3 arquivos alterados com 7 adições e 3 exclusões
  1. 5 1
      docs/internals/frontends.rst
  2. 1 1
      src/borg/archive.py
  3. 1 1
      src/borg/upgrader.py

+ 5 - 1
docs/internals/frontends.rst

@@ -548,13 +548,17 @@ Operations
       *info* is one string element, the name of the archive currently synced.
     - repository.compact_segments
     - repository.replay_segments
-    - repository.check_segments
+    - repository.check
     - check.verify_data
+    - check.rebuild_manifest
     - extract
 
       *info* is one string element, the name of the path currently extracted.
     - extract.permissions
     - archive.delete
+    - archive.calc_stats
+    - prune
+    - upgrade.convert_segments
 
 Prompts
     BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK

+ 1 - 1
src/borg/archive.py

@@ -525,7 +525,7 @@ Utilization of max. archive size: {csize_max:.0%}
         archive_index = ChunkIndex()
         sync = CacheSynchronizer(archive_index)
         add(self.id)
-        pi = ProgressIndicatorPercent(total=len(self.metadata.items), msg='Calculating statistics... %3d%%')
+        pi = ProgressIndicatorPercent(total=len(self.metadata.items), msg='Calculating statistics... %3d%%', msgid='archive.calc_stats')
         for id, chunk in zip(self.metadata.items, self.repository.get_many(self.metadata.items)):
             pi.show(increase=1)
             add(id)

+ 1 - 1
src/borg/upgrader.py

@@ -79,7 +79,7 @@ class AtticRepositoryUpgrader(Repository):
         replace the 8 first bytes of all regular files in there."""
         logger.info("converting %d segments..." % len(segments))
         segment_count = len(segments)
-        pi = ProgressIndicatorPercent(total=segment_count, msg="Converting segments %3.0f%%")
+        pi = ProgressIndicatorPercent(total=segment_count, msg="Converting segments %3.0f%%", msgid='upgrade.convert_segments')
         for i, filename in enumerate(segments):
             if progress:
                 pi.show(i)