mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-27 10:18:12 +00:00
remove deprecated "borg verify"
use borg extract --dry-run ...
This commit is contained in:
parent
1fc99ec9cd
commit
e1515ee251
2 changed files with 0 additions and 5 deletions
|
@ -755,9 +755,6 @@ def preprocess_args(self, args):
|
||||||
('--do-not-cross-mountpoints', '--one-file-system',
|
('--do-not-cross-mountpoints', '--one-file-system',
|
||||||
'Warning: "--do-no-cross-mountpoints" has been deprecated. Use "--one-file-system" instead.'),
|
'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 i, arg in enumerate(args[:]):
|
||||||
for old_name, new_name, warning in deprecations:
|
for old_name, new_name, warning in deprecations:
|
||||||
if arg.startswith(old_name):
|
if arg.startswith(old_name):
|
||||||
|
|
|
@ -826,8 +826,6 @@ def test_cmdline_compatibility(self):
|
||||||
self.create_regular_file('file1', size=1024 * 80)
|
self.create_regular_file('file1', size=1024 * 80)
|
||||||
self.cmd('init', self.repository_location)
|
self.cmd('init', self.repository_location)
|
||||||
self.cmd('create', self.repository_location + '::test', 'input')
|
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')
|
output = self.cmd('prune', self.repository_location, '--hourly=1')
|
||||||
self.assert_in('"--hourly" has been deprecated. Use "--keep-hourly" instead', output)
|
self.assert_in('"--hourly" has been deprecated. Use "--keep-hourly" instead', output)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue