From 8cdf192511b46d58bf298a2efc084a5ec1e9c12a Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Thu, 23 Feb 2017 15:17:17 +0100 Subject: [PATCH] list: add "name" key for consistency with info cmd --- src/borg/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/borg/helpers.py b/src/borg/helpers.py index 39bbf01a6..792e34571 100644 --- a/src/borg/helpers.py +++ b/src/borg/helpers.py @@ -1558,6 +1558,7 @@ class ArchiveFormatter(BaseFormatter): def get_item_data(self, archive): return { + 'name': remove_surrogates(archive.name), 'barchive': archive.name, 'archive': remove_surrogates(archive.name), 'id': bin_to_hex(archive.id), @@ -1566,7 +1567,7 @@ class ArchiveFormatter(BaseFormatter): @staticmethod def keys_help(): - return " - archive: archive name interpreted as text (might be missing non-text characters, see barchive)\n" \ + return " - archive, name: archive name interpreted as text (might be missing non-text characters, see barchive)\n" \ " - barchive: verbatim archive name, can contain any character except NUL\n" \ " - time: time of creation of the archive\n" \ " - id: internal ID of the archive"