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