فهرست منبع

remove deprecated option: --list-format

replaced by: --format
Thomas Waldmann 6 سال پیش
والد
کامیت
c87393cab7
2فایلهای تغییر یافته به همراه0 افزوده شده و 3 حذف شده
  1. 0 1
      src/borg/archiver.py
  2. 0 2
      src/borg/testsuite/archiver.py

+ 0 - 1
src/borg/archiver.py

@@ -2266,7 +2266,6 @@ class Archiver:
     def preprocess_args(self, args):
         deprecations = [
             # ('--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.'),
             ('--no-files-cache', None, 'Warning: "--no-files-cache" has been deprecated. Use "--files-cache=disabled" instead.'),
         ]

+ 0 - 2
src/borg/testsuite/archiver.py

@@ -1886,8 +1886,6 @@ class ArchiverTestCase(ArchiverTestCaseBase):
         self.cmd('init', '--encryption=repokey', self.repository_location)
         test_archive = self.repository_location + '::test'
         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_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)