~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/progress.py

  • Committer: John Arbash Meinel
  • Date: 2009-08-03 20:38:39 UTC
  • mto: This revision was merged to the branch mainline in revision 4592.
  • Revision ID: john@arbash-meinel.com-20090803203839-du9y39adazy9qdly
more updates to get things to build cleanly.

1) delete the release directories because it seems that gf.recipe.bzr doesn't
clean them up when you update to a new release.
2) fix 'clean-installer-all'. It is a lot more simple now, as we just nuke the
whole build-win32 directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
    Code updating the task may also set fields as hints about how to display
70
70
    it: show_pct, show_spinner, show_eta, show_count, show_bar.  UIs
71
71
    will not necessarily respect all these fields.
72
 
    
73
 
    :ivar update_latency: The interval (in seconds) at which the PB should be
74
 
        updated.  Setting this to zero suggests every update should be shown
75
 
        synchronously.
76
 
 
77
 
    :ivar show_transport_activity: If true (default), transport activity
78
 
        will be shown when this task is drawn.  Disable it if you're sure 
79
 
        that only irrelevant or uninteresting transport activity can occur
80
 
        during this task.
81
72
    """
82
73
 
83
74
    def __init__(self, parent_task=None, ui_factory=None, progress_view=None):
106
97
        self.show_eta = False,
107
98
        self.show_count = True
108
99
        self.show_bar = True
109
 
        self.update_latency = 0.1
110
 
        self.show_transport_activity = True
111
100
 
112
101
    def __repr__(self):
113
102
        return '%s(%r/%r, msg=%r)' % (
174
163
 
175
164
@deprecated_function(deprecated_in((1, 16, 0)))
176
165
def ProgressBar(to_file=None, **kwargs):
177
 
    """Construct a progress bar.
178
 
 
179
 
    Deprecated; ask the ui_factory for a progress task instead.
180
 
    """
 
166
    """Abstract factory"""
181
167
    if to_file is None:
182
168
        to_file = sys.stderr
183
169
    requested_bar_type = os.environ.get('BZR_PROGRESS_BAR')