l.c.c.w.ToBzrImportWorker(ImportWorker) : class documentation

Part of lp.codehosting.codeimport.worker View In Hierarchy

Known subclasses: lp.codehosting.codeimport.worker.CSCVSImportWorker, lp.codehosting.codeimport.worker.PullingImportWorker

Oversees the actual work of a code import to Bazaar.
Method __init__ Construct a ToBzrImportWorker.
Method getBazaarBranch Return the Bazaar Branch that we are importing into.
Method pushBazaarBranch Push the updated Bazaar branch to the server.

Inherited from ImportWorker:

Method getWorkingDirectory The directory we should change to and store all scratch files in.
Method run Run the code import job.
Method _doImport Perform the import.
def __init__(self, source_details, import_data_transport, bazaar_branch_store, logger, opener_policy):
Construct a ToBzrImportWorker.
Parameterssource_detailsA CodeImportSourceDetails object.
bazaar_branch_storeA BazaarBranchStore. The import worker uses this to fetch and store the Bazaar branches that are created and updated during the import process.
loggerA Logger to pass to cscvs.
opener_policyPolicy object that decides what branches can be imported
def getBazaarBranch(self):
Return the Bazaar Branch that we are importing into.
def pushBazaarBranch(self, bazaar_branch, remote_branch=None):
Push the updated Bazaar branch to the server.
ReturnsTrue if revisions were transferred.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.