/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/delta.py

  • Committer: Martin Pool
  • Date: 2005-07-29 22:21:25 UTC
  • Revision ID: mbp@sourcefrog.net-20050729222125-f1143d5c05e6707d
- split TreeDelta and compare_trees out into new module bzrlib.delta

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
                delta.unchanged.append((new_inv.id2path(file_id), file_id, kind))
198
198
        else:
199
199
            kind = old_inv.get_file_kind(file_id)
200
 
            if kind == 'root_directory':
201
 
                continue
202
200
            old_path = old_inv.id2path(file_id)
203
201
            if specific_files:
204
202
                if not is_inside_any(specific_files, old_path):
209
207
    for file_id in new_inv:
210
208
        if file_id in old_inv:
211
209
            continue
212
 
        kind = new_inv.get_file_kind(file_id)
213
 
        if kind == 'root_directory':
214
 
            continue
215
210
        new_path = new_inv.id2path(file_id)
216
211
        if specific_files:
217
212
            if not is_inside_any(specific_files, new_path):
218
213
                continue
 
214
        kind = new_inv.get_file_kind(file_id)
219
215
        delta.added.append((new_path, file_id, kind))
220
216
            
221
217
    delta.removed.sort()