~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/code-import-worker.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-15 10:01:15 UTC
  • mfrom: (14521 devel)
  • mto: This revision was merged to the branch mainline in revision 14522.
  • Revision ID: jelmer@canonical.com-20111215100115-y6bg928fwdqd16ej
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from bzrlib.transport import get_transport
25
25
 
26
26
from canonical.config import config
 
27
from lp.codehosting import load_optional_plugin
27
28
from lp.codehosting.codeimport.worker import (
28
29
    BzrImportWorker, BzrSvnImportWorker, CSCVSImportWorker,
29
30
    CodeImportBranchOpenPolicy, CodeImportSourceDetails, GitImportWorker,
68
69
        force_bzr_to_use_urllib()
69
70
        source_details = CodeImportSourceDetails.fromArguments(self.args)
70
71
        if source_details.rcstype == 'git':
 
72
            load_optional_plugin('git')
71
73
            import_worker_cls = GitImportWorker
72
74
        elif source_details.rcstype == 'bzr-svn':
 
75
            load_optional_plugin('svn')
73
76
            import_worker_cls = BzrSvnImportWorker
74
77
        elif source_details.rcstype == 'hg':
 
78
            load_optional_plugin('hg')
75
79
            import_worker_cls = HgImportWorker
76
80
        elif source_details.rcstype == 'bzr':
 
81
            load_optional_plugin('loom')
77
82
            import_worker_cls = BzrImportWorker
78
83
        elif source_details.rcstype in ['cvs', 'svn']:
79
84
            import_worker_cls = CSCVSImportWorker