~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.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:
4154
4154
        phase = 'file'
4155
4155
        revs = search.get_keys()
4156
4156
        graph = self.from_repository.get_graph()
4157
 
        revs = list(graph.iter_topo_order(revs))
 
4157
        revs = tsort.topo_sort(graph.get_parent_map(revs))
4158
4158
        data_to_fetch = self.from_repository.item_keys_introduced_by(revs)
4159
4159
        text_keys = []
4160
4160
        for knit_kind, file_id, revisions in data_to_fetch: