57
57
with lock.write_locked(control_dir.open_workingtree()) as tree:
60
61
_set_branch_location(control_dir, to_branch, force)
61
64
tree = control_dir.open_workingtree()
62
65
_update(tree, source_repository, quiet, revision_id, store_uncommitted)
63
66
_run_post_switch_hooks(control_dir, to_branch, force, revision_id)