/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 breezy/info.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
__all__ = ['show_bzrdir_info']
20
20
 
21
 
from cStringIO import StringIO
22
21
import time
23
22
import sys
24
23
 
25
 
from breezy import (
 
24
from . import (
26
25
    bzrdir,
27
26
    controldir,
28
27
    errors,
30
29
    osutils,
31
30
    urlutils,
32
31
    )
33
 
from breezy.errors import (NoWorkingTree, NotBranchError,
 
32
from .errors import (NoWorkingTree, NotBranchError,
34
33
                           NoRepositoryPresent, NotLocalUrl)
35
 
from breezy.missing import find_unmerged
 
34
from .missing import find_unmerged
 
35
from .sixish import (
 
36
    BytesIO,
 
37
    )
36
38
 
37
39
 
38
40
def plural(n, base='', pl=None):
329
331
 
330
332
def _show_repository_stats(repository, stats, outfile):
331
333
    """Show statistics about a repository."""
332
 
    f = StringIO()
 
334
    f = BytesIO()
333
335
    if 'revisions' in stats:
334
336
        revisions = stats['revisions']
335
337
        f.write('  %8d revision%s\n' % (revisions, plural(revisions)))