/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/tests/interversionedfile_implementations/test_join.py

  • Committer: Robert Collins
  • Date: 2008-03-26 21:42:35 UTC
  • mto: This revision was merged to the branch mainline in revision 3313.
  • Revision ID: robertc@robertcollins.net-20080326214235-3wmnqamcgytwif89
 * ``VersionedFile.get_graph`` is deprecated, with no replacement method.
   The method was size(history) and not desirable. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
            self.assertTrue(source_ghosts)
243
243
        # legacy apis should behave
244
244
        self.assertEqual(['notbase'], source.get_ancestry(['notbase']))
245
 
        self.assertEqual({'notbase':()}, source.get_graph())
246
245
        self.assertFalse(source.has_version('base'))
247
246
        # ghost data should have been preserved
248
247
        self.assertEqual(['base', 'notbase'], source.get_ancestry_with_ghosts(['notbase']))
254
253
        # if we add something that is fills out what is a ghost, then 
255
254
        # when joining into a ghost aware join it should flesh out the ghosts.
256
255
        source.add_lines('base', [], [])
257
 
        target.join(source, version_ids=['base']) 
 
256
        target.join(source, version_ids=['base'])
258
257
        self.assertEqual(['base', 'notbase'], target.get_ancestry(['notbase']))
259
 
        self.assertEqual({'notbase':('base',)}, target.get_parent_map(['notbase']))
260
258
        self.assertEqual({'base':(),
261
259
                          'notbase':('base', ),
262
260
                          },
263
 
                         target.get_graph())
 
261
                         target.get_parent_map(target.versions()))
264
262
        self.assertTrue(target.has_version('base'))
265
263
        # we have _with_ghost apis to give us ghost information.
266
264
        self.assertEqual(['base', 'notbase'], target.get_ancestry_with_ghosts(['notbase']))