~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_upgrade.py

MergeĀ fromĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
        self.failUnlessExists(
120
120
            '.bzr/weaves/de/dir-20051005095101-da1441ea3fa6917a.weave')
121
121
 
 
122
    def test_upgrade_to_meta_sets_workingtree_last_revision(self):
 
123
        self.build_tree_contents(_upgrade_dir_template)
 
124
        upgrade('.', bzrdir.BzrDirMetaFormat1)
 
125
        tree = workingtree.WorkingTree.open('.')
 
126
        self.assertEqual(tree.last_revision(),
 
127
                         tree.branch.revision_history()[-1])
 
128
 
122
129
 
123
130
_upgrade1_template = \
124
131
     [