~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_ancestry.py

Make shure the faster topo_sort function is used where appropriate

When the calling code is iterating through the whole list, it is faster to use
topo_sort instead of TopoSorter.iter_topo_order.
Also update a blackbox test case to reflect the new ordering.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    def _check_ancestry(self, location='', result=None):
45
45
        out = self.run_bzr(['ancestry', location])[0]
46
46
        if result is None:
47
 
            result = "A1\nB1\nA2\nA3\n"
 
47
            result = "A1\nA2\nB1\nA3\n"
48
48
        self.assertEqualDiff(out, result)
49
49
 
50
50
    def test_ancestry(self):