l.c.i.b.IBranchTarget(Interface) : interface documentation

Part of lp.code.interfaces.branchtarget View In Hierarchy

A target of branches.

A product contains branches, a source package on a distroseries contains branches, and a person contains 'junk' branches.

Attribute context The primary context.
Attribute name The name of the target.
Attribute components An iterable of the objects that make up this branch target, from most-general to most-specific. In a URL, these would normally appear from left to right.
Attribute displayname The display name of this branch target.
Attribute default_merge_target The branch to merge other branches into for this target.
Attribute supports_merge_proposals Does this target support merge proposals at all?
Attribute supports_short_identities Does this target support shortened bazaar identities?
Attribute supports_code_imports Does this target support code imports at all?
Attribute allow_recipe_name_from_target Can recipe names reasonably be generated from the target name rather than the branch name?
Method areBranchesMergeable Are branches from other_target mergeable into this target?
Method __eq__ Is this target the same as another target?
Method __ne__ Is this target not the same as another target?
Method getNamespace Return a IBranchNamespace for 'owner' and this target.
Attribute collection An IBranchCollection for this target.
Method assignKarma Assign karma to the person on the appropriate target.
Method getBugTask Get the BugTask for a given bug related to the branch target.
Method getRelatedSeriesBranchInfo Find development branch info related to this parent branch.
Method getRelatedPackageBranchInfo Find package branch info related to this parent branch.
context =
The primary context.
name =
The name of the target.
components =
An iterable of the objects that make up this branch target, from most-general to most-specific. In a URL, these would normally appear from left to right.
displayname =
The display name of this branch target.
default_merge_target =
The branch to merge other branches into for this target.
supports_merge_proposals =
Does this target support merge proposals at all?
supports_short_identities =
Does this target support shortened bazaar identities?
supports_code_imports =
Does this target support code imports at all?
allow_recipe_name_from_target =
Can recipe names reasonably be generated from the target name rather than the branch name?
def areBranchesMergeable(other_target):
Are branches from other_target mergeable into this target?
def __eq__(other):
Is this target the same as another target?
def __ne__(other):
Is this target not the same as another target?
def getNamespace(owner):
Return a IBranchNamespace for 'owner' and this target.
collection =
An IBranchCollection for this target.
def assignKarma(person, action_name, date_created=None):
Assign karma to the person on the appropriate target.
def getBugTask(bug):
Get the BugTask for a given bug related to the branch target.
def getRelatedSeriesBranchInfo(parent_branch, limit_results=None):
Find development branch info related to this parent branch.

The result is a list of tuples:
(branch, product_series)
where:
branch: the related branch. product_series: the product series associated with the branch.

The development focus is first in the list.

Parametersparent_branchIBranch we are finding related branches for.
limit_resultsif not None, limit the number of results to the specified value.
def getRelatedPackageBranchInfo(parent_branch, limit_results=None):

Find package branch info related to this parent branch.

The result is a list of tuples:
(branch, distro_series)
where:
branch: the related branch. distro_series: the distro series associated with the branch.
Parametersparent_branchIBranch we are finding related branches for.
limit_resultsif not None, limit the number of results to the specified value.
API Documentation for Launchpad, generated by pydoctor at 2018-09-22 00:00:04.