~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: Martin Pool
  • Date: 2005-04-28 07:24:55 UTC
  • Revision ID: mbp@sourcefrog.net-20050428072453-7b99afa993a1e549
todo

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
from osutils import format_date
24
24
 
25
25
def show_info(b):
26
 
    # TODO: Maybe show space used by working tree, versioned files,
27
 
    # unknown files, text store.
28
 
    
29
26
    print 'branch format:', b.controlfile('branch-format', 'r').readline().rstrip('\n')
30
27
 
31
28
    def plural(n, base='', pl=None):
32
29
        if n == 1:
33
30
            return base
34
 
        elif pl is not None:
 
31
        elif pl != None:
35
32
            return pl
36
33
        else:
37
34
            return 's'