287
287
for path, file_id, kind in delta.removed:
289
print >>to_file, '=== removed %s %r' % (kind, old_label + path)
289
print >>to_file, '=== removed %s %r' % (kind, path)
290
290
old_tree.inventory[file_id].diff(diff_file, old_label + path, old_tree,
291
291
DEVNULL, None, None, to_file)
292
292
for path, file_id, kind in delta.added:
294
print >>to_file, '=== added %s %r' % (kind, new_label + path)
294
print >>to_file, '=== added %s %r' % (kind, path)
295
295
new_tree.inventory[file_id].diff(diff_file, new_label + path, new_tree,
296
296
DEVNULL, None, None, to_file,
301
301
prop_str = get_prop_change(meta_modified)
302
302
print >>to_file, '=== renamed %s %r => %r%s' % (
303
kind, old_label + old_path, new_label + new_path, prop_str)
303
kind, old_path, new_path, prop_str)
304
304
_maybe_diff_file_or_symlink(old_label, old_path, old_tree, file_id,
305
305
new_label, new_path, new_tree,
306
306
text_modified, kind, to_file, diff_file)
307
307
for path, file_id, kind, text_modified, meta_modified in delta.modified:
309
309
prop_str = get_prop_change(meta_modified)
310
print >>to_file, '=== modified %s %r%s' % (kind, old_label + path,
310
print >>to_file, '=== modified %s %r%s' % (kind, path, prop_str)
312
311
if text_modified:
313
312
_maybe_diff_file_or_symlink(old_label, path, old_tree, file_id,
314
313
new_label, path, new_tree,