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