~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/codehosting/puller/tests/test_scheduler.py

  • Committer: Michael Hudson
  • Date: 2009-05-13 05:36:08 UTC
  • mto: This revision was merged to the branch mainline in revision 8475.
  • Revision ID: michael.hudson@canonical.com-20090513053608-racxj33qv1097v81
bzr ls --versioned --recursive --kind=file | xargs sed -i -e 's,from canonical.codehosting,from lp.codehosting,'
bzr mv lib/canonical/codehosting lib/lp/codehosting
and one manual edit...

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
from zope.component import getUtility
23
23
 
24
 
from canonical.codehosting.puller import get_lock_id_for_branch_id, scheduler
25
 
from canonical.codehosting.puller.tests import PullerBranchTestCase
26
 
from canonical.codehosting.puller.worker import (
 
24
from lp.codehosting.puller import get_lock_id_for_branch_id, scheduler
 
25
from lp.codehosting.puller.tests import PullerBranchTestCase
 
26
from lp.codehosting.puller.worker import (
27
27
    get_canonical_url_for_branch_name)
28
28
from canonical.config import config
29
29
from canonical.launchpad.interfaces import BranchType
647
647
# TestPullerMasterIntegration.makePullerMaster for more.
648
648
script_header = """\
649
649
from optparse import OptionParser
650
 
from canonical.codehosting.puller.worker import PullerWorkerProtocol
 
650
from lp.codehosting.puller.worker import PullerWorkerProtocol
651
651
import sys, time
652
652
parser = OptionParser()
653
653
(options, arguments) = parser.parse_args()
976
976
        from bzrlib import lockdir
977
977
        lockdir._DEFAULT_TIMEOUT_SECONDS = 2.0
978
978
        from canonical.launchpad.interfaces import BranchType
979
 
        from canonical.codehosting.puller.worker import (
 
979
        from lp.codehosting.puller.worker import (
980
980
            PullerWorker, install_worker_ui_factory)
981
981
        branch_type = BranchType.items[branch_type_name]
982
982
        install_worker_ui_factory(protocol)