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