~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-17 09:57:36 UTC
  • mto: This revision was merged to the branch mainline in revision 5793.
  • Revision ID: jelmer@samba.org-20110417095736-vgve88ugvygx3b5m
Use working.iter_entries_by_dir.

Show diffs side-by-side

added added

removed removed

Lines of Context:
259
259
 
260
260
    dir_cnt = 0
261
261
    root_id = working.get_root_id()
262
 
    for file_id in working:
263
 
        if (working.kind(file_id) == 'directory' and
264
 
            file_id != root_id):
 
262
    for path, entry in working.iter_entries_by_dir():
 
263
        if entry.kind == 'directory' and entry.file_id != root_id:
265
264
            dir_cnt += 1
266
265
    outfile.write('  %8d versioned %s\n' % (dir_cnt,
267
266
        plural(dir_cnt, 'subdirectory', 'subdirectories')))