mirror of https://github.com/borgbackup/borg.git
remove deprecated option: --list-format
replaced by: --format
This commit is contained in:
parent
933e82a49c
commit
c87393cab7
|
@ -2266,7 +2266,6 @@ class Archiver:
|
||||||
def preprocess_args(self, args):
|
def preprocess_args(self, args):
|
||||||
deprecations = [
|
deprecations = [
|
||||||
# ('--old', '--new' or None, 'Warning: "--old" has been deprecated. Use "--new" instead.'),
|
# ('--old', '--new' or None, 'Warning: "--old" has been deprecated. Use "--new" instead.'),
|
||||||
('--list-format', '--format', 'Warning: "--list-format" has been deprecated. Use "--format" instead.'),
|
|
||||||
('--ignore-inode', None, 'Warning: "--ignore-inode" has been deprecated. Use "--files-cache=ctime,size" or "...=mtime,size" instead.'),
|
('--ignore-inode', None, 'Warning: "--ignore-inode" has been deprecated. Use "--files-cache=ctime,size" or "...=mtime,size" instead.'),
|
||||||
('--no-files-cache', None, 'Warning: "--no-files-cache" has been deprecated. Use "--files-cache=disabled" instead.'),
|
('--no-files-cache', None, 'Warning: "--no-files-cache" has been deprecated. Use "--files-cache=disabled" instead.'),
|
||||||
]
|
]
|
||||||
|
|
|
@ -1886,8 +1886,6 @@ class ArchiverTestCase(ArchiverTestCaseBase):
|
||||||
self.cmd('init', '--encryption=repokey', self.repository_location)
|
self.cmd('init', '--encryption=repokey', self.repository_location)
|
||||||
test_archive = self.repository_location + '::test'
|
test_archive = self.repository_location + '::test'
|
||||||
self.cmd('create', test_archive, src_dir)
|
self.cmd('create', test_archive, src_dir)
|
||||||
output_warn = self.cmd('list', '--list-format', '-', test_archive)
|
|
||||||
self.assert_in('--list-format" has been deprecated.', output_warn)
|
|
||||||
output_1 = self.cmd('list', test_archive)
|
output_1 = self.cmd('list', test_archive)
|
||||||
output_2 = self.cmd('list', '--format', '{mode} {user:6} {group:6} {size:8d} {mtime} {path}{extra}{NEWLINE}', test_archive)
|
output_2 = self.cmd('list', '--format', '{mode} {user:6} {group:6} {size:8d} {mtime} {path}{extra}{NEWLINE}', test_archive)
|
||||||
output_3 = self.cmd('list', '--format', '{mtime:%s} {path}{NL}', test_archive)
|
output_3 = self.cmd('list', '--format', '{mtime:%s} {path}{NL}', test_archive)
|
||||||
|
|
Loading…
Reference in New Issue