2484
2477
# However, cmd_merge open's its own tree in _merge_helper, which
2485
2478
# means if we lock here, the later lock_write() will always block.
2486
2479
# Either the merge helper code should be updated to take a tree,
2489
2481
tree = WorkingTree.open_containing(directory)[0]