mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-03 05:35:58 +00:00
Merge pull request #742 from ThomasWaldmann/improve-prune-log
format_archive: also output archive id, fixes #731
This commit is contained in:
commit
5e5bab3239
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
import argparse
|
||||
from binascii import hexlify
|
||||
from collections import namedtuple
|
||||
from functools import wraps
|
||||
import grp
|
||||
|
@ -610,7 +611,11 @@ def sizeof_fmt_decimal(num, suffix='B', sep='', precision=2):
|
|||
|
||||
|
||||
def format_archive(archive):
|
||||
return '%-36s %s' % (archive.name, format_time(to_localtime(archive.ts)))
|
||||
return '%-36s %s [%s]' % (
|
||||
archive.name,
|
||||
format_time(to_localtime(archive.ts)),
|
||||
hexlify(archive.id).decode('ascii'),
|
||||
)
|
||||
|
||||
|
||||
def memoize(function):
|
||||
|
|
Loading…
Reference in a new issue