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