b.switch : module documentation

Part of bzrlib

No module docstring
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.
def _run_post_switch_hooks(control_dir, to_branch, force, revision_id):
Undocumented
def switch(control_dir, to_branch, force=False, quiet=False, revision_id=None):
Switch the branch associated with a checkout.
Parameterscontrol_dirControlDir of the checkout to change
to_branchbranch that the checkout is to reference
forceskip the check for local commits in a heavy checkout
revision_idrevision ID to switch to.
def _check_pending_merges(control, force=False):
Check that there are no outstanding pending merges before switching.
ParameterscontrolControlDir of the branch to check
def _set_branch_location(control, to_branch, force=False):
Set location value of a branch reference.
ParameterscontrolControlDir of the checkout to change
to_branchbranch that the checkout is to reference
forceskip the check for local commits in a heavy checkout
def _any_local_commits(this_branch, possible_transports):
Does this branch have any commits not in the master branch?
def _update(tree, source_repository, quiet=False, revision_id=None):
Update a working tree to the latest revision of its branch.
Parameterstreethe working tree
source_repositoryrepository holding the revisions
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.