87
87
def merge_flex(this, base, other, changeset_function, inventory_function,
89
89
this_inventory = inventory_function(this)
90
90
base_inventory = inventory_function(base)
91
91
other_inventory = inventory_function(other)
92
92
inventory = ThreewayInventory(make_inv(this_inventory),
93
93
make_inv(base_inventory),
94
94
make_inv(other_inventory))
95
cset = changeset_function(base, other, base_inventory, other_inventory)
95
cset = changeset_function(base, other, base_inventory, other_inventory,
96
97
new_cset = make_merge_changeset(cset, inventory, this, base, other,
97
98
conflict_handler, merge_factory)
98
99
result = apply_changeset(new_cset, invert_invent(this_inventory),