~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-01-05 16:55:12 UTC
  • mfrom: (4906.1.10 2.1.0rc1-dbytes)
  • Revision ID: pqm@pqm.ubuntu.com-20100105165512-ip2jyuy8f999raxm
(jam) Add -Dbytes and log how many bytes are transferred for
        operations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
246
246
        """
247
247
        pass
248
248
 
 
249
    def log_transport_activity(self, display=False):
 
250
        """Write out whatever transport activity has been measured.
 
251
 
 
252
        Implementations are allowed to do nothing, but it is useful if they can
 
253
        write a line to the log file.
 
254
 
 
255
        :param display: If False, only log to disk, if True also try to display
 
256
            a message to the user.
 
257
        :return: None
 
258
        """
 
259
        # Default implementation just does nothing
 
260
        pass
 
261
 
249
262
    def show_error(self, msg):
250
263
        """Show an error message (not an exception) to the user.
251
264
        
345
358
 
346
359
    def show_transport_activity(self, transport, direction, byte_count):
347
360
        pass
 
361
 
 
362
    def log_transport_activity(self, display=False):
 
363
        pass