b.p.l.l.LaunchpadBranch(object) : class documentation

Part of bzrlib.plugins.launchpad.lp_api View In Hierarchy

Provide bzr and lp API access to a Launchpad branch.
Method __init__ Constructor.
Method bzr Return the bzr branch for this branch.
Method push_bzr Return the push branch for this branch.
Static Method plausible_launchpad_url Is 'url' something that could conceivably be pushed to LP?
Static Method candidate_urls Iterate through related URLs that might be Launchpad URLs.
Static Method tweak_url Adjust a URL to work with staging, if needed.
Class Method from_bzr Find a Launchpad branch from a bzr branch.
Class Method create_now Create a Bazaar branch on Launchpad for the supplied branch.
Method get_target Return the 'LaunchpadBranch' for the target of this one.
Method update_lp Update the Launchpad copy of this branch.
Method find_lca_tree Find the revision tree for the LCA of this branch and other.
def __init__(self, lp_branch, bzr_url, bzr_branch=None, check_update=True):
Constructor.
Parameterslp_branchThe Launchpad branch.
bzr_urlThe URL of the Bazaar branch.
bzr_branchAn instance of the Bazaar branch.
@property
def bzr(self):
Return the bzr branch for this branch.
@property
def push_bzr(self):
Return the push branch for this branch.
@staticmethod
def plausible_launchpad_url(url):
Is 'url' something that could conceivably be pushed to LP?
ParametersurlA URL that may refer to a Launchpad branch.
ReturnsA boolean.
@staticmethod
def candidate_urls(bzr_branch):
Iterate through related URLs that might be Launchpad URLs.
Parametersbzr_branchA Bazaar branch to find URLs from.
Returnsa generator of URL strings.
@staticmethod
def tweak_url(url, launchpad):
Adjust a URL to work with staging, if needed.
@classmethod
def from_bzr(cls, launchpad, bzr_branch, create_missing=True):
Find a Launchpad branch from a bzr branch.
@classmethod
def create_now(cls, launchpad, bzr_branch):
Create a Bazaar branch on Launchpad for the supplied branch.
def get_target(self):
Return the 'LaunchpadBranch' for the target of this one.
def update_lp(self):
Update the Launchpad copy of this branch.
def find_lca_tree(self, other):
Find the revision tree for the LCA of this branch and other.
ParametersotherAnother LaunchpadBranch
ReturnsThe RevisionTree of the LCA of this branch and other.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.