/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/test_tsort.py

  • Committer: Andrew Bennetts
  • Date: 2008-07-28 06:53:44 UTC
  • mfrom: (3581 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3583.
  • Revision ID: andrew.bennetts@canonical.com-20080728065344-ocndjoycs903q6fz
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
533
533
            mainline_revisions=[None, 'A']
534
534
            )
535
535
 
 
536
    def test_mainline_revs_with_ghost(self):
 
537
        # We have a mainline, but the end of it is actually a ghost
 
538
        # The graph that is passed to tsort has had ghosts filtered out, but
 
539
        # the mainline history has not.
 
540
        self.assertSortAndIterate(
 
541
            {'B':[],
 
542
             'C':['B']}.items(),
 
543
            'C',
 
544
            [(0, 'C', 0, (2,), False),
 
545
             (1, 'B', 0, (1,), True),
 
546
             ],
 
547
             True, mainline_revisions=['A', 'B', 'C'])
 
548
 
536
549
    def test_parallel_root_sequence_numbers_increase_with_merges(self):
537
550
        """When there are parallel roots, check their revnos."""
538
551
        self.assertSortAndIterate(