There's no way to refer to them via the VFS, because the VFS (as
expected) treats all forward slashes as path separators.
Before this change, it was possible to create backup sets with names
like "x/y/z" that were inaccessible via ls, restore, etc.
Thanks to Laura Morrissey <laura.morrissey@gmail.com> for the report.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
if is_reverse and opt.remote:
o.fatal("don't use -r in reverse mode; it's automatic")
-if opt.name and opt.name.startswith('.'):
- o.fatal("'%s' is not a valid branch name" % opt.name)
+if opt.name:
+ if opt.name.startswith('.'):
+ o.fatal('backup set names cannot start with "."')
+ if '/' in opt.name:
+ o.fatal('backup set names cannot contain "/"')
refname = opt.name and 'refs/heads/%s' % opt.name or None
if opt.remote or is_reverse:
cli = client.Client(opt.remote)