37
38
if self.bzrdir.root_transport.is_readonly():
38
39
raise errors.UpgradeReadonly
39
40
self.transport = self.bzrdir.root_transport
40
42
ui.ui_factory.suppressed_warnings.add(warning_id)
45
48
ui.ui_factory.suppressed_warnings.remove(warning_id)
49
52
branch = self.bzrdir.open_branch()
55
59
except (errors.NotBranchError, errors.IncompatibleRepositories):
56
60
# might not be a format we can open without upgrading; see e.g.