~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-08 00:24:38 UTC
  • mfrom: (1907.1.9 no-special-root)
  • Revision ID: pqm@pqm.ubuntu.com-20060808002438-4b8baf2d9282e154
Represent root entries using InventoryDirectory, not RootEntry

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'))