~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/model/branchmergeproposaljob.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-23 09:54:33 UTC
  • mfrom: (14486.6.4 drop-obsolete-config-items)
  • Revision ID: launchpad@pqm.canonical.com-20111223095433-amgcz7yu4tsxrypz
[r=wgrant][no-qa] Drop various obsolete config definitions that were
        recently dropped from prod.

Show diffs side-by-side

added added

removed removed

Lines of Context:
363
363
            raise BranchHasPendingWrites(
364
364
                'The source branch has pending writes.')
365
365
 
366
 
    @staticmethod
367
 
    @contextlib.contextmanager
368
 
    def contextManager():
369
 
        """See `IUpdatePreviewDiffJobSource`."""
370
 
        errorlog.globalErrorUtility.configure('update_preview_diffs')
371
 
        server = get_ro_server()
372
 
        server.start_server()
373
 
        yield
374
 
        server.stop_server()
375
 
 
376
366
    def acquireLease(self, duration=600):
377
367
        return self.job.acquireLease(duration)
378
368