/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: 2007-07-19 06:34:09 UTC
  • mto: (2592.3.46 repository)
  • mto: This revision was merged to the branch mainline in revision 2651.
  • Revision ID: robertc@robertcollins.net-20070719063409-stu9sckrxp8wp3mo
LIBRARY API BREAKS:

  * KnitIndex.get_parents now returns tuples. (Robert Collins)

INTERNALS:

  * Unused functions on the private interface KnitIndex have been removed.
    (Robert Collins)

  * New ``knit.KnitGraphIndex`` which provides a ``KnitIndex`` layered on top
    of a ``index.GraphIndex``. (Robert Collins)

  * New ``knit.KnitVersionedFile.iter_parents`` method that allows querying
    the parents of many knit nodes at once, reducing round trips to the 
    underlying index. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
278
278
        # legacy apis should behave
279
279
        self.assertEqual(['notbase'], source.get_ancestry(['notbase']))
280
280
        self.assertEqual([], source.get_parents('notbase'))
281
 
        self.assertEqual({'notbase':[]}, source.get_graph())
 
281
        self.assertEqual({'notbase':()}, source.get_graph())
282
282
        self.assertFalse(source.has_version('base'))
283
283
        if source_ghosts:
284
284
            # ghost data should have been preserved
293
293
        target.join(source, version_ids=['base']) 
294
294
        self.assertEqual(['base', 'notbase'], target.get_ancestry(['notbase']))
295
295
        self.assertEqual(['base'], target.get_parents('notbase'))
296
 
        self.assertEqual({'base':[],
297
 
                          'notbase':['base'],
 
296
        self.assertEqual({'base':(),
 
297
                          'notbase':('base', ),
298
298
                          },
299
299
                         target.get_graph())
300
300
        self.assertTrue(target.has_version('base'))