Part of lp.codehosting.codeimport.worker View In Hierarchy
Known subclasses: lp.codehosting.codeimport.worker.GitToGitImportWorker, lp.codehosting.codeimport.worker.ToBzrImportWorker
Method | __init__ | Construct an 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. |
ImportWorker
.Parameters | source_details | A CodeImportSourceDetails object. |
logger | A Logger to pass to cscvs. | |
opener_policy | Policy object that decides what branches can be imported |
Run the code import job.
This is the primary public interface to the ImportWorker
. This
method:
- Retrieves an up-to-date foreign tree to import.
- Gets the Bazaar branch to import into.
- Imports the foreign tree into the Bazaar branch. If we've already imported this before, we synchronize the imported Bazaar branch with the latest changes to the foreign tree.
- Publishes the newly-updated Bazaar branch, making it available to Launchpad users.
- Archives the foreign tree, so that we can update it quickly next time.
Returns | A CodeImportWorkerExitCode |