l.c.m.b.BranchLookup : class documentation

Part of lp.code.model.branchlookup View In Hierarchy

Utility for looking up branches.
Method get See IBranchLookup.
Static Method uriToHostingPath See IBranchLookup.
Method getByUrl See IBranchLookup.
Method performLookup Undocumented
Method getByHostingPath Undocumented
Method getByUrls See IBranchLookup.
Method getByUniqueName Find a branch by its unique name.
Method getByLPPath See IBranchLookup.
Method getByPath See IBranchLookup.
Method _uriHostAllowed Is 'uri' for an allowed host?
Method _getBranchInNamespace Undocumented
Method _getPersonalBranch Find a personal branch given its path segments.
Method _getProductBranch Find a product branch given its path segments.
Method _getPackageBranch Find a source package branch given its path segments.
Method _getLinkedBranchAndPath Get the linked branch for 'provided', and the bzr_path.
def get(self, branch_id, default=None):
See IBranchLookup.
@staticmethod
def uriToHostingPath(uri):
See IBranchLookup.
def _uriHostAllowed(self, uri):
Is 'uri' for an allowed host?
def getByUrl(self, url):
See IBranchLookup.
def performLookup(self, lookup):
Undocumented
def getByHostingPath(self, path):
Undocumented
def getByUrls(self, urls):
See IBranchLookup.
def getByUniqueName(self, unique_name):
Find a branch by its unique name.

For product branches, the unique name is ~user/product/branch; for source package branches, ~user/distro/distroseries/sourcepackagename/branch; for personal branches, ~user/+junk/branch.

def _getBranchInNamespace(self, namespace_data, branch_name):
Undocumented
def _getPersonalBranch(self, person, branch_name):
Find a personal branch given its path segments.
def _getProductBranch(self, person, product, branch_name):
Find a product branch given its path segments.
def _getPackageBranch(self, owner, distribution, distroseries, sourcepackagename, branch):
Find a source package branch given its path segments.

Only gets unofficial source package branches, that is, branches with names like ~jml/ubuntu/jaunty/openssh/stuff.

def getByLPPath(self, path):
See IBranchLookup.
def getByPath(self, path):
See IBranchLookup.
def _getLinkedBranchAndPath(self, provided):
Get the linked branch for 'provided', and the bzr_path.
ReturnsThe linked branch, an IBranch.
RaisesCannotHaveLinkedBranchIf 'provided' can never have a linked branch.
NoLinkedBranchIf 'provided' could have a linked branch, but doesn't.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.