~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/fetch.py

(jr) Add gettext() to progress bar text
 (Jonathan Riddell)

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    errors,
38
38
    ui,
39
39
    )
 
40
from bzrlib.i18n import gettext
40
41
from bzrlib.revision import NULL_REVISION
41
42
from bzrlib.trace import mutter
42
43
 
93
94
        pb = ui.ui_factory.nested_progress_bar()
94
95
        pb.show_pct = pb.show_count = False
95
96
        try:
96
 
            pb.update("Finding revisions", 0, 2)
 
97
            pb.update(gettext("Finding revisions"), 0, 2)
97
98
            search_result = self._revids_to_fetch()
98
99
            mutter('fetching: %s', search_result)
99
100
            if search_result.is_empty():
100
101
                return
101
 
            pb.update("Fetching revisions", 1, 2)
 
102
            pb.update(gettext("Fetching revisions"), 1, 2)
102
103
            self._fetch_everything_for_search(search_result)
103
104
        finally:
104
105
            pb.finished()