~gary/launchpad/prodprepbuildout

« back to all changes in this revision

Viewing changes to lib/lp/codehosting/scanner/bzrsync.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-03-09 16:31:11 UTC
  • mfrom: (9072.1.6 max-heat-from-context)
  • Revision ID: launchpad@pqm.canonical.com-20100309163111-2n17zsb7myoz34kf
[release-critical=flacoste][r=abel][ui=none][bug=531443] In bug
        listings, use the current context, rather than the bugtask target,
        to determine the maximum bug heat to use.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
import pytz
19
19
import transaction
20
20
 
21
 
from zope.component import adapter, getUtility
 
21
from zope.component import getUtility
22
22
from zope.event import notify
23
23
 
24
24
from bzrlib.branch import BzrBranchFormat4
352
352
        self.db_branch.updateScannedDetails(revision, revision_count)
353
353
 
354
354
 
355
 
@adapter(events.TipChanged)
356
355
def schedule_translation_upload(tip_changed):
357
356
    getUtility(IRosettaUploadJobSource).create(
358
357
        tip_changed.db_branch, tip_changed.old_tip_revision_id)
359
358
 
360
359
 
361
 
@adapter(events.TipChanged)
362
360
def schedule_translation_templates_build(tip_changed):
363
361
    utility = getUtility(ITranslationTemplatesBuildJobSource)
364
362
    utility.scheduleTranslationTemplatesBuild(tip_changed.db_branch)
365
363
 
366
364
 
367
 
@adapter(events.TipChanged)
368
365
def schedule_diff_updates(tip_changed):
369
366
    tip_changed.db_branch.scheduleDiffUpdates()