Part of lp.code.interfaces.branch View In Hierarchy
Known subclasses: lp.code.interfaces.webservice.IBranch
| Method | setOwner | Set the owner of the branch to be new_owner. |
| Method | setTarget | Set the target of the branch to be project or source_package. |
| Method | requestUpgrade | Create an IBranchUpgradeJob to upgrade this branch. |
| Method | branchChanged | Record that a branch has been changed. |
| Method | destroySelf | Delete the specified branch. |
Inherited from IWebhookTarget:
| List | valid_webhook_event_types | Valid event types for this object type. |
| List | default_webhook_event_types | Default event types for new webhooks attached to this object type. |
| Method | newWebhook | Create a new webhook. |
new_owner.project or source_package.
Only one of project or source_package can be set, and if neither
is set, the branch gets moved into the junk namespace of the branch
owner.
| Raises | BranchTargetError if both project and source_package are
set, or if either the project or source_package fail to be
adapted to an IBranchTarget. | |
This method records the stacked on branch tip revision id and format or the branch and creates a scan job if the tip revision id has changed.
| Parameters | stacked_on_url | The unique name of the branch this branch is stacked on, or '' if this branch is not stacked. |
| last_revision_id | The tip revision ID of the branch. | |
| control_format | The entry from ControlFormat for the branch. | |
| branch_format | The entry from BranchFormat for the branch. | |
| repository_format | The entry from RepositoryFormat for the branch. |
BranchRevisions associated with this branch will also be deleted.
| Parameters | break_references | If supplied, break any references to this branch by deleting items with mandatory references and NULLing other references. |
| Raises | CannotDeleteBranch if the branch cannot be deleted. | |