/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_upgrade.py

Refactored out ControlFiles and RevisionStore from _Branch

Show diffs side-by-side

added added

removed removed

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