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

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

An import worker for imports from Git to Git.
Method _runGit Run git with arguments, sending output to the logger.
Method _getHead Get HEAD from a configured remote in a local repository.
Method _setHead Set HEAD on a remote repository.
Method _deleteRefs Delete all refs in repository matching pattern.
Method _doImport Perform the import.

Inherited from ImportWorker:

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.
def _runGit(self, *args, **kwargs):
Run git with arguments, sending output to the logger.
def _getHead(self, repository, remote_name):
Get HEAD from a configured remote in a local repository.

The returned ref name will be adjusted in such a way that it can be passed to _setHead (e.g. refs/remotes/origin/master -> refs/heads/master).

def _setHead(self, target_url, target_ref):
Set HEAD on a remote repository.

This relies on the turnip-set-symbolic-ref extension.

def _deleteRefs(self, repository, pattern):
Delete all refs in repository matching pattern.
def _doImport(self):
Perform the import.
ReturnsA CodeImportWorkerExitCode
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.