l.c.i.branchtarget : module documentation

Part of lp.code.interfaces

Interface for branch targets.

A branch target is the 'thing' that a branch is on. Branches in Launchpad are owned by an IPerson and can be either junk branches, product branches or package branches. A branch target is the product or package that a branch is on. If the branch is a junk branch, then the target is the branch owner.

Function check_default_stacked_on Return 'branch' if suitable to be a default stacked-on branch.
Interface IHasBranchTarget A thing that has a branch target.
Interface IBranchTarget A target of branches.
def check_default_stacked_on(branch):
Return 'branch' if suitable to be a default stacked-on branch.

Only certain branches are suitable to be default stacked-on branches.
Branches that are *not* suitable include:
  - remote branches
  - branches the user cannot see
  - branches that have no last revision information set (hosted branches
    where a push hasn't completed or a mirrored branch that hasn't been
    mirrored, etc).

If the given branch is not suitable, return None. For convenience, also
returns None if passed None. Otherwise, return the branch.
API Documentation for Launchpad, generated by pydoctor at 2018-02-17 00:00:03.