51
54
from bzrlib import osutils
52
55
term_encoding = osutils.get_terminal_encoding()
53
56
bundle_info = read_mergeable_from_url(location)
55
58
bundle_file = StringIO(bundle_info.get_raw_bundle())
56
59
bundle_info = read_bundle(bundle_file)
61
64
reader_method = getattr(bundle_info, 'get_bundle_reader', None)
62
65
if reader_method is None:
63
66
raise errors.BzrCommandError('Bundle format not supported')