/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: Martin Pool
  • Date: 2009-03-12 05:36:53 UTC
  • mto: This revision was merged to the branch mainline in revision 4144.
  • Revision ID: mbp@sourcefrog.net-20090312053653-7jx6tuj14xqpnje0
Re-add very basic top-level pb for fetch

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
        # assert not missing
97
97
        self.count_total = 0
98
98
        self.file_ids_names = {}
99
 
        search = self._revids_to_fetch()
100
 
        if search is None:
101
 
            return
102
 
        self._fetch_everything_for_search(search)
 
99
        pb = bzrlib.ui.ui_factory.nested_progress_bar()
 
100
        try:
 
101
            pb.update("Finding revisions")
 
102
            search = self._revids_to_fetch()
 
103
            if search is None:
 
104
                return
 
105
            pb.update("Fetching revisions")
 
106
            self._fetch_everything_for_search(search)
 
107
        finally:
 
108
            pb.finished()
103
109
 
104
110
    def _fetch_everything_for_search(self, search):
105
111
        """Fetch all data for the given set of revisions."""