~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/text.py

  • Committer: John Arbash Meinel
  • Date: 2009-03-27 22:29:55 UTC
  • mto: (3735.39.2 clean)
  • mto: This revision was merged to the branch mainline in revision 4280.
  • Revision ID: john@arbash-meinel.com-20090327222955-utifmfm888zerixt
Implement apply_delta_to_source which doesn't have to malloc another string.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
from bzrlib.lazy_import import lazy_import
27
27
lazy_import(globals(), """
 
28
import getpass
 
29
 
28
30
from bzrlib import (
29
31
    progress,
30
32
    osutils,
58
60
        # paints progress, network activity, etc
59
61
        self._progress_view = TextProgressView(self.stderr)
60
62
 
 
63
    def prompt(self, prompt):
 
64
        """Emit prompt on the CLI."""
 
65
        self.stdout.write(prompt)
 
66
 
61
67
    def clear_term(self):
62
68
        """Prepare the terminal for output.
63
69
 
240
246
            elif direction == 'write':
241
247
                dir_char = '<'
242
248
            else:
243
 
                dir_char = ' '
 
249
                dir_char = '?'
244
250
            msg = ("%.7s %s %6dKB %5dKB/s" %
245
251
                    (scheme, dir_char, self._total_byte_count>>10, int(rate)>>10,))
246
252
            self._transport_update_time = now