291
291
for path, file_id, kind in delta.removed:
293
print >>to_file, '=== removed %s %r' % (kind, path)
293
print >>to_file, '=== removed %s %r' % (kind, path.encode('utf8'))
294
294
old_tree.inventory[file_id].diff(diff_file, old_label + path, old_tree,
295
295
DEVNULL, None, None, to_file)
296
296
for path, file_id, kind in delta.added:
298
print >>to_file, '=== added %s %r' % (kind, path)
298
print >>to_file, '=== added %s %r' % (kind, path.encode('utf8'))
299
299
new_tree.inventory[file_id].diff(diff_file, new_label + path, new_tree,
300
300
DEVNULL, None, None, to_file,
305
305
prop_str = get_prop_change(meta_modified)
306
306
print >>to_file, '=== renamed %s %r => %r%s' % (
307
kind, old_path, new_path, prop_str)
307
kind, old_path.encode('utf8'),
308
new_path.encode('utf8'), prop_str)
308
309
_maybe_diff_file_or_symlink(old_label, old_path, old_tree, file_id,
309
310
new_label, new_path, new_tree,
310
311
text_modified, kind, to_file, diff_file)
311
312
for path, file_id, kind, text_modified, meta_modified in delta.modified:
313
314
prop_str = get_prop_change(meta_modified)
314
print >>to_file, '=== modified %s %r%s' % (kind, path, prop_str)
315
print >>to_file, '=== modified %s %r%s' % (kind, path.encode('utf8'), prop_str)
315
316
if text_modified:
316
317
_maybe_diff_file_or_symlink(old_label, path, old_tree, file_id,
317
318
new_label, path, new_tree,