142
142
# The first phase is "file". We pass the progress bar for it directly
143
# into get_data_about_revision_ids, which has more information about how
144
# that phase is progressing than we do. Progress updates for the other
145
# phases are taken care of in this function.
143
# into get_data_to_fetch_for_revision_ids, which has more information
144
# about how that phase is progressing than we do. Progress updates for
145
# the other phases are taken care of in this function.
146
146
# XXX: there should be a clear owner of the progress reporting. Perhaps
147
# get_data_about_revision_ids should have a richer API than it does at
148
# the moment, so that it can feed the progress information back to this
147
# get_data_to_fetch_for_revision_ids should have a richer API than it
148
# does at the moment, so that it can feed the progress information back
151
151
pb = bzrlib.ui.ui_factory.nested_progress_bar()
153
what_to_do = self.from_repository.get_data_about_revision_ids(revs, pb)
154
for knit_kind, file_id, revisions in what_to_do:
153
data_to_fetch = self.from_repository.get_data_to_fetch_for_revision_ids(revs, pb)
154
for knit_kind, file_id, revisions in data_to_fetch:
155
155
if knit_kind != phase:
156
156
phase = knit_kind
157
157
# Make a new progress bar for this phase