~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_upgrade.py

  • Committer: Robert J. Tanner
  • Date: 2009-04-29 05:53:21 UTC
  • mfrom: (4311 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4312.
  • Revision ID: tanner@real-time.com-20090429055321-v2s5l1mgki9f6cgn
[merge] 1.14 back to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
        branch2 = _mod_branch.Branch.open(self.get_url('branch'))
202
202
        self.assertIs(branch2.__class__, _mod_branch.BzrBranch6)
203
203
 
 
204
    def test_convert_branch7_branch8(self):
 
205
        branch = self.make_branch('branch', format='1.9')
 
206
        target = bzrdir.format_registry.make_bzrdir('1.9')
 
207
        target.set_branch_format(_mod_branch.BzrBranchFormat8())
 
208
        converter = branch.bzrdir._format.get_converter(target)
 
209
        converter.convert(branch.bzrdir, progress.DummyProgress())
 
210
        branch = _mod_branch.Branch.open(self.get_url('branch'))
 
211
        self.assertIs(branch.__class__, _mod_branch.BzrBranch8)
 
212
        self.assertEqual({}, branch._get_all_reference_info())
 
213
 
204
214
    def test_convert_knit_dirstate_empty(self):
205
215
        # test that asking for an upgrade from knit to dirstate works.
206
216
        tree = self.make_branch_and_tree('tree', format='knit')