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

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

An ImportWorker for imports that use CSCVS.

As well as invoking cscvs to do the import, this class also needs to manage a foreign working tree.

Method foreign_tree_store Undocumented
Method getForeignTree Return the foreign branch object that we are importing from.
Method importToBazaar Actually import foreign_tree into bazaar_branch.
Method _runToBaz Actually run the CSCVS utility that imports revisions.
Method _doImport Perform the import.

Inherited from ToBzrImportWorker:

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 (via ToBzrImportWorker):

Method getWorkingDirectory The directory we should change to and store all scratch files in.
Method run Run the code import job.
@cachedproperty
def foreign_tree_store(self):
Undocumented
def getForeignTree(self):
Return the foreign branch object that we are importing from.
ReturnsA CVSWorkingTree.
def importToBazaar(self, foreign_tree, bazaar_branch):
Actually import foreign_tree into bazaar_branch.
Parametersforeign_treeA CVSWorkingTree.
bazaar_treeA bzrlib.branch.Branch, which must have a colocated working tree.
def _runToBaz(self, source_dir, flags, revisions, bazpath):
Actually run the CSCVS utility that imports revisions.
Parameterssource_dirThe directory containing the foreign working tree that we are importing from.
flagsFlags to pass to totla.totla.
revisionsThe revisions to import.
bazpathThe directory containing the Bazaar working tree that we are importing into.
def _doImport(self):
Perform the import.
ReturnsA CodeImportWorkerExitCode
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.