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

  • Committer: Aaron Bentley
  • Date: 2008-04-25 02:27:47 UTC
  • mto: (3380.3.1 cleanup)
  • mto: This revision was merged to the branch mainline in revision 3392.
  • Revision ID: aaron@aaronbentley.com-20080425022747-4euksn81ffolid60
Fix inventory insertion to work in topological order

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
        pb = bzrlib.ui.ui_factory.nested_progress_bar()
157
157
        try:
158
158
            revs = search.get_keys()
159
 
            data_to_fetch = self.from_repository.item_keys_introduced_by(revs, pb)
 
159
            graph = self.from_repository.get_graph()
 
160
            revs = list(graph.iter_topo_order(revs))
 
161
            data_to_fetch = self.from_repository.item_keys_introduced_by(revs,
 
162
                                                                         pb)
160
163
            for knit_kind, file_id, revisions in data_to_fetch:
161
164
                if knit_kind != phase:
162
165
                    phase = knit_kind