/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/info_helper.py

  • Committer: Jelmer Vernooij
  • Date: 2007-02-01 15:50:40 UTC
  • Revision ID: jelmer@samba.org-20070201155040-3hq4mfbxs99kzazy
add framework for tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
    ret = {}
164
164
    branch = working.branch
165
165
    basis = working.basis_tree()
166
 
 
 
166
    work_inv = working.inventory
 
167
    
167
168
    if (bzrlib.version_info[0] == 0) and (bzrlib.version_info[1] < 9):
168
169
        delta = compare_trees(basis, working, want_unchanged=True)
169
170
    else:
191
192
    
192
193
    ret = {}
193
194
    basis = working.basis_tree()
194
 
 
 
195
    work_inv = working.inventory
 
196
    
195
197
    if (bzrlib.version_info[0] == 0) and (bzrlib.version_info[1] < 9):
196
198
        delta = compare_trees(basis, working, want_unchanged=True)
197
199
    else:
213
215
    ret['ignored'] = ignore_cnt
214
216
 
215
217
    dir_cnt = 0
216
 
    for path, ie in working.iter_entries_by_dir():
217
 
        if ie.kind == 'directory':
 
218
    for file_id in work_inv:
 
219
        if work_inv.get_file_kind(file_id) == 'directory':
218
220
            dir_cnt += 1
219
221
    ret['subdirs'] = dir_cnt
220
222