mirror of https://github.com/borgbackup/borg.git
Merge pull request #4974 from ThomasWaldmann/msgids
fix ProgressIndicator msgids, fixes #4935 (master)
This commit is contained in:
commit
854065e193
|
@ -549,13 +549,17 @@ Operations
|
||||||
*info* is one string element, the name of the archive currently synced.
|
*info* is one string element, the name of the archive currently synced.
|
||||||
- repository.compact_segments
|
- repository.compact_segments
|
||||||
- repository.replay_segments
|
- repository.replay_segments
|
||||||
- repository.check_segments
|
- repository.check
|
||||||
- check.verify_data
|
- check.verify_data
|
||||||
|
- check.rebuild_manifest
|
||||||
- extract
|
- extract
|
||||||
|
|
||||||
*info* is one string element, the name of the path currently extracted.
|
*info* is one string element, the name of the path currently extracted.
|
||||||
- extract.permissions
|
- extract.permissions
|
||||||
- archive.delete
|
- archive.delete
|
||||||
|
- archive.calc_stats
|
||||||
|
- prune
|
||||||
|
- upgrade.convert_segments
|
||||||
|
|
||||||
Prompts
|
Prompts
|
||||||
BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK
|
BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK
|
||||||
|
|
|
@ -596,7 +596,8 @@ Utilization of max. archive size: {csize_max:.0%}
|
||||||
archive_index = ChunkIndex()
|
archive_index = ChunkIndex()
|
||||||
sync = CacheSynchronizer(archive_index)
|
sync = CacheSynchronizer(archive_index)
|
||||||
add(self.id)
|
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)):
|
for id, chunk in zip(self.metadata.items, self.repository.get_many(self.metadata.items)):
|
||||||
pi.show(increase=1)
|
pi.show(increase=1)
|
||||||
add(id)
|
add(id)
|
||||||
|
|
|
@ -79,7 +79,7 @@ class AtticRepositoryUpgrader(Repository):
|
||||||
replace the 8 first bytes of all regular files in there."""
|
replace the 8 first bytes of all regular files in there."""
|
||||||
logger.info("converting %d segments..." % len(segments))
|
logger.info("converting %d segments..." % len(segments))
|
||||||
segment_count = 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):
|
for i, filename in enumerate(segments):
|
||||||
if progress:
|
if progress:
|
||||||
pi.show(i)
|
pi.show(i)
|
||||||
|
|
Loading…
Reference in New Issue