l.c.v.b.TransportDispatch : class documentation

Part of lp.codehosting.vfs.branchfs View In Hierarchy

Make transports for hosted branch areas and virtual control dirs.

This transport dispatch knows about whether a particular branch should be served read-write or read-only. It also knows how to serve .bzr control directories for products (to enable default stacking).

This is used for the rich codehosting VFS that we serve publically.

Method __init__ Undocumented
Method makeTransport Undocumented
Method _makeBranchTransport Undocumented
Method _makeControlTransport Make a transport that points to a control directory.
def __init__(self, rw_transport):
Undocumented
def makeTransport(self, transport_tuple):
Undocumented
def _makeBranchTransport(self, id, writable, trailing_path='', private=False):
Undocumented
def _makeControlTransport(self, default_stack_on, trailing_path=None):
Make a transport that points to a control directory.

A control directory is a .bzr directory containing a 'control.conf' file. This is used to specify configuration for branches created underneath the directory that contains the control directory.

Parametersdefault_stack_onThe default stacked-on branch URL for branches that respect this control directory. If empty, then we'll return an empty memory transport.
ReturnsA read-only MemoryTransport containing a working BzrDir, configured to use the given default stacked-on location.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.