~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_fetch.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:
30
30
 
31
31
def has_revision(branch, revision_id):
32
32
    try:
33
 
        branch.storage.get_revision_xml_file(revision_id)
 
33
        branch.repository.get_revision_xml_file(revision_id)
34
34
        return True
35
35
    except bzrlib.errors.NoSuchRevision:
36
36
        return False
137
137
 
138
138
    def _check_revs_present(self, br2):
139
139
        for rev_id in '1-1', '1-2', '2-1':
140
 
            self.assertTrue(br2.storage.has_revision(rev_id))
141
 
            rev = br2.storage.get_revision(rev_id)
 
140
            self.assertTrue(br2.repository.has_revision(rev_id))
 
141
            rev = br2.repository.get_revision(rev_id)
142
142
            self.assertEqual(rev.revision_id, rev_id)
143
 
            self.assertTrue(br2.storage.get_inventory(rev_id))
 
143
            self.assertTrue(br2.repository.get_inventory(rev_id))
144
144
 
145
145
 
146
146
 
173
173
                             ('2-1', 'contents in 2\n'),
174
174
                             ('2-2', 'agreement\n')]:
175
175
            self.assertEqualDiff(
176
 
                br2.storage.revision_tree(
 
176
                br2.repository.revision_tree(
177
177
                    rev_id).get_file_text('this-file-id'), text)
178
178
 
179
179