/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_upgrade.py

  • Committer: Robert Collins
  • Date: 2006-04-19 23:32:08 UTC
  • mto: (1711.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1674.
  • Revision ID: robertc@robertcollins.net-20060419233208-2ed6906796994316
Make knit the default format.
Adjust affect tests to either have knit specific values or to be more generic,
as appropriate.
Disable all SFTP prefetching for known paramikos - direct readv support is now
a TODO.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
import os
22
22
 
 
23
import bzrlib
23
24
import bzrlib.bzrdir as bzrdir
24
25
import bzrlib.repository as repository
25
26
from bzrlib.tests import TestCaseWithTransport
34
35
    def setUp(self):
35
36
        super(TestWithUpgradableBranches, self).setUp()
36
37
        self.old_format = bzrdir.BzrDirFormat.get_default_format()
 
38
        self.old_repo_format = \
 
39
            bzrlib.repository.RepositoryFormat.get_default_format()
37
40
        self.old_ui_factory = ui.ui_factory
38
41
        self.addCleanup(self.restoreDefaults)
39
42
 
40
43
        ui.ui_factory = TestUIFactory()
41
44
        bzrdir.BzrDirFormat.set_default_format(bzrdir.BzrDirMetaFormat1())
 
45
        bzrlib.repository.RepositoryFormat.set_default_format(
 
46
            bzrlib.repository.RepositoryFormat7())
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())
56
61
 
57
62
    def restoreDefaults(self):
58
63
        bzrdir.BzrDirFormat.set_default_format(self.old_format)
 
64
        bzrlib.repository.RepositoryFormat.set_default_format(
 
65
            self.old_repo_format)
59
66
        ui.ui_factory = self.old_ui_factory
60
67
 
61
68
    def test_readonly_url_error(self):