~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_upgrade.py

  • Committer: Robert Collins
  • Date: 2006-02-21 12:42:57 UTC
  • mto: (1563.1.5 integration)
  • mto: This revision was merged to the branch mainline in revision 1568.
  • Revision ID: robertc@robertcollins.net-20060221124257-8ee8f4b0b3b45ac3
Add a new format for what will become knit, and the surrounding logic to upgrade repositories within metadirs, and tests for the same.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
 
122
122
    def test_upgrade_to_meta_sets_workingtree_last_revision(self):
123
123
        self.build_tree_contents(_upgrade_dir_template)
124
 
        upgrade('.', bzrdir.BzrDirMetaFormat1)
 
124
        upgrade('.', bzrdir.BzrDirMetaFormat1())
125
125
        tree = workingtree.WorkingTree.open('.')
126
126
        self.assertEqual(tree.last_revision(),
127
127
                         tree.branch.revision_history()[-1])