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

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

A client for the Bazaar Loggerhead API.
Method __init__ Undocumented
Method getDiff See IBranchHostingClient.
Method getInventory See IBranchHostingClient.
Method getBlob See IBranchHostingClient.
Method _request Make a request to the Loggerhead API.
Method _get Undocumented
Method _checkRevision Check that a revision is well-formed.
def __init__(self):
Undocumented
def _request(self, method, branch_id, quoted_tail, as_json=False, **kwargs):
Make a request to the Loggerhead API.
def _get(self, branch_id, tail, **kwargs):
Undocumented
def _checkRevision(self, rev):
Check that a revision is well-formed.

We don't have a lot of scope for validation here, since Bazaar allows revision IDs to be basically anything; but let's at least exclude / as an extra layer of defence against path traversal attacks.

def getDiff(self, branch_id, new, old=None, context_lines=None, logger=None):
See IBranchHostingClient.
def getInventory(self, branch_id, dirname, rev=None, logger=None):
See IBranchHostingClient.
def getBlob(self, branch_id, file_id, rev=None, logger=None):
See IBranchHostingClient.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.