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