277
277
old_lines = tree_lines(old_tree, require_text=True)
278
278
new_lines = tree_lines(new_tree, require_text=True)
279
279
action.write(self.to_file)
280
internal_diff(old_path, old_lines, new_path, new_lines,
280
internal_diff(old_path, old_lines, new_path, new_lines,
282
282
except errors.BinaryFile:
283
283
old_lines = tree_lines(old_tree, require_text=False)
284
284
new_lines = tree_lines(new_tree, require_text=False)
285
285
action.add_property('encoding', 'base64')
286
286
action.write(self.to_file)
287
binary_diff(old_path, old_lines, new_path, new_lines,
287
binary_diff(old_path, old_lines, new_path, new_lines,
290
290
def finish_action(action, file_id, kind, meta_modified, text_modified,