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

  • Committer: Aaron Bentley
  • Date: 2006-08-07 23:14:45 UTC
  • mto: (1731.1.39 nested-trees)
  • mto: This revision was merged to the branch mainline in revision 1910.
  • Revision ID: aaron.bentley@utoronto.ca-20060807231445-618a867437f6e82c
RemoveĀ is_root

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' and 
212
 
            not work_inv.is_root(file_id)):
213
 
            dir_cnt += 1
 
210
    entries = work_inv.iter_entries()
 
211
    entries.next()
 
212
    dir_cnt = len([ie for path, ie in entries if ie.kind == 'directory'])
214
213
    print '  %8d versioned %s' \
215
214
          % (dir_cnt,
216
215
             plural(dir_cnt, 'subdirectory', 'subdirectories'))