~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/lp_propose.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-03-31 16:28:11 UTC
  • mfrom: (5622.3.15 more-lazy-hooks)
  • Revision ID: pqm@pqm.ubuntu.com-20110331162811-w1uw1lgpr5fiawp5
(jelmer) Support installing lazy hooks for all existing hook points,
 deprecate Hooks.create_hook. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    """Hooks for proposing a merge on Launchpad."""
37
37
 
38
38
    def __init__(self):
39
 
        hooks.Hooks.__init__(self)
40
 
        self.create_hook(
41
 
            hooks.HookPoint(
42
 
                'get_prerequisite',
43
 
                "Return the prerequisite branch for proposing as merge.",
44
 
                (2, 1), None),
45
 
        )
46
 
        self.create_hook(
47
 
            hooks.HookPoint(
48
 
                'merge_proposal_body',
49
 
                "Return an initial body for the merge proposal message.",
50
 
                (2, 1), None),
51
 
        )
 
39
        hooks.Hooks.__init__(self, "bzrlib.plugins.launchpad.lp_propose",
 
40
            "Proposer.hooks")
 
41
        self.add_hook('get_prerequisite',
 
42
            "Return the prerequisite branch for proposing as merge.", (2, 1))
 
43
        self.add_hook('merge_proposal_body',
 
44
            "Return an initial body for the merge proposal message.", (2, 1))
52
45
 
53
46
 
54
47
class Proposer(object):