Part of lp.codehosting.codeimport.worker View In Hierarchy
The only behaviour we add is preserving the 'git.db' shamap between runs.
Method | invalid_branch_exceptions | Exceptions that indicate no (valid) remote branch is present. |
Method | unsupported_feature_exceptions | The exceptions to consider for unsupported features. |
Method | broken_remote_exceptions | The exceptions to consider for broken remote branches. |
Method | probers | See PullingImportWorker.probers . |
Method | getRevisionLimit | See PullingImportWorker.getRevisionLimit . |
Method | getBazaarBranch | See ToBzrImportWorker.getBazaarBranch . |
Method | pushBazaarBranch | See ToBzrImportWorker.pushBazaarBranch . |
Inherited from PullingImportWorker:
Method | _doImport | Perform the import. |
Inherited from ToBzrImportWorker (via PullingImportWorker):
Method | __init__ | Construct a ToBzrImportWorker . |
Inherited from ImportWorker (via PullingImportWorker, ToBzrImportWorker):
Method | getWorkingDirectory | The directory we should change to and store all scratch files in. |
Method | run | Run the code import job. |
ToBzrImportWorker.getBazaarBranch
.
In addition to the superclass' behaviour, we retrieve bzr-git's caches, both legacy and modern, from the import data store and put them where bzr-git will find them in the Bazaar tree, that is at '.bzr/repository/git.db' and '.bzr/repository/git'.
ToBzrImportWorker.pushBazaarBranch
.
In addition to the superclass' behaviour, we store bzr-git's cache directory at .bzr/repository/git in the import data store.