瀏覽代碼

remove deprecated "borg verify"

use borg extract --dry-run ...
Thomas Waldmann 9 年之前
父節點
當前提交
e1515ee251
共有 2 個文件被更改,包括 0 次插入5 次删除
  1. 0 3
      borg/archiver.py
  2. 0 2
      borg/testsuite/archiver.py

+ 0 - 3
borg/archiver.py

@@ -755,9 +755,6 @@ class Archiver:
             ('--do-not-cross-mountpoints', '--one-file-system',
              'Warning:  "--do-no-cross-mountpoints" has been deprecated. Use "--one-file-system" instead.'),
         ]
-        if args and args[0] == 'verify':
-            print('Warning: "borg verify" has been deprecated. Use "borg extract --dry-run" instead.')
-            args = ['extract', '--dry-run'] + args[1:]
         for i, arg in enumerate(args[:]):
             for old_name, new_name, warning in deprecations:
                 if arg.startswith(old_name):

+ 0 - 2
borg/testsuite/archiver.py

@@ -826,8 +826,6 @@ class ArchiverTestCase(ArchiverTestCaseBase):
         self.create_regular_file('file1', size=1024 * 80)
         self.cmd('init', self.repository_location)
         self.cmd('create', self.repository_location + '::test', 'input')
-        output = self.cmd('verify', '-v', self.repository_location + '::test')
-        self.assert_in('"borg verify" has been deprecated', output)
         output = self.cmd('prune', self.repository_location, '--hourly=1')
         self.assert_in('"--hourly" has been deprecated. Use "--keep-hourly" instead', output)