Part of bzrlib
| Function | switch | Switch the branch associated with a checkout. |
| Function | _run_post_switch_hooks | Undocumented |
| Function | _check_pending_merges | Check that there are no outstanding pending merges before switching. |
| Function | _set_branch_location | Set location value of a branch reference. |
| Function | _any_local_commits | Does this branch have any commits not in the master branch? |
| Function | _update | Update a working tree to the latest revision of its branch. |
| Parameters | control_dir | ControlDir of the checkout to change |
| to_branch | branch that the checkout is to reference | |
| force | skip the check for local commits in a heavy checkout | |
| revision_id | revision ID to switch to. |
| Parameters | control | ControlDir of the branch to check |
| Parameters | control | ControlDir of the checkout to change |
| to_branch | branch that the checkout is to reference | |
| force | skip the check for local commits in a heavy checkout |