~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/codehosting/puller/worker.py

  • Committer: Robert Collins
  • Date: 2011-10-17 05:41:34 UTC
  • mto: This revision was merged to the branch mainline in revision 14213.
  • Revision ID: robertc@robertcollins.net-20111017054134-m1bo7gi6s6aixc7h
Nuke setOopsToken unneeded in a concurrency safe world.

Show diffs side-by-side

added added

removed removed

Lines of Context:
297
297
            mirror_stacked_on_url=self.default_stacked_on_url)
298
298
 
299
299
    def __init__(self, src, dest, branch_id, unique_name, branch_type,
300
 
                 default_stacked_on_url, protocol, branch_mirrorer=None,
301
 
                 oops_prefix=None):
 
300
                 default_stacked_on_url, protocol, branch_mirrorer=None):
302
301
        """Construct a `PullerWorker`.
303
302
 
304
303
        :param src: The URL to pull from.
314
313
        :param protocol: An instance of `PullerWorkerProtocol`.
315
314
        :param branch_mirrorer: An instance of `BranchMirrorer`.  If not
316
315
            passed, one will be chosen based on the value of `branch_type`.
317
 
        :param oops_prefix: An oops prefix to pass to `setOopsToken` on the
318
 
            global ErrorUtility.
319
316
        """
320
317
        self.source = src
321
318
        self.dest = dest
331
328
        if branch_mirrorer is None:
332
329
            branch_mirrorer = self._checkerForBranchType(branch_type)
333
330
        self.branch_mirrorer = branch_mirrorer
334
 
        if oops_prefix is not None:
335
 
            errorlog.globalErrorUtility.setOopsToken(oops_prefix)
336
331
 
337
332
    def _record_oops(self, message=None):
338
333
        """Record an oops for the current exception.