52
43
def diff3(out_file, mine_path, older_path, yours_path):
53
44
def add_label(args, label):
54
45
args.extend(("-L", label))
58
46
args = ['diff3', "-E", "--merge"]
60
48
add_label(args, "ANCESTOR")
61
49
add_label(args, "MERGE-SOURCE")
62
50
args.extend((mine_path, older_path, yours_path))
72
54
file(out_file, "wb").write(output)