~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_upgrade.py

  • Committer: Robert Collins
  • Date: 2005-10-10 23:18:27 UTC
  • mfrom: (1437)
  • mto: This revision was merged to the branch mainline in revision 1438.
  • Revision ID: robertc@robertcollins.net-20051010231827-f9e2dda2e92bf565
mergeĀ fromĀ upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        self.failUnlessExists('.bzr/README')
40
40
 
41
41
    def test_upgrade_simple(self):
42
 
        """Upgrade simple v0.0.4 format to v5"""
 
42
        """Upgrade simple v0.0.4 format to v6"""
43
43
        eq = self.assertEquals
44
44
        build_tree_contents(_upgrade1_template)
45
45
        upgrade('.')
46
46
        b = Branch.open('.')
47
 
        eq(b._branch_format, 5)
 
47
        eq(b._branch_format, 6)
48
48
        rh = b.revision_history()
49
49
        eq(rh,
50
50
           ['mbp@sourcefrog.net-20051004035611-176b16534b086b3c',
77
77
    def test_upgrade_makes_dir_weaves(self):
78
78
        build_tree_contents(_upgrade_dir_template)
79
79
        upgrade('.')
 
80
        # this is the path to the literal file. As format changes 
 
81
        # occur it needs to be updated. FIXME: ask the store for the
 
82
        # path.
80
83
        self.failUnlessExists(
81
 
            '.bzr/weaves/dir-20051005095101-da1441ea3fa6917a.weave')
 
84
            '.bzr/weaves/de/dir-20051005095101-da1441ea3fa6917a.weave')
82
85
 
83
86
 
84
87
_upgrade1_template = \