54
54
raise errors.BzrCommandError(
55
55
'The switch command can only be used on a light checkout.\n'
56
56
'Expected branch reference, found %s at %s' % (
58
58
if not format_string == BranchReferenceFormat().get_format_string():
59
59
raise errors.BzrCommandError(
60
60
'Unsupported: %r' % (format_string.strip(),))