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