~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:09:59 UTC
  • mto: This revision was merged to the branch mainline in revision 14522.
  • Revision ID: jelmer@canonical.com-20111215100959-1y8wjq8g3pv7rw0m
Re-merge always loading of foreign plugins.

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
28
27
from lp.codehosting.codeimport.worker import (
29
28
    BzrImportWorker, BzrSvnImportWorker, CSCVSImportWorker,
30
29
    CodeImportBranchOpenPolicy, CodeImportSourceDetails, GitImportWorker,
69
68
        force_bzr_to_use_urllib()
70
69
        source_details = CodeImportSourceDetails.fromArguments(self.args)
71
70
        if source_details.rcstype == 'git':
72
 
            load_optional_plugin('git')
73
71
            import_worker_cls = GitImportWorker
74
72
        elif source_details.rcstype == 'bzr-svn':
75
 
            load_optional_plugin('svn')
76
73
            import_worker_cls = BzrSvnImportWorker
77
74
        elif source_details.rcstype == 'hg':
78
 
            load_optional_plugin('hg')
79
75
            import_worker_cls = HgImportWorker
80
76
        elif source_details.rcstype == 'bzr':
81
 
            load_optional_plugin('loom')
82
77
            import_worker_cls = BzrImportWorker
83
78
        elif source_details.rcstype in ['cvs', 'svn']:
84
79
            import_worker_cls = CSCVSImportWorker