~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_upgrade.py

  • Committer: Aaron Bentley
  • Date: 2005-12-25 00:38:48 UTC
  • mto: (1185.67.11 bzr.revision-storage)
  • mto: This revision was merged to the branch mainline in revision 1550.
  • Revision ID: aaron.bentley@utoronto.ca-20051225003848-111ac71170cb2605
Renamed Branch.storage to Branch.repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        eq(rh,
49
49
           ['mbp@sourcefrog.net-20051004035611-176b16534b086b3c',
50
50
            'mbp@sourcefrog.net-20051004035756-235f2b7dcdddd8dd'])
51
 
        t = b.storage.revision_tree(rh[0])
 
51
        t = b.repository.revision_tree(rh[0])
52
52
        foo_id = 'foo-20051004035605-91e788d1875603ae'
53
53
        eq(t.get_file_text(foo_id), 'initial contents\n')
54
 
        t = b.storage.revision_tree(rh[1])
 
54
        t = b.repository.revision_tree(rh[1])
55
55
        eq(t.get_file_text(foo_id), 'new contents\n')
56
56
 
57
57
    def test_upgrade_with_ghosts(self):
69
69
        upgrade(u'.')
70
70
        b = Branch.open(u'.')
71
71
        revision_id = b.revision_history()[1]
72
 
        rev = b.storage.get_revision(revision_id)
 
72
        rev = b.repository.get_revision(revision_id)
73
73
        eq(len(rev.parent_ids), 2)
74
74
        eq(rev.parent_ids[1], 'wibble@wobble-2')
75
75