28
28
def __init__(self, url, format=None):
30
30
self.bzrdir = BzrDir.open_unsupported(url)
34
31
if isinstance(self.bzrdir, RemoteBzrDir):
35
32
self.bzrdir._ensure_real()
36
33
self.bzrdir = self.bzrdir._real_bzrdir
37
34
if self.bzrdir.root_transport.is_readonly():
38
35
raise errors.UpgradeReadonly
39
36
self.transport = self.bzrdir.root_transport
49
41
branch = self.bzrdir.open_branch()
51
44
ui.ui_factory.note("This is a checkout. The branch (%s) needs to be "
55
48
except (errors.NotBranchError, errors.IncompatibleRepositories):
56
49
# might not be a format we can open without upgrading; see e.g.