~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-14 22:53:25 UTC
  • mfrom: (1920 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1923.
  • Revision ID: john@arbash-meinel.com-20060814225325-6626efb06d6d33e9
[merge] bzr.dev 1920

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
    print '  %8d ignored' % ignore_cnt
208
208
 
209
209
    dir_cnt = 0
210
 
    for file_id in work_inv:
211
 
        if work_inv.get_file_kind(file_id) == 'directory':
212
 
            dir_cnt += 1
 
210
    entries = work_inv.iter_entries()
 
211
    entries.next()
 
212
    dir_cnt = sum(1 for path, ie in entries if ie.kind == 'directory')
213
213
    print '  %8d versioned %s' \
214
214
          % (dir_cnt,
215
215
             plural(dir_cnt, 'subdirectory', 'subdirectories'))