~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revision.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:
112
112
                if rev_id in br2_only and not branch is br2:
113
113
                    continue
114
114
                mutter('ancestry of {%s}: %r',
115
 
                       rev_id, branch.storage.get_ancestry(rev_id))
116
 
                self.assertEquals(sorted(branch.storage.get_ancestry(rev_id)),
117
 
                                  [None] + sorted(anc))
 
115
                       rev_id, branch.repository.get_ancestry(rev_id))
 
116
                result = sorted(branch.repository.get_ancestry(rev_id))
 
117
                self.assertEquals(result, [None] + sorted(anc))
118
118
    
119
119
    
120
120
    def test_is_ancestor(self):
157
157
        self.br2.working_tree().commit("Commit fifteen", rev_id="b@u-0-10")
158
158
 
159
159
        from bzrlib.revision import MultipleRevisionSources
160
 
        self.sources = MultipleRevisionSources(self.br1.storage,
161
 
                                               self.br2.storage)
 
160
        self.sources = MultipleRevisionSources(self.br1.repository,
 
161
                                               self.br2.repository)
162
162
 
163
163
    def intervene(self, ancestor, revision, revision_history=None):
164
164
        from bzrlib.revision import get_intervening_revisions
215
215
        br1, br2 = make_branches(self)
216
216
        revisions = br1.revision_history()
217
217
        revisions_2 = br2.revision_history()
218
 
        sources = br1.storage
 
218
        sources = br1.repository
219
219
 
220
220
        expected_ancestors_list = {revisions[3]:(0, 0), 
221
221
                                   revisions[2]:(1, 1),
254
254
        br1, br2 = make_branches(self)
255
255
        revisions = br1.revision_history()
256
256
        revisions_2 = br2.revision_history()
257
 
        sources = MultipleRevisionSources(br1.storage, br2.storage)
 
257
        sources = MultipleRevisionSources(br1.repository, br2.repository)
258
258
        expected_ancestors_list = {revisions[3]:(0, 0), 
259
259
                                   revisions[2]:(1, 1),
260
260
                                   revisions_2[4]:(2, 1), 
289
289
        Ensure it's not order-sensitive
290
290
        """
291
291
        br1, br2 = make_branches(self)
292
 
        source = MultipleRevisionSources(br1.storage, br2.storage)
 
292
        source = MultipleRevisionSources(br1.repository, br2.repository)
293
293
        combined_1 = combined_graph(br1.last_revision(), 
294
294
                                    br2.last_revision(), source)
295
295
        combined_2 = combined_graph(br2.last_revision(),