54
56
# might not be a format we can open without upgrading; see e.g.
55
57
# https://bugs.launchpad.net/bzr/+bug/253891
70
60
raise errors.UpToDateFormat(self.bzrdir._format)
71
61
if not self.bzrdir.can_convert_format():
72
62
raise errors.BzrError("cannot upgrade from bzrdir format %s" %
75
65
self.pb.note('starting upgrade of %s', self.transport.base)
76
66
self.bzrdir.backup_bzrdir()
79
69
self.bzrdir = converter.convert(self.bzrdir, self.pb)