l.c.c.w.GitImportWorker(PullingImportWorker) : class documentation

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

An import worker for Git imports.

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.
@property
def invalid_branch_exceptions(self):
Exceptions that indicate no (valid) remote branch is present.
@property
def unsupported_feature_exceptions(self):
The exceptions to consider for unsupported features.
@property
def broken_remote_exceptions(self):
The exceptions to consider for broken remote branches.
@property
def probers(self):
See PullingImportWorker.probers.
def getRevisionLimit(self):
See PullingImportWorker.getRevisionLimit.
def getBazaarBranch(self):
See 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'.

def pushBazaarBranch(self, bazaar_branch):
See ToBzrImportWorker.pushBazaarBranch.

In addition to the superclass' behaviour, we store bzr-git's cache directory at .bzr/repository/git in the import data store.

API Documentation for Launchpad, generated by pydoctor at 2018-05-24 00:00:11.