35
36
super(TestWithUpgradableBranches, self).setUp()
36
37
self.old_format = bzrdir.BzrDirFormat.get_default_format()
37
40
self.old_ui_factory = ui.ui_factory
38
41
self.addCleanup(self.restoreDefaults)
40
43
ui.ui_factory = TestUIFactory()
41
44
bzrdir.BzrDirFormat.set_default_format(bzrdir.BzrDirMetaFormat1())
42
47
# FIXME RBC 20060120 we should be able to do this via ui calls only.
43
48
# setup a format 5 branch we can upgrade from.
44
49
t = get_transport(self.get_url())