~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-10-15 16:32:29 UTC
  • mfrom: (1731.1.67 unique-root)
  • Revision ID: pqm@pqm.ubuntu.com-20061015163229-648b1f2ebe692136
New trees have unique root ids

Show diffs side-by-side

added added

removed removed

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